glibc/sysdeps/alpha
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
..
alphaev5 Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
alphaev6 Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
alphaev67 Relocate alpha from ports to libc 2014-02-12 07:00:06 -08: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 Alpha: Define TLS_DEFINE_INIT_TP 2014-06-11 12:23:35 -07:00
soft-fp alpha: Fix soft-fp breakage 2014-11-17 09:20:02 -08:00
__longjmp.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
_mcount.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
add_n.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
addmul_1.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
backtrace.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
bb_init_func.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
bsd-_setjmp.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
bsd-setjmp.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
bzero.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08: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 Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
crtn.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
div_libc.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
div.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
divl.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
divlu.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
divq.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
divqu.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
dl-dtprocnum.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
dl-machine.h Don't use INTDEF/INTUSE with _dl_init (bug 14132). 2014-11-04 23:26:39 +00:00
dl-procinfo.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
dl-procinfo.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
dl-sysdep.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
dl-tls.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
dl-trampoline.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
ffs.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
ffsll.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
gccframe.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
hp-timing.h Unify hp-timing implementations 2014-07-03 08:38:30 -07:00
htonl.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
htons.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
Implies Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
jmpbuf-offsets.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
jmpbuf-unwind.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
ldiv.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
ldsodefs.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
libc-tls.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
lldiv.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
lshift.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
machine-gmon.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
Makefile alpha: Enable unwind tables for backtrace.c 2014-04-16 21:35:29 -07:00
memchr.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
memset.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
memusage.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
mul_1.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
nscd-types.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
preconfigure Remove relro configure test. 2014-06-27 16:51:22 +00:00
rawmemchr.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
reml.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
remlu.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
remq.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
remqu.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
rshift.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
setjmp.S Remove IS_IN_rtld 2014-11-24 11:41:48 +05:30
sotruss-lib.c Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
stackinfo.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
start.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
stpcpy.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
stpncpy.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
strcat.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
strchr.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
strcmp.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
strcpy.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
strlen.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
strncat.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
strncmp.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
strncpy.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
strrchr.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
stxcpy.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
stxncpy.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
sub_n.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
Subdirs Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
submul_1.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
tininess.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
tls-macros.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
tst-audit.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
udiv_qrnnd.S 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