[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 01cf424 2/5: Override an infelicitous gcc-6.3
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 01cf424 2/5: Override an infelicitous gcc-6.3 default |
Date: |
Mon, 28 Aug 2017 09:27:45 -0400 (EDT) |
branch: master
commit 01cf424a14f9d0c7a26b0531e8d9f3ce83e3db2d
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Override an infelicitous gcc-6.3 default
---
workhorse.make | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/workhorse.make b/workhorse.make
index de14cd5..c85ce3c 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -482,10 +482,14 @@ endif
# Since at least gcc-3.4.2, -Wmissing-prototypes is deprecated as
# being redundant for C++.
-# This file contains hexadecimal floating constants. There is no
-# specific compiler option to allow them.
-
ifeq (6.3.0,$(gcc_version))
+ # The default '-fno-rounding-math' means something like
+ # #pragma STDC FENV ACCESS OFF
+ # which causes harm while bringing no countervailing benefit--see:
+ # http://lists.nongnu.org/archive/html/lmi/2017-08/msg00045.html
+ tutelary_flag += -frounding-math
+ # This file contains hexadecimal floating constants. There is no
+ # specific compiler option to allow them.
value_cast_test.o: tutelary_flag += -std=gnu++11
endif