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-569-g18c08b9
- From: jsm28 at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 13 Oct 2017 23:10:14 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.26-569-g18c08b9
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 18c08b96414c7bb01af92bfef8d542ffc7bdaf80 (commit)
from f8718a9e1620d6645e3c069e9b13fcd09f6db462 (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=18c08b96414c7bb01af92bfef8d542ffc7bdaf80
commit 18c08b96414c7bb01af92bfef8d542ffc7bdaf80
Author: Joseph Myers <joseph@codesourcery.com>
Date: Fri Oct 13 23:09:48 2017 +0000
Support strfromf128 alias.
This patch adds support for building strfromf128 as an alias of
strfroml, in the case of __HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128.
Tested with build-many-glibcs.py that installed stripped shared
libraries are unchanged by this patch. Also tested together with
changes to enable float128 aliases.
* stdlib/strfroml.c: Include <bits/floatn.h>.
[__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
Define before include of <stdlib.h> and undefine afterwards, then
define as weak alias.
diff --git a/ChangeLog b/ChangeLog
index f3cca14..46abc65 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2017-10-13 Joseph Myers <joseph@codesourcery.com>
+ * stdlib/strfroml.c: Include <bits/floatn.h>.
+ [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
+ Define before include of <stdlib.h> and undefine afterwards, then
+ define as weak alias.
+
* sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
Undefine and restore default definition. Use
libm_alias_ldouble_other.
diff --git a/stdlib/strfroml.c b/stdlib/strfroml.c
index f8c8a4f..bd6ebca 100644
--- a/stdlib/strfroml.c
+++ b/stdlib/strfroml.c
@@ -16,7 +16,19 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
+#include <bits/floatn.h>
+
#define FLOAT long double
#define STRFROM strfroml
+#if __HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128
+# define strfromf128 __hide_strfromf128
+# include <stdlib.h>
+# undef strfromf128
+#endif
+
#include "strfrom-skeleton.c"
+
+#if __HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128
+weak_alias (strfroml, strfromf128)
+#endif
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
stdlib/strfroml.c | 12 ++++++++++++
2 files changed, 17 insertions(+), 0 deletions(-)
hooks/post-receive
--
GNU C Library master sources