glibc/sysdeps
Joseph Myers 01238691bb Fix libm fesetround namespace (bug 17748).
Continuing the fixes for C90 libm functions calling C99 fe* functions,
this patch fixes the case of fesetround by making it a weak alias of
__fesetround and making the affected code call __fesetround.  An
existing __fesetround function in fenv_libc.h for powerpc is renamed
to __fesetround_inline.

Tested for x86_64 (testsuite, and that disassembly of installed shared
libraries is unchanged by the patch).  Also tested for ARM
(soft-float) that fesetround failures disappear from the linknamespace
test results (feupdateenv remains to be addressed to complete fixing
bug 17748).

	[BZ #17748]
	* include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
	* math/fesetround.c (fesetround): Rename to __fesetround and
	define as weak alias of __fesetround.  Use libm_hidden_weak.
	* sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
	* sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
	* sysdeps/arm/fesetround.c (fesetround): Likewise.
	* sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
	* sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
	* sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
	* sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
	* sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
	* sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
	__fesetround_inline.
	* sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
	__fesetround_inline instead of __fesetround.
	* sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
	__fesetround and define as weak alias of __fesetround.  Use
	libm_hidden_weak.  Call __fesetround_inline instead of
	__fesetround.
	* sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
	__fesetround and define as weak alias of __fesetround.  Use
	libm_hidden_weak.
	* sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
	Likewise.
	* sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
	* sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
	* sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
	* sysdeps/tile/math_private.h (__fesetround): New inline function.
	* sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
	__fesetround and define as weak alias of __fesetround.  Use
	libm_hidden_weak.
	* sysdeps/generic/math_private.h (default_libc_fesetround): Call
	__fesetround instead of fesetround.
	(default_libc_feholdexcept_setround): Likewise.
	(libc_feholdsetround_ctx): Likewise.
	(libc_feholdsetround_noex_ctx): Likewise.
2015-01-07 00:41:23 +00:00
..
aarch64 Fix libm fesetround namespace (bug 17748). 2015-01-07 00:41:23 +00:00
alpha Fix libm fesetround namespace (bug 17748). 2015-01-07 00:41:23 +00:00
arm Fix libm fesetround namespace (bug 17748). 2015-01-07 00:41:23 +00:00
generic Fix libm fesetround namespace (bug 17748). 2015-01-07 00:41:23 +00:00
gnu ARM: Consolidate with generic unwinder wrapper code 2015-01-05 15:42:16 -08:00
hppa Fix libm fesetround namespace (bug 17748). 2015-01-07 00:41:23 +00:00
i386 Fix libm fesetround namespace (bug 17748). 2015-01-07 00:41:23 +00:00
ia64 Fix libm fesetround namespace (bug 17748). 2015-01-07 00:41:23 +00:00
ieee754 lround: provide cast for wordsize-64 version if needed 2015-01-05 11:59:32 -05:00
init_array Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
m68k Fix libm fesetround namespace (bug 17748). 2015-01-07 00:41:23 +00:00
mach Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
microblaze Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
mips Fix libm fesetround namespace (bug 17748). 2015-01-07 00:41:23 +00:00
nptl ARM: Consolidate with generic unwinder wrapper code 2015-01-05 15:42:16 -08:00
posix Function declaration cleanup 2015-01-06 08:23:58 -08:00
powerpc Fix libm fesetround namespace (bug 17748). 2015-01-07 00:41:23 +00:00
pthread Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
s390 Fix libm fesetround namespace (bug 17748). 2015-01-07 00:41:23 +00:00
sh Fix libm fesetround namespace (bug 17748). 2015-01-07 00:41:23 +00:00
sparc Fix libm fesetround namespace (bug 17748). 2015-01-07 00:41:23 +00:00
tile Fix libm fesetround namespace (bug 17748). 2015-01-07 00:41:23 +00:00
unix Clean up check_pf allocation pattern. addresses 2015-01-06 17:26:44 +01:00
wordsize-32 Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
wordsize-64 Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
x86 Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
x86_64 Fix libm fesetround namespace (bug 17748). 2015-01-07 00:41:23 +00:00