glibc/sysdeps/alpha/fpu
Joseph Myers b93c2205ec Fix libm fegetround namespace (bug 17748).
Continuing the fixes for C90 libm functions calling C99 fe* functions,
this patch fixes the case of fegetround by making it a weak alias of
__fegetround and making the affected code call __fegetround.

Tested for x86_64 (testsuite, and that disassembly of installed shared
libraries is unchanged by the patch).  Also tested for ARM
(soft-float) that fegetround failures disappear from the linknamespace
test failures (feholdexcept, fesetenv, fesetround and feupdateenv
remain to be addressed before bug 17748 is fully fixed, although this
patch may suffice to fix the failures in some cases, when the libc_fe*
functions are implemented but there is no architecture-specific sqrt
implementation in use so there were failures from fegetround used by
sqrt but no other such failures).

	[BZ #17748]
	* include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
	* math/fegetround.c (fegetround): Rename to __fegetround and
	define as weak alias of __fegetround.  Use libm_hidden_weak.
	* sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
	* sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
	* sysdeps/arm/fegetround.c (fegetround): Likewise.
	* sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
	* sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
	* sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
	* sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
	* sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
	* sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
	Undefine after rather than before function definition; use
	parentheses around function name in definition.
	(__fegetround): Also undefine macro after function definition.
	* sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
	__fegetround and define as weak alias of __fegetround.  Use
	libm_hidden_weak.  Do not undefine as macro.
	* sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
	Likewise.
	* sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
	__fegetround and define as weak alias of __fegetround.  Use
	libm_hidden_weak.
	* sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
	* sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
	* sysdeps/tile/math_private.h (__fegetround): New inline function.
	* sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
	__fegetround and define as weak alias of __fegetround.  Use
	libm_hidden_weak.
	* sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
	__fegetround instead of fegetround.
2015-01-02 20:44:42 +00:00
..
bits Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
cabsf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
cargf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
cfloat-compat.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
cimagf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
conjf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
crealf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
e_sqrt.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
e_sqrtf.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
fclrexcpt.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
fedisblxcpt.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
feenablxcpt.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
fegetenv.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
fegetexcept.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
fegetround.c Fix libm fegetround namespace (bug 17748). 2015-01-02 20:44:42 +00:00
feholdexcpt.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
fenv_libc.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
fesetenv.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
fesetround.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
feupdateenv.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
fgetexcptflg.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
fpu_control.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
fsetexcptflg.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
ftestexcept.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
get-rounding-mode.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00: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 Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_cacoshf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_casinf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_casinhf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_catanf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_catanhf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_ccosf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_ccoshf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_ceil.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_ceilf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_cexpf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_clog10f.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_clogf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_copysign.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_copysignf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_cpowf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_cprojf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_csinf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_csinhf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_csqrtf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_ctanf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_ctanhf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_fabs.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_fabsf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_floor.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_floorf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_fmax.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_fmaxf.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_fmin.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_fminf.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
s_isnan.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00: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 Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_lrintf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_lround.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_lroundf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_nearbyint.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_rint.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_rintf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_trunc.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s_truncf.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Versions Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00