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-946-gfc10cc3
- From: jsm28 at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 6 Dec 2017 22:45:42 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.26.9000-946-gfc10cc3
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 fc10cc3f3223f1fa8c8dcc6743d18d1392808d71 (commit)
from e420d22826e081372d96af39f1f5a1fd4bb913a3 (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=fc10cc3f3223f1fa8c8dcc6743d18d1392808d71
commit fc10cc3f3223f1fa8c8dcc6743d18d1392808d71
Author: Joseph Myers <joseph@codesourcery.com>
Date: Wed Dec 6 22:44:56 2017 +0000
Support defining strfromf32 alias.
This patch adds support for defining strfromf32 as an alias of
strfromf when _Float32 support is enabled.
Tested for x86_64; also tested with build-many-glibcs.py in
conjunction with other _Float32 changes.
* stdlib/strfromf.c: Include <bits/floatn.h>.
[__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
and later undefine as macro and define as weak alias.
diff --git a/ChangeLog b/ChangeLog
index 9648718..fc455ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2017-12-06 Joseph Myers <joseph@codesourcery.com>
+ * stdlib/strfromf.c: Include <bits/floatn.h>.
+ [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
+ and later undefine as macro and define as weak alias.
+
* math/test-float32.h: New file.
* sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
diff --git a/stdlib/strfromf.c b/stdlib/strfromf.c
index 20c6744..01bed92 100644
--- a/stdlib/strfromf.c
+++ b/stdlib/strfromf.c
@@ -16,7 +16,23 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
+#include <bits/floatn.h>
+
#define FLOAT float
#define STRFROM strfromf
+#if __HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32
+# define strfromf32 __hide_strfromf32
+#endif
+
+#include <stdlib.h>
+
+#if __HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32
+# undef strfromf32
+#endif
+
#include "strfrom-skeleton.c"
+
+#if __HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32
+weak_alias (strfromf, strfromf32)
+#endif
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 4 ++++
stdlib/strfromf.c | 16 ++++++++++++++++
2 files changed, 20 insertions(+), 0 deletions(-)
hooks/post-receive
--
GNU C Library master sources