]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use declare_mgen_alias in m68k templates.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 30 Nov 2017 19:03:57 +0000 (19:03 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 30 Nov 2017 19:03:57 +0000 (19:03 +0000)
Some m68k libm functions have their own templates replacing the
generic math/ ones but using the type-generic template machinery.
These currently define function aliases directly using weak_alias.  In
preparation for additional _FloatN / _FloatNx function aliases, this
patch changes them to use declare_mgen_alias for creating aliases
instead.

Tested with build-many-glibcs.py that installed stripped shared
libraries for m68k-linux-gnu are unchanged by the patch.

* sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
declare_mgen_alias instead of weak_alias.
* sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
* sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
* sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.

ChangeLog
sysdeps/m68k/m680x0/fpu/s_ccosh_template.c
sysdeps/m68k/m680x0/fpu/s_cexp_template.c
sysdeps/m68k/m680x0/fpu/s_csin_template.c
sysdeps/m68k/m680x0/fpu/s_csinh_template.c

index f791db869fc1d016785663aaabf5b6c7bc20ed21..d2aaf5f789af1c0ea5419596059a815728ee91f6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2017-11-30  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
+       declare_mgen_alias instead of weak_alias.
+       * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
+       * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
+       * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
+
 2017-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
        * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
index 26d11fc74001d3c48f0757a0d41c252b3d6a9f28..502679bfd06516e45fd9209ae3bbadb4c74f30c6 100644 (file)
@@ -65,4 +65,4 @@ s(__ccosh) (CFLOAT x)
 
   return retval;
 }
-weak_alias (s(__ccosh), s(ccosh))
+declare_mgen_alias (__ccosh, ccosh)
index 17cf1456859ffa1765e6fb66ef61ba36d217dfbc..755e724867846ed7f27012001f5119d6e7ddc9dc 100644 (file)
@@ -126,4 +126,4 @@ s(__cexp) (CFLOAT x)
 
   return retval;
 }
-weak_alias (s(__cexp), s(cexp))
+declare_mgen_alias (__cexp, cexp)
index be72208ef74b0bed0482e0debed009f23ad4e04a..bfcba128416fe3226e6a138808efeb8195b59af0 100644 (file)
@@ -56,4 +56,4 @@ s(__csin) (CFLOAT x)
 
   return retval;
 }
-weak_alias (s(__csin), s(csin))
+declare_mgen_alias (__csin, csin)
index f5180459e6d1f30f2297b932b65cf71a80674812..c4915cb0e8f4639b5135ef9f3ce66490385d60d1 100644 (file)
@@ -59,4 +59,4 @@ s(__csinh) (CFLOAT x)
 
   return retval;
 }
-weak_alias (s(__csinh), s(csinh))
+declare_mgen_alias (__csinh, csinh)