This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.26.9000-888-gf938b39
- From: jsm28 at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 30 Nov 2017 23:52:55 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.26.9000-888-gf938b39
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via f938b397dd17265a1a005cd5786f197de1013e74 (commit)
from 2251fad0254299701f4fb1c65ef8c8b69d0cf00e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=f938b397dd17265a1a005cd5786f197de1013e74
commit f938b397dd17265a1a005cd5786f197de1013e74
Author: Joseph Myers <joseph@codesourcery.com>
Date: Thu Nov 30 23:52:35 2017 +0000
Use libm_alias_float for coldfire.
Continuing the preparation for additional _FloatN / _FloatNx function
aliases, this patch makes coldfire libm function implementations use
libm_alias_float to define function aliases.
Untested, given the currently broken state of GCC for coldfire.
* sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
<libm-alias-float.h>.
(fabsf): Define using libm_alias_float.
* sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
<libm-alias-float.h>.
(lrintf): Define using libm_alias_float.
* sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
<libm-alias-float.h>.
(rintf): Define using libm_alias_float.
diff --git a/ChangeLog b/ChangeLog
index 2926264..9f842e7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
2017-11-30 Joseph Myers <joseph@codesourcery.com>
+ * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
+ <libm-alias-float.h>.
+ (fabsf): Define using libm_alias_float.
+ * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
+ <libm-alias-float.h>.
+ (lrintf): Define using libm_alias_float.
+ * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
+ <libm-alias-float.h>.
+ (rintf): Define using libm_alias_float.
+
* sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
<libm-alias-double.h>.
(fabs): Define using libm_alias_double.
diff --git a/sysdeps/m68k/coldfire/fpu/s_fabsf.c b/sysdeps/m68k/coldfire/fpu/s_fabsf.c
index e134c10..eff9888 100644
--- a/sysdeps/m68k/coldfire/fpu/s_fabsf.c
+++ b/sysdeps/m68k/coldfire/fpu/s_fabsf.c
@@ -15,10 +15,12 @@
License along with the GNU C Library. If not, see
<http://www.gnu.org/licenses/>. */
+#include <libm-alias-float.h>
+
float
__fabsf (float x)
{
asm ("fsabs.s %1,%0" : "=f" (x) : "dm" (x));
return x;
}
-weak_alias (__fabsf, fabsf)
+libm_alias_float (__fabs, fabs)
diff --git a/sysdeps/m68k/coldfire/fpu/s_lrintf.c b/sysdeps/m68k/coldfire/fpu/s_lrintf.c
index 7f5c9d0..0ec1014 100644
--- a/sysdeps/m68k/coldfire/fpu/s_lrintf.c
+++ b/sysdeps/m68k/coldfire/fpu/s_lrintf.c
@@ -15,6 +15,8 @@
License along with the GNU C Library. If not, see
<http://www.gnu.org/licenses/>. */
+#include <libm-alias-float.h>
+
long int
__lrintf (float x)
{
@@ -22,4 +24,4 @@ __lrintf (float x)
asm ("fmove.l %1,%0" : "=dm" (result) : "f" (x));
return result;
}
-weak_alias (__lrintf, lrintf)
+libm_alias_float (__lrint, lrint)
diff --git a/sysdeps/m68k/coldfire/fpu/s_rintf.c b/sysdeps/m68k/coldfire/fpu/s_rintf.c
index ea244e8..aa0e158 100644
--- a/sysdeps/m68k/coldfire/fpu/s_rintf.c
+++ b/sysdeps/m68k/coldfire/fpu/s_rintf.c
@@ -15,6 +15,8 @@
License along with the GNU C Library. If not, see
<http://www.gnu.org/licenses/>. */
+#include <libm-alias-float.h>
+
float
__rintf (float x)
{
@@ -22,4 +24,4 @@ __rintf (float x)
asm ("fint.s %1,%0" : "=f" (result) : "dm" (x));
return (float) result;
}
-weak_alias (__rintf, rintf)
+libm_alias_float (__rint, rint)
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 10 ++++++++++
sysdeps/m68k/coldfire/fpu/s_fabsf.c | 4 +++-
sysdeps/m68k/coldfire/fpu/s_lrintf.c | 4 +++-
sysdeps/m68k/coldfire/fpu/s_rintf.c | 4 +++-
4 files changed, 19 insertions(+), 3 deletions(-)
hooks/post-receive
--
GNU C Library master sources