]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Base powerpc logbl compat symbols on __logb not logb.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 1 Dec 2017 23:37:46 +0000 (23:37 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 1 Dec 2017 23:37:46 +0000 (23:37 +0000)
Some powerpc logb implementations define a compat symbol for logbl
based on logb, whereas libm_alias_double defines such a compat symbol
based on __logb instead.  This difference (logb is weak, __logb isn't)
is enough to result in different installed stripped shared libraries.
The difference in the installed libraries isn't significant, but first
changing the compat_symbol calls helps make it possible to validate a
subsequent change to use libm_alias_double by comparison of libraries,
so this patch does such a preliminary change.

Tested with build-many-glibcs.py for all its hard-float powerpc
configurations.

* 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.
* sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
[LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
* sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
[LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.

ChangeLog
sysdeps/powerpc/power7/fpu/s_logb.c
sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c

index 27b49cd1b26d1acd5a50530360b1e1f67093a4b1..9bc63761d62ea92a2fccf8ac09d8443ad6bf7cff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
 
+       * 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.
+       * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
+       [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
+       * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
+       [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
+
        * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
        (rint): Define using libm_alias_double.
        * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
index af74b1d0242308f4cca58d01800f0288265619c1..1c7a4a850ba6f8d4491b10572371a500861cf71b 100644 (file)
@@ -75,5 +75,5 @@ weak_alias (__logb, logbl)
 #endif
 
 #if LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)
-compat_symbol (libm, logb, logbl, GLIBC_2_0);
+compat_symbol (libm, __logb, logbl, GLIBC_2_0);
 #endif
index fddd1ecbecb1362652175ba2da0354e95c0010e6..f178967f0ec955b099a53e4266bcaa8c51a2e83f 100644 (file)
@@ -37,5 +37,5 @@ weak_alias (__logb, logbl)
 #endif
 
 #if LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)
-compat_symbol (libm, logb, logbl, GLIBC_2_0);
+compat_symbol (libm, __logb, logbl, GLIBC_2_0);
 #endif
index d70919e3d4dd6fd4d762619d9dd8a9c04cb5c30f..c2e9f4d3cee003e1c3539ac0f346c2755d33c027 100644 (file)
@@ -37,5 +37,5 @@ weak_alias (__logb, logbl)
 #endif
 
 #if LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)
-compat_symbol (libm, logb, logbl, GLIBC_2_0);
+compat_symbol (libm, __logb, logbl, GLIBC_2_0);
 #endif