glibc/sysdeps/powerpc/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
..
Makefile
e_hypot.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
e_hypotf.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
e_rem_pio2f.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
e_sqrt.c Fix libm feraiseexcept namespace (bug 17723). 2014-12-30 17:08:09 +00:00
e_sqrtf.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fclrexcpt.c PowerPC: Suppress unnecessary FPSCR write 2014-04-29 07:05:39 -05:00
fe_mask.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fe_nomask.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fedisblxcpt.c Fix 2014-04-29 07:45:05 -05:00
feenablxcpt.c Fix 2014-04-29 07:45:05 -05:00
fegetenv.c Fix libm fegetenv namespace (bug 17748). 2014-12-31 22:07:52 +00:00
fegetexcept.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fegetround.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
feholdexcpt.c PowerPC: Suppress unnecessary FPSCR write 2014-04-29 07:05:39 -05:00
fenv_const.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fenv_libc.h Clean up powerpc fegetround / __fegetround inlines. 2014-12-31 19:16:34 +00:00
fenv_private.h PowerPC: Add fenv macros for long double 2014-04-17 14:01:51 -05:00
fesetenv.c PowerPC: Suppress unnecessary FPSCR write 2014-04-29 07:05:39 -05:00
fesetround.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
feupdateenv.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fgetexcptflg.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
fraiseexcpt.c Fix libm feraiseexcept namespace (bug 17723). 2014-12-30 17:08:09 +00:00
fsetexcptflg.c PowerPC: Suppress unnecessary FPSCR write 2014-04-29 07:05:39 -05:00
ftestexcept.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
k_cosf.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
k_rem_pio2f.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
k_sinf.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
libm-test-ulps Update powerpc-fpu ULPs. 2014-06-30 17:38:43 -04:00
math_ldbl.h
math_private.h PowerPC: Remove unneeded copysign[f] macros 2014-05-22 16:05:19 -05:00
s_cosf.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
s_fabs.S Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
s_fabsf.S
s_fdim.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
s_fdimf.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
s_float_bitwise.h Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
s_fma.S Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
s_fmaf.S Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
s_fmax.S Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
s_fmaxf.S
s_fmin.S Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
s_fminf.S
s_isnan.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
s_isnanf.S
s_llround.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
s_llroundf.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
s_lrintf.S
s_rint.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
s_rintf.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
s_sinf.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
t_sqrt.c
tst-setcontext-fpscr.c Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00