]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use libm_alias_float for e500.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 1 Dec 2017 01:12:42 +0000 (01:12 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 1 Dec 2017 01:12:42 +0000 (01:12 +0000)
Continuing the preparation for additional _FloatN / _FloatNx function
aliases, this patch makes an e500 libm function implementation use
libm_alias_float to define function aliases.

Tested with build-many-glibcs.py that installed stripped shared
libraries are unchanged for its e500 configurations.

* sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
<libm-alias-float.h>.
(fabsf): Define using libm_alias_float.

ChangeLog
sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S

index fc0bd3e94b0389deea7b22e3cfc7ce8fbc2f0b9f..d5951d02282a9ffe09dd9673514186f7897fbc6f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-12-01  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
+       <libm-alias-float.h>.
+       (fabsf): Define using libm_alias_float.
+
 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
 
        * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
index 9d00b629236d401ca6b79d8c28316edaee664ba2..e40b3d556f17272e0848f48af5d66106f9b219f3 100644 (file)
@@ -17,6 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <sysdep.h>
+#include <libm-alias-float.h>
 
 ENTRY (__fabsf)
 /* float [r3] fabsf (float [r3] x) ;  */
@@ -24,4 +25,4 @@ ENTRY (__fabsf)
        blr
 END (__fabsf)
 
-weak_alias (__fabsf, fabsf)
+libm_alias_float (__fabs, fabs)