public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] Build glibc with -ftrapping-math
@ 2024-04-17 20:15 Adhemerval Zanella
0 siblings, 0 replies; 2+ messages in thread
From: Adhemerval Zanella @ 2024-04-17 20:15 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8565bb7763e71465b2f6dceb2319a785cf9092c0
commit 8565bb7763e71465b2f6dceb2319a785cf9092c0
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Feb 15 08:58:46 2024 -0300
Build glibc with -ftrapping-math
GCC enables it by default, clang in the other hand sets -fno-trapping-math.
This is required to fix some math and stdlib tests that explicit raises
floating point exceptions (i.e. stdlib/tst-strtod-round on aarch64).
Diff:
---
Makeconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Makeconfig b/Makeconfig
index 3cf894479a..cf0b7ab8b6 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -883,6 +883,9 @@ endif
# disable any optimization that assume default rounding mode.
+math-flags = $(config-cflags-frounding-math)
+# We have to assume that glibc functions might generate user-visible traps.
++math-flags += -ftrapping-math
+
# Logically only "libnldbl", "nonlib" and "testsuite" should be using
# -fno-math-errno. However due to GCC bug #88576, only "libm" can use
# -fno-math-errno.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [glibc/azanella/clang] Build glibc with -ftrapping-math
@ 2024-04-02 16:01 Adhemerval Zanella
0 siblings, 0 replies; 2+ messages in thread
From: Adhemerval Zanella @ 2024-04-02 16:01 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=458f3c5df44d24f60e0bffe2c5368a42f2496bc6
commit 458f3c5df44d24f60e0bffe2c5368a42f2496bc6
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Feb 15 08:58:46 2024 -0300
Build glibc with -ftrapping-math
GCC enables it by default, clang in the other hand sets -fno-trapping-math.
This is required to fix some math and stdlib tests that explicit raises
floating point exceptions (i.e. stdlib/tst-strtod-round on aarch64).
Diff:
---
Makeconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Makeconfig b/Makeconfig
index ce19406b88..ba9c870a9b 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -881,6 +881,9 @@ endif
# disable any optimization that assume default rounding mode.
+math-flags = $(config-cflags-frounding-math)
+# We have to assume that glibc functions might generate user-visible traps.
++math-flags += -ftrapping-math
+
# Logically only "libnldbl", "nonlib" and "testsuite" should be using
# -fno-math-errno. However due to GCC bug #88576, only "libm" can use
# -fno-math-errno.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-17 20:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-17 20:15 [glibc/azanella/clang] Build glibc with -ftrapping-math Adhemerval Zanella
-- strict thread matches above, loose matches on Subject: below --
2024-04-02 16:01 Adhemerval Zanella
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).