glibc/sysdeps/mips
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 Add support for MIPS O32 FPXX and .MIPS.abiflags 2014-12-31 21:09:21 +00:00
fpu Fix libm fegetenv namespace (bug 17748). 2014-12-31 22:07:52 +00:00
ieee754 Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
include/sys Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
mips32 Regenerate MIPS libm-test-ulps. 2014-06-30 21:34:20 +00:00
mips64 2014-12-19 Steve Ellcey <sellcey@imgtec.com> 2014-12-19 14:39:18 -08:00
nptl Move architecture shlib-versions files to Linux-specific directories. 2014-07-17 14:31:12 +00:00
soft-fp soft-fp: support after-rounding tininess detection. 2014-02-12 18:27:12 +00:00
sys 2014-12-19 Steve Ellcey <sellcey@imgtec.com> 2014-12-19 14:37:44 -08:00
__longjmp.c Fix sysdeps/mips/__longjmp.c warning. 2014-11-26 16:34:06 +00:00
abort-instr.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
add_n.S Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
addmul_1.S 2014-12-19 Steve Ellcey <sellcey@imgtec.com> 2014-12-19 14:39:18 -08:00
backtrace.c Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
bsd-_setjmp.S Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
bsd-setjmp.S Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
configure Require autoconf 2.69 2014-09-29 07:53:36 -07:00
configure.ac Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
dl-dtprocnum.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
dl-machine-reject-phdr.h Add support for MIPS O32 FPXX and .MIPS.abiflags 2014-12-31 21:09:21 +00:00
dl-machine.h Add support for MIPS O32 FPXX and .MIPS.abiflags 2014-12-31 21:09:21 +00:00
dl-procinfo.c Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
dl-procinfo.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
dl-tls.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
dl-trampoline.c * sysdeps/mips/dl-trampoline.c: Modify switch expression to have 2014-12-11 10:23:01 -08:00
fpregdef.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
fpu_control.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
gccframe.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
Implies Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
jmpbuf-unwind.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
ldsodefs.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
libc-tls.c Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
lshift.S Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
machine-gmon.h 2014-12-19 Steve Ellcey <sellcey@imgtec.com> 2014-12-19 14:37:44 -08:00
Makefile Add support for MIPS O32 FPXX and .MIPS.abiflags 2014-12-31 21:09:21 +00:00
math_private.h Fix MIPS libc_feresetround*_ctx to preserve exceptions. 2014-03-11 22:30:40 +00:00
math-tests.h Update MIPS math-tests.h for GCC 4.9 using soft-fp. 2014-02-13 00:46:45 +00:00
memcpy.S Fix preprocessor indentation in sysdeps/mips/memcpy.S. 2014-12-22 13:29:20 -08:00
memset.S Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
memusage.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
mul_1.S 2014-12-19 Steve Ellcey <sellcey@imgtec.com> 2014-12-19 14:39:18 -08:00
preconfigure Put mips preconfigure code inside mips* case statement. 2014-09-09 10:58:00 -07:00
regdef.h Fix whitespace in MIPS files to allow move. 2014-02-10 23:31:30 +00:00
rshift.S Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
setjmp_aux.c Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
setjmp.S Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
sgidefs.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
sotruss-lib.c Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
stackinfo.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
start.S mips: Do not use jal to reach __libc_start_main 2014-12-02 23:04:43 +00:00
strcmp.S Remove extra whitespace from end of line. 2014-10-01 13:46:51 -07:00
sub_n.S Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
submul_1.S Remove trailing white space. 2014-12-19 14:40:29 -08:00
tininess.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
tls-macros.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
tst-abi-fp32mod.c Add support for MIPS O32 FPXX and .MIPS.abiflags 2014-12-31 21:09:21 +00:00
tst-abi-fp64amod.c Add support for MIPS O32 FPXX and .MIPS.abiflags 2014-12-31 21:09:21 +00:00
tst-abi-fp64mod.c Add support for MIPS O32 FPXX and .MIPS.abiflags 2014-12-31 21:09:21 +00:00
tst-abi-fpxxmod.c Add support for MIPS O32 FPXX and .MIPS.abiflags 2014-12-31 21:09:21 +00:00
tst-abi-fpxxomod.c Add support for MIPS O32 FPXX and .MIPS.abiflags 2014-12-31 21:09:21 +00:00
tst-abi-interlink.c Add support for MIPS O32 FPXX and .MIPS.abiflags 2014-12-31 21:09:21 +00:00
tst-audit.h Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
tst-mode-switch-1.c Add support for MIPS O32 FPXX and .MIPS.abiflags 2014-12-31 21:09:21 +00:00
tst-mode-switch-2.c Add support for MIPS O32 FPXX and .MIPS.abiflags 2014-12-31 21:09:21 +00:00
tst-mode-switch-3.c Add support for MIPS O32 FPXX and .MIPS.abiflags 2014-12-31 21:09:21 +00:00