From: GNU Libc Maintainers Date: Sat, 29 Dec 2018 10:04:27 +0000 (+0000) Subject: submitted-workaround-math-errno-gcc-bug X-Git-Tag: archive/raspbian/2.28-5+rpi1^2^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a7cb53e9dca17abed26ab6a8b456803360e9a83b;p=glibc.git submitted-workaround-math-errno-gcc-bug 2018-12-22 Aurelien Jarno [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 --- diff --git a/Makeconfig b/Makeconfig index 621643549..764d9be0e 100644 --- a/Makeconfig +++ b/Makeconfig @@ -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),)