glibc/sysdeps/arm
Joseph Myers 73a268c759 Fix libm fegetenv namespace (bug 17748).
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.
2014-12-31 22:07:52 +00:00
..
armv6 Fix performance issue in misaligned strcpy. 2014-08-07 14:30:31 +00:00
armv6t2
armv7 Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
bits Add arch-specific configuration for C11 atomics support. 2014-11-20 11:57:38 +01:00
include/bits ARM: Add SystemTap probes to longjmp and setjmp. 2014-02-25 10:07:04 +00:00
nptl ARM: Split Linuxism out of sysdeps/arm/nptl/tls.h 2014-06-30 11:19:22 -07:00
sys
__longjmp.S Remove IS_IN_rtld 2014-11-24 11:41:48 +05:30
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 Remove IS_IN_rtld 2014-11-24 11:41:48 +05:30
arm-features.h
arm-mcount.S
backtrace.c
bsd-_setjmp.S
bsd-setjmp.S
configure ARM: Use movw/movt more when available 2014-10-22 14:20:35 -07:00
configure.ac ARM: Use movw/movt more when available 2014-10-22 14:20:35 -07:00
crti.S
crtn.S
dl-irel.h
dl-lookupcfg.h
dl-machine.h Don't use INTDEF/INTUSE with _dl_init (bug 14132). 2014-11-04 23:26:39 +00:00
dl-sysdep.h
dl-tls.h
dl-tlsdesc.h
dl-tlsdesc.S ARM: Fix handling of concurrent TLS descriptor resolution 2014-05-27 10:39:18 +01:00
dl-trampoline.S
fclrexcpt.c Speed up the ARM fenv implementation by avoiding unnecessary FPSCR 2014-06-24 12:04:27 +00:00
fedisblxcpt.c Speed up the ARM fenv implementation by avoiding unnecessary FPSCR 2014-06-24 12:04:27 +00:00
feenablxcpt.c Speed up the ARM fenv implementation by avoiding unnecessary FPSCR 2014-06-24 12:04:27 +00:00
fegetenv.c Fix libm fegetenv namespace (bug 17748). 2014-12-31 22:07:52 +00:00
fegetexcept.c ARM: Improve fenv implementation 2014-05-15 15:23:27 +01:00
fegetround.c Use libc calls defined by fenv_private.h to implement several fenv functions 2014-06-24 11:13:08 +00:00
feholdexcpt.c Cleanup fenv implementation 2014-06-24 14:57:32 +00:00
fenv_private.h Fix libm feraiseexcept namespace (bug 17723). 2014-12-30 17:08:09 +00:00
fesetenv.c Add missing #include <fpu_control.h> to ARM fesetenv/feupdateenv. 2014-06-26 13:35:31 -07:00
fesetround.c Add _FPU_MASK_RM and use it instead of FE_TOWARDZERO. 2014-06-24 15:02:51 +00:00
feupdateenv.c Fix libm feraiseexcept namespace (bug 17723). 2014-12-30 17:08:09 +00:00
fgetexcptflg.c Use libc calls defined by fenv_private.h to implement several fenv functions 2014-06-24 11:13:08 +00:00
find_exidx.c
fpu_control.h Add _FPU_MASK_RM and use it instead of FE_TOWARDZERO. 2014-06-24 15:02:51 +00:00
fraiseexcpt.c Fix libm feraiseexcept namespace (bug 17723). 2014-12-30 17:08:09 +00:00
frame.h
framestate.c
fsetexcptflg.c Remove an unused include. 2014-06-24 15:00:01 +00:00
ftestexcept.c Use libc calls defined by fenv_private.h to implement several fenv functions 2014-06-24 11:13:08 +00:00
gcc-compat.h
gccframe.h
get-rounding-mode.h Add _FPU_MASK_RM and use it instead of FE_TOWARDZERO. 2014-06-24 15:02:51 +00:00
gmp-mparam.h
Implies Remove sysdeps/arm/soft-fp directory. 2014-10-16 09:54:45 -07:00
jmpbuf-unwind.h
ldsodefs.h
libc-aeabi_read_tp.S ARM: Move more aeabi routine magic out of Linux-specific directories 2014-06-26 15:08:29 -07:00
libc-tls.c
libm-test-ulps Regenerate ARM libm-test-ulps. 2014-06-30 21:20:35 +00:00
machine-gmon.h
Makefile ARM: Move more aeabi routine magic out of Linux-specific directories 2014-06-26 15:08:29 -07:00
math_private.h [ARM] Add support for fenv_private on ARM. 2014-04-28 10:53:04 +01:00
math-tests.h Add fenv test support for targets which don't have FP traps. 2014-04-17 09:39:27 +01:00
memcpy.S
memmove.S Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
memset.S
memusage.h
nptl-aeabi_unwind_cpp_pr1.c ARM: Move more aeabi routine magic out of Linux-specific directories 2014-06-26 15:08:29 -07:00
preconfigure arm: drop EABI check 2014-11-22 19:34:49 -05:00
preconfigure.ac arm: drop EABI check 2014-11-22 19:34:49 -05:00
rt-aeabi_unwind_cpp_pr1.c ARM: Move more aeabi routine magic out of Linux-specific directories 2014-06-26 15:08:29 -07:00
rtld-global-offsets.sym
s_fma.c
s_fmaf.c
setfpucw.c Speed up the ARM fenv implementation by avoiding unnecessary FPSCR 2014-06-24 12:04:27 +00:00
setjmp.S Remove IS_IN_rtld 2014-11-24 11:41:48 +05:30
sfp-machine.h Remove sysdeps/arm/soft-fp directory. 2014-10-16 09:54:45 -07:00
sotruss-lib.c
stackinfo.h
start.S
static-stubs.c
strlen.S
sub_n.S
submul_1.S
sysdep.h Remove NOT_IN_libc 2014-11-24 15:03:45 +05:30
test-fpucw.c
tls-macros.h
tlsdesc.c Fix -Wundef warnings for SHARED 2014-07-09 09:26:07 +01:00
tlsdesc.sym
tst-armtlsdescextlazy.c [BZ #17075] ARM: Fix immediate calculation of R_ARM_TLS_DESC 2014-06-20 20:22:42 +01:00
tst-armtlsdescextlazymod.c [BZ #17075] ARM: Fix immediate calculation of R_ARM_TLS_DESC 2014-06-20 20:22:42 +01:00
tst-armtlsdescextnow.c [BZ #17075] ARM: Fix immediate calculation of R_ARM_TLS_DESC 2014-06-20 20:22:42 +01:00
tst-armtlsdescextnowmod.c [BZ #17075] ARM: Fix immediate calculation of R_ARM_TLS_DESC 2014-06-20 20:22:42 +01:00
tst-armtlsdescloc.c [BZ #17075] ARM: Fix immediate calculation of R_ARM_TLS_DESC 2014-06-20 20:22:42 +01:00
tst-armtlsdesclocmod.c [BZ #17075] ARM: Fix immediate calculation of R_ARM_TLS_DESC 2014-06-20 20:22:42 +01:00
tst-audit.h
unwind-dw2-fde-glibc.c
unwind-pe.c
unwind.h Move ARM internal unwind.h header to the right sysdeps directory. 2014-05-06 15:55:20 -07:00
Versions