submitted-workaround-math-errno-gcc-bug
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sat, 29 Dec 2018 10:04:27 +0000 (10:04 +0000)
committerAurelien Jarno <aurel32@debian.org>
Sat, 29 Dec 2018 10:04:27 +0000 (10:04 +0000)
2018-12-22  Aurelien Jarno  <aurelien@aurel32.net>

[BZ #24024]
* Makeconfig: Build libm with -fno-math-errno but build the remaining
code with -fmath-errno.

Gbp-Pq: Topic any
Gbp-Pq: Name submitted-workaround-math-errno-gcc-bug.diff

Makeconfig

index 62164354910b70ac4a713e0e0b374d45ce8397c0..764d9be0e055c40fb8f6144843fc658919655c44 100644 (file)
@@ -840,8 +840,8 @@ endif
 # disable any optimization that assume default rounding mode.
 +math-flags = -frounding-math
 
-# Build libc/libm using -fno-math-errno, but run testsuite with -fmath-errno.
-+extra-math-flags = $(if $(filter libnldbl nonlib testsuite,$(in-module)),-fmath-errno,-fno-math-errno)
+# Build libm using -fno-math-errno
++extra-math-flags = $(if $(filter libm,$(in-module)),-fno-math-errno,-fmath-errno)
 
 # We might want to compile with some stack-protection flag.
 ifneq ($(stack-protector),)