summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-12-06 23:06:12 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-12-06 23:06:12 +0000
commitfb1ca2aa3e58cad474c918f34e5e5eed70f5d94a (patch)
tree4a3bc2b05252124e5348b506c742c59da642820d /ChangeLog
parentfc10cc3f3223f1fa8c8dcc6743d18d1392808d71 (diff)
Support defining strtof32, wcstof32 aliases.
This patch adds support for defining strtof32, wcstof32, strtof32_l and wcstof32_l functions as aliases of the corresponding float functions when _Float32 support is enabled. Tested for x86_64; also tested with build-many-glibcs.py in conjunction with other _Float32 changes. * stdlib/strtof.c: Include <bits/floatn.h> [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define and later undefine as macro. Define as weak alias if [!USE_WIDE_CHAR]. [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define and later undefine as macro. Define as weak alias if [USE_WIDE_CHAR]. * stdlib/strtof_l.c: Include <bits/floatn.h> [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define and later undefine as macro. Define as weak alias if [!USE_WIDE_CHAR]. [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define and later undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog15
1 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index fc455ae577..d4c70e4820 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,20 @@
2017-12-06 Joseph Myers <joseph@codesourcery.com>
+ * stdlib/strtof.c: Include <bits/floatn.h>
+ [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
+ and later undefine as macro. Define as weak alias if
+ [!USE_WIDE_CHAR].
+ [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
+ and later undefine as macro. Define as weak alias if
+ [USE_WIDE_CHAR].
+ * stdlib/strtof_l.c: Include <bits/floatn.h>
+ [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
+ and later undefine as macro. Define as weak alias if
+ [!USE_WIDE_CHAR].
+ [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
+ and later undefine as macro. Define as weak alias if
+ [USE_WIDE_CHAR].
+
* stdlib/strfromf.c: Include <bits/floatn.h>.
[__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
and later undefine as macro and define as weak alias.