glibc/sysdeps/hppa
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 Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
fpu Fix libm fegetenv namespace (bug 17748). 2014-12-31 22:07:52 +00:00
hppa1.1 Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
nptl HPPA: Transition to new non-addon NPTL. 2014-09-07 22:08:36 -04:00
Makefile Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
Versions Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
__longjmp.c Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
abort-instr.h Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
add_n.S Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
bsd-_setjmp.S Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
bsd-setjmp.S Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
configure Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
configure.ac Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
crti.S Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
crtn.S Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
dl-fptr.c Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
dl-fptr.h Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
dl-irel.h Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
dl-lookupcfg.h Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
dl-machine.h Don't use INTDEF/INTUSE with _dl_init (bug 14132). 2014-11-04 23:26:39 +00:00
dl-symaddr.c Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
dl-tls.h Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
dl-trampoline.S Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
entry.h Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
frame.h Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
gccframe.h Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
get-rounding-mode.h Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
jmpbuf-offsets.h Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
jmpbuf-unwind.h Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
ldsodefs.h Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
libc-tls.c Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
libgcc-compat.c Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
lshift.S Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
machine-gmon.h Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
math_private.h Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
memusage.h Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
mp_clz_tab.c Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
preconfigure Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
rshift.S Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
setjmp.S Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
shlib-versions Remove configuration name patterns from shlib-versions. 2014-09-12 12:28:47 +00:00
stackinfo.h Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
start.S Fix -Wundef warnings for SHARED 2014-07-09 09:26:07 +01:00
sub_n.S Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
sysdep.h Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
tininess.h Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
tls-macros.h Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
tst-audit.h Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
udiv_qrnnd.S Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00