]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Define powerpc64 lroundl compat symbol only once.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 1 Dec 2017 23:58:05 +0000 (23:58 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 1 Dec 2017 23:58:05 +0000 (23:58 +0000)
sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c defines the
lroundl compat symbol, version GLIBC_2_1, twice, once based on llround
and once based on __lround.  Those are aliases for each other (llround
weak, __lround strong), but defining it twice does not make sense.
This patch changes it to define the compat symbol once only, matching
how libm_alias_double defines it.

Tested with build-many-glibcs.py for its powerpc64 configurations.

* sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
[LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
compat symbol based on llround.

ChangeLog
sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c

index 9bc63761d62ea92a2fccf8ac09d8443ad6bf7cff..e65ca614f8b2a8d7678ce63f95e795f58d4dee0e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
 
+       * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
+       [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
+       compat symbol based on llround.
+
        * sysdeps/powerpc/power7/fpu/s_logb.c
        [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
        symbol based on __logb, not on logb.
index cb1a446158506a4048d6f5ded6665d3c6775f6b9..b6c70c20aba1201dfeb0e7c2dbd4f0dddc0cb043 100644 (file)
@@ -46,7 +46,6 @@ strong_alias (__llround, __llroundl)
 #endif
 #if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)
 compat_symbol (libm, __llround, llroundl, GLIBC_2_1);
-compat_symbol (libm, llround, lroundl, GLIBC_2_1);
 #endif
 
 /* long has the same width as long long on PPC64.  */