[PATCH] sparcv9: Restore fdiml@GLIBC_2.1 [Was Re: [PATCH 3/3] sparc32/sparcv9: add a VIS3 version of fdim]

Paul E. Murphy murphyp@linux.vnet.ibm.com
Fri Aug 26 19:28:00 GMT 2016


Hi Aurelien,

[Sorry for the duplicate, I forgot the CC to libc-alpha]

I tested using the F22 cross-compiler on x86-64, and verified
the symbol is once again exported.

It turns out most other architectures don't have quite as
convoluted Implies as ppc64.

Likewise, doing "#include_next <s_fdim.c>" gave me a
compiler error.

I'll commit the following if it is ok.

---8<---
Use s_fdim.c from sysdeps/ieee754/ldbl-opt/ instead of
math/ to ensure a compat symbol for fdiml is created.

	[BZ #20517]
	* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c:
	Include ldbl-opt/s_fdim.c to ensure fdiml@GLIBC_2.1 is
	exported.
---
 sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
index c9c7704..9666741 100644
--- a/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
+++ b/sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
@@ -29,4 +29,4 @@ weak_alias (__fdim, fdim)
 # define __fdim __fdim_generic
 #endif
 
-#include <math/s_fdim.c>
+#include <ldbl-opt/s_fdim.c>
-- 
2.4.11



More information about the Libc-alpha mailing list