This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] sparcv9: Restore fdiml@GLIBC_2.1 [Was Re: [PATCH 3/3] sparc32/sparcv9: add a VIS3 version of fdim]
- From: "Paul E. Murphy" <murphyp at linux dot vnet dot ibm dot com>
- To: Aurelien Jarno <aurelien at aurel32 dot net>
- Cc: "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Date: Fri, 26 Aug 2016 14:28:12 -0500
- Subject: [PATCH] sparcv9: Restore fdiml@GLIBC_2.1 [Was Re: [PATCH 3/3] sparc32/sparcv9: add a VIS3 version of fdim]
- Authentication-results: sourceware.org; auth=none
- References: <ec60b568-194d-10c1-d141-744cbbc5e184@linux.vnet.ibm.com>
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