mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 15:30:07 +00:00
73a268c759
Some C90 libm functions call fegetenv via libc_feholdsetround* functions in math_private.h. This patch makes them call __fegetenv instead, making fegetenv into a weak alias for __fegetenv as needed. Tested for x86_64 (testsuite, and that disassembly of installed shared libraries is unchanged by the patch). Also tested for ARM (soft-float) that fegetenv failures disappear from the linknamespace test failures (however, similar fixes will also be needed for fegetround, feholdexcept, fesetenv, fesetround and feupdateenv before this set of namespace issues covered by bug 17748 is fully fixed and those linknamespace tests start passing). [BZ #17748] * include/fenv.h (__fegetenv): Use libm_hidden_proto. * math/fegetenv.c (__fegetenv): Use libm_hidden_def. * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and define as weak alias of __fegetenv. Use libm_hidden_weak. * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def. * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and define as weak alias of __fegetenv. Use libm_hidden_weak. * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise. * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def. * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and define as weak alias of __fegetenv. Use libm_hidden_weak. * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def. * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and define as weak alias of __fegetenv. Use libm_hidden_weak. * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def. * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise. * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv): Likewise. * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and define as weak alias of __fegetenv. Use libm_hidden_weak. * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise. * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def. * sysdeps/tile/math_private.h (__fegetenv): New inline function. * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and define as weak alias of __fegetenv. Use libm_hidden_weak. * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use __fegetenv instead of fegetenv. (libc_feholdsetround_noex_ctx): Likewise. |
||
---|---|---|
.. | ||
armv6 | ||
armv6t2 | ||
armv7 | ||
bits | ||
include/bits | ||
nptl | ||
sys | ||
__longjmp.S | ||
abi-note.S | ||
add_n.S | ||
addmul_1.S | ||
aeabi_assert.c | ||
aeabi_atexit.c | ||
aeabi_errno_addr.c | ||
aeabi_lcsts.c | ||
aeabi_localeconv.c | ||
aeabi_math.c | ||
aeabi_mb_cur_max.c | ||
aeabi_memclr.c | ||
aeabi_memcpy.c | ||
aeabi_memmove.c | ||
aeabi_memset.c | ||
aeabi_sighandlers.S | ||
aeabi_unwind_cpp_pr1.c | ||
arm-features.h | ||
arm-mcount.S | ||
backtrace.c | ||
bsd-_setjmp.S | ||
bsd-setjmp.S | ||
configure | ||
configure.ac | ||
crti.S | ||
crtn.S | ||
dl-irel.h | ||
dl-lookupcfg.h | ||
dl-machine.h | ||
dl-sysdep.h | ||
dl-tls.h | ||
dl-tlsdesc.h | ||
dl-tlsdesc.S | ||
dl-trampoline.S | ||
fclrexcpt.c | ||
fedisblxcpt.c | ||
feenablxcpt.c | ||
fegetenv.c | ||
fegetexcept.c | ||
fegetround.c | ||
feholdexcpt.c | ||
fenv_private.h | ||
fesetenv.c | ||
fesetround.c | ||
feupdateenv.c | ||
fgetexcptflg.c | ||
find_exidx.c | ||
fpu_control.h | ||
fraiseexcpt.c | ||
frame.h | ||
framestate.c | ||
fsetexcptflg.c | ||
ftestexcept.c | ||
gcc-compat.h | ||
gccframe.h | ||
get-rounding-mode.h | ||
gmp-mparam.h | ||
Implies | ||
jmpbuf-unwind.h | ||
ldsodefs.h | ||
libc-aeabi_read_tp.S | ||
libc-tls.c | ||
libm-test-ulps | ||
machine-gmon.h | ||
Makefile | ||
math_private.h | ||
math-tests.h | ||
memcpy.S | ||
memmove.S | ||
memset.S | ||
memusage.h | ||
nptl-aeabi_unwind_cpp_pr1.c | ||
preconfigure | ||
preconfigure.ac | ||
rt-aeabi_unwind_cpp_pr1.c | ||
rtld-global-offsets.sym | ||
s_fma.c | ||
s_fmaf.c | ||
setfpucw.c | ||
setjmp.S | ||
sfp-machine.h | ||
sotruss-lib.c | ||
stackinfo.h | ||
start.S | ||
static-stubs.c | ||
strlen.S | ||
sub_n.S | ||
submul_1.S | ||
sysdep.h | ||
test-fpucw.c | ||
tls-macros.h | ||
tlsdesc.c | ||
tlsdesc.sym | ||
tst-armtlsdescextlazy.c | ||
tst-armtlsdescextlazymod.c | ||
tst-armtlsdescextnow.c | ||
tst-armtlsdescextnowmod.c | ||
tst-armtlsdescloc.c | ||
tst-armtlsdesclocmod.c | ||
tst-audit.h | ||
unwind-dw2-fde-glibc.c | ||
unwind-pe.c | ||
unwind.h | ||
Versions |