glibc/sysdeps/aarch64/fpu
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
..
fclrexcpt.c Cleanup feclearexcept to use the same logic as the ARM version. No functional changes. 2014-10-24 13:03:11 +00:00
fedisblxcpt.c Cleanup fedisableexcept to use the same logic as the ARM version. No functional changes. 2014-10-24 13:06:04 +00:00
feenablxcpt.c Cleanup feenableexcept to use the same logic as the ARM version. No functional changes. 2014-10-24 13:07:17 +00:00
fegetenv.c Fix libm fegetenv namespace (bug 17748). 2014-12-31 22:07:52 +00:00
fegetexcept.c
fegetround.c Call get_rounding_mode rather than duplicating functionality. 2014-10-24 13:19:24 +00:00
feholdexcpt.c Call libc_feholdexcept_aarch64 from math_private.h rather than duplicating functionality. 2014-10-24 13:21:27 +00:00
fesetenv.c Remove spaces. 2014-10-24 12:53:19 +00:00
fesetround.c Call libc_fesetround_aarch64. 2014-12-22 16:57:41 +00:00
feupdateenv.c Fix libm feraiseexcept namespace (bug 17723). 2014-12-30 17:08:09 +00:00
fgetexcptflg.c Call libc_fetestexcept_aarch64 from math_private.h rather than duplicating functionality. 2014-10-24 13:23:12 +00:00
fpu_control.h [AArch64] Remove ISB after FPCR write. 2014-06-02 12:44:21 +01:00
fraiseexcpt.c Fix libm feraiseexcept namespace (bug 17723). 2014-12-30 17:08:09 +00:00
fsetexcptflg.c Cleanup fesetexceptflag to use the same logic as the ARM version. No functional changes. 2014-10-24 13:03:09 +00:00
ftestexcept.c Call libc_fetestexcept_aarch64. 2014-12-22 17:14:54 +00:00
get-rounding-mode.h [AArch64] Switch from FE_TOWARDZERO to _FPU_FPCR_RM_MASK 2014-06-03 12:44:50 +00:00
math_private.h Fix libm feraiseexcept namespace (bug 17723). 2014-12-30 17:08:09 +00:00
s_ceil.c
s_ceilf.c
s_floor.c
s_floorf.c
s_fma.c
s_fmaf.c
s_fmax.c
s_fmaxf.c
s_fmin.c
s_fminf.c
s_frint.c
s_frintf.c
s_llrint.c
s_llrintf.c
s_llround.c
s_llroundf.c
s_lrint.c
s_lrintf.c
s_lround.c
s_lroundf.c
s_nearbyint.c
s_nearbyintf.c
s_rint.c
s_rintf.c
s_round.c
s_roundf.c
s_trunc.c
s_truncf.c