[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master b8061ca 3/7: Treat gcc versions "10" and "10.
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master b8061ca 3/7: Treat gcc versions "10" and "10.0" as the same |
Date: |
Wed, 7 Oct 2020 19:36:13 -0400 (EDT) |
branch: master
commit b8061ca8f08295fc3b5d26b9930aa4dd9a76650a
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Treat gcc versions "10" and "10.0" as the same
They presumably mean just about the same thing, but...
https://lists.nongnu.org/archive/html/lmi/2020-10/msg00031.html
| gcc under Linux has apparently switched to reporting only the
| major version in -dumpversion since version 7
while major.minor.patchlevel is reported by MinGW-w64.
'-dumpversion' should report major.minor.patchlevel always, but
only since it was introduced (apparently around gcc-7).
---
workhorse.make | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/workhorse.make b/workhorse.make
index d045e72..0ae1806 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -418,7 +418,7 @@ else ifneq (,$(filter $(gcc_version), 7.2.0 7.3.0))
gcc_version_specific_warnings := \
cxx_standard := -fno-ms-extensions -frounding-math -std=c++17
-else ifneq (,$(filter $(gcc_version), 8.1.0 8.2.0 8.3.0 9.3.0 10.0))
+else ifneq (,$(filter $(gcc_version), 8.1.0 8.2.0 8.3.0 9.3.0 10 10.0))
gcc_version_specific_warnings := \
ifeq (x86_64-w64-mingw32,$(findstring x86_64-w64-mingw32,$(LMI_TRIPLET)))
@@ -427,7 +427,7 @@ else ifneq (,$(filter $(gcc_version), 8.1.0 8.2.0 8.3.0
9.3.0 10.0))
tutelary_flag := -fomit-frame-pointer
endif
- ifneq (,$(filter $(gcc_version), 10.0))
+ ifneq (,$(filter $(gcc_version), 10 10.0))
gcc_cxx_warnings += -Wredundant-tags -Wvolatile
endif
- [lmi-commits] [lmi] master updated (61f5559 -> 14d582d), Greg Chicares, 2020/10/07
- [lmi-commits] [lmi] master ff1dd28 1/7: Improve measurement of compound-interest performance, Greg Chicares, 2020/10/07
- [lmi-commits] [lmi] master 7846a21 2/7: Fix defect introduced 20201004T1606Z: typo in variable name, Greg Chicares, 2020/10/07
- [lmi-commits] [lmi] master b8061ca 3/7: Treat gcc versions "10" and "10.0" as the same,
Greg Chicares <=
- [lmi-commits] [lmi] master 9a6cab4 4/7: Treat gcc versions "[89]" and "[89]\.*" as the same, Greg Chicares, 2020/10/07
- [lmi-commits] [lmi] master 81e3462 5/7: Specify a default data directory for CGI, Greg Chicares, 2020/10/07
- [lmi-commits] [lmi] master 14d582d 7/7: Trap exceptions from filesystem library, Greg Chicares, 2020/10/07
- [lmi-commits] [lmi] master c85b44f 6/7: Force print directory more sensibly, Greg Chicares, 2020/10/07