s390x: for clang use fp-contract=on instead of fast
authorMarius Hillenbrand <mhillen@linux.ibm.com>
Wed, 16 Sep 2020 13:55:38 +0000 (15:55 +0200)
committerMarius Hillenbrand <mhillen@linux.ibm.com>
Mon, 21 Sep 2020 09:32:08 +0000 (11:32 +0200)
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>
Makefile.zarch

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