]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Provide external definitions of all of the standardized functions in
authordas <das@FreeBSD.org>
Mon, 10 Oct 2011 15:43:09 +0000 (15:43 +0000)
committerdas <das@FreeBSD.org>
Mon, 10 Oct 2011 15:43:09 +0000 (15:43 +0000)
commita38603b0b57960e07b576fdc7c8ed64d919770d0
treea50d2b89f2f16772503039f06c8507b9292a1daa
parent768c3db25c16c726fe7df21f139f54cd6342dfbf
Provide external definitions of all of the standardized functions in
fenv.h that are currently inlined.

The definitions are provided in fenv.c via 'extern inline'
declaractions.  This assumes the compiler handles 'extern inline' as
specified in C99, which has been true under FreeBSD since 8.0.

The goal is to eventually remove the 'static' keyword from the inline
definitions in fenv.h, so that non-inlined references all wind up
pointing to the same external definition like they're supposed to.
I am deferring the second step to provide a window where
newly-compiled apps will still link against old math libraries.
(This isn't supported, but there's no need to cause undue breakage.)

Reviewed by:    stefanf, bde
22 files changed:
lib/msun/Symbol.map
lib/msun/amd64/Symbol.map
lib/msun/amd64/fenv.c
lib/msun/amd64/fenv.h
lib/msun/arm/Symbol.map
lib/msun/arm/fenv.c
lib/msun/arm/fenv.h
lib/msun/i387/Symbol.map
lib/msun/i387/fenv.c
lib/msun/i387/fenv.h
lib/msun/ia64/Symbol.map
lib/msun/ia64/fenv.c
lib/msun/ia64/fenv.h
lib/msun/mips/Symbol.map
lib/msun/mips/fenv.c
lib/msun/mips/fenv.h
lib/msun/powerpc/Symbol.map
lib/msun/powerpc/fenv.c
lib/msun/powerpc/fenv.h
lib/msun/sparc64/Symbol.map
lib/msun/sparc64/fenv.c
lib/msun/sparc64/fenv.h