This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 -----------------------------------------------------------------;a=commitdiff;h=fc10cc3f3223f1fa8c8dcc6743d18d1392808d71

commit fc10cc3f3223f1fa8c8dcc6743d18d1392808d71
Author: Joseph Myers <>
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 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  <>
+	* 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
    <>.  */
+#include <bits/floatn.h>
 #define FLOAT		float
 #define STRFROM		strfromf
+# define strfromf32 __hide_strfromf32
+#include <stdlib.h>
+# undef strfromf32
 #include "strfrom-skeleton.c"
+weak_alias (strfromf, strfromf32)


Summary of changes:
 ChangeLog         |    4 ++++
 stdlib/strfromf.c |   16 ++++++++++++++++
 2 files changed, 20 insertions(+), 0 deletions(-)

GNU C Library master sources

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]