mirror of git://sourceware.org/git/glibc.git
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).
This commit is contained in:
parent
507246ba24
commit
b6bec7ff5e
|
@ -907,6 +907,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" and
|
||||
# "libmvec" can use -fno-math-errno.
|
||||
|
|
Loading…
Reference in New Issue