glibc/sysdeps/alpha/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
..
bits alpha: Fix isnan 2014-07-01 09:54:29 -07:00
cabsf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
cargf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
cfloat-compat.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
cimagf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
conjf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
crealf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
e_sqrt.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
e_sqrtf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fclrexcpt.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fedisblxcpt.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
feenablxcpt.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fegetenv.c Fix libm fegetenv namespace (bug 17748). 2014-12-31 22:07:52 +00:00
fegetexcept.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fegetround.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
feholdexcpt.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fenv_libc.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fesetenv.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fesetround.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
feupdateenv.c Fix libm feraiseexcept namespace (bug 17723). 2014-12-30 17:08:09 +00:00
fgetexcptflg.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fpu_control.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fsetexcptflg.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
ftestexcept.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
get-rounding-mode.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
libm-test-ulps alpha: Update libm-test-ulps 2014-07-01 09:54:27 -07:00
math_private.h alpha: Implement math_opt_barrier and math_force_eval 2014-07-03 08:56:55 -07:00
s_cacosf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_cacoshf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_casinf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_casinhf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_catanf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_catanhf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_ccosf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_ccoshf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_ceil.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_ceilf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_cexpf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_clog10f.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_clogf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_copysign.c Remove IS_IN_libm 2014-11-24 11:41:47 +05:30
s_copysignf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_cpowf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_cprojf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_csinf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_csinhf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_csqrtf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_ctanf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_ctanhf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_fabs.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_fabsf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_floor.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_floorf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_fmax.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_fmaxf.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_fmin.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_fminf.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_isnan.c alpha: Fix isnan 2014-07-01 09:54:29 -07:00
s_isnanf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_llrint.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_llrintf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_llround.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_llroundf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_lrint.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_lrintf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_lround.c alpha: Fix lround implementations 2014-07-03 08:52:45 -07:00
s_lroundf.c alpha: Fix lround implementations 2014-07-03 08:52:45 -07:00
s_nearbyint.c Add missing #include in sysdeps/alpha/fpu/s_nearbyint.c 2014-07-03 21:15:56 -07:00
s_rint.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_rintf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_trunc.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_truncf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
Versions Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00