s390x: for clang use fp-contract=on instead of fast

Make clang slightly more cautious when contracting floating-point
operations (e.g., when applying fused multiply add) by setting
-ffp-contract=on (instead of fast).

Signed-off-by: Marius Hillenbrand <mhillen@linux.ibm.com>
This commit is contained in:
Marius Hillenbrand 2020-09-16 15:55:38 +02:00
parent f91057cbad
commit 77ea73f5e5
1 changed files with 1 additions and 1 deletions

View File

@ -12,5 +12,5 @@ endif
# Enable floating-point expression contraction for clang, since it is the # Enable floating-point expression contraction for clang, since it is the
# default for gcc # default for gcc
ifeq ($(C_COMPILER), CLANG) ifeq ($(C_COMPILER), CLANG)
CCOMMON_OPT += -ffp-contract=fast CCOMMON_OPT += -ffp-contract=on
endif endif