glibc/sysdeps/ia64
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 arch-specific configuration for C11 atomics support. 2014-11-20 11:57:38 +01:00
fpu Fix libm fegetenv namespace (bug 17748). 2014-12-31 22:07:52 +00:00
nptl NPTL: Clean up THREAD_SYSINFO macros. 2014-10-17 15:03:00 -07:00
_mcount.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
abort-instr.h ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
backtrace.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
bcopy.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
bzero.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
configure Require autoconf 2.69 2014-09-29 07:53:36 -07:00
configure.ac Require autoconf 2.69 2014-09-29 07:53:36 -07:00
crti.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
crtn.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
dl-dtprocnum.h ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
dl-fptr.h ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
dl-lookupcfg.h ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
dl-machine.h Don't use INTDEF/INTUSE with _dl_init (bug 14132). 2014-11-04 23:26:39 +00:00
dl-sysdep.h ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
dl-tls.h ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
dl-trampoline.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
entry.h ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
gccframe.h ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
hp-timing.h Always provide HP_SMALL_TIMING_AVAIL 2014-07-03 08:38:36 -07:00
htonl.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
htons.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
ia64libgcc.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
ieee754.h ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
Implies ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
jmpbuf-unwind.h ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
ldbl2mpn.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
ldsodefs.h ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
libc-tls.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
machine-gmon.h ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
Makeconfig ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
Makefile Remove HP_TIMING_DIFF_INIT and dl_hp_timing_overhead 2014-07-03 08:38:25 -07:00
memccpy.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
memchr.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
memcmp.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
memcpy.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
memmove.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
memset.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
memusage.h ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
sched_cpucount.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
softpipe.h ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
sotruss-lib.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
stackguard-macros.h ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
stackinfo.h ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
start.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
strcat.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
strchr.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
strcmp.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
strcpy.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
strlen.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
strncmp.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
strncpy.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
sysdep.h ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
tininess.h ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
tls-macros.h ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
tst-audit.h ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
Versions ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00