Browse Source

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>
tags/v0.3.11^2
Marius Hillenbrand 5 years ago
parent
commit
77ea73f5e5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Makefile.zarch

+ 1
- 1
Makefile.zarch 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

Loading…
Cancel
Save