[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 8ece241a 10/17: Fix defect introduced 2019032
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 8ece241a 10/17: Fix defect introduced 20190327T2239Z: incomplete override |
Date: |
Sat, 2 Jul 2022 21:42:14 -0400 (EDT) |
branch: master
commit 8ece241a3e6d0b479337c9422c380a1b42fc230d
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Fix defect introduced 20190327T2239Z: incomplete override
In 2019-02, $(tutelary_flag) was used to force $(product_file_flags) to
override all other options, for product files only. That was the only
way $(tutelary_flag) was used at the time. The overrides included
'-fno-omit-frame-pointer', which was universally used at that time.
Commit 376e4dfe7c4d4 of 20190327T2239Z used $(tutelary_flag) to force
'-fomit-frame-pointer' due to a compiler error. The intention was to do
that in every invocation of MinGW-w64-g++, but the $(product_file_flags)
then overrode that override, forcing the old '-fno-omit-frame-pointer'
behavior. This happened not to cause an ICE, so it was harmless; but if
a later product change happened to cause an ICE when compiling product
files, it might have been difficult to track down the reason.
Fixed the proximate cause of that potential problem by removing the
'-fno-omit-frame-pointer' option from $(product_file_flags). The
ultimate cause is that $(tutelary_flag) has been used inappropriately;
that will be fixed soon.
---
compiler_gcc.make | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler_gcc.make b/compiler_gcc.make
index 8897849d..ba4e93e0 100644
--- a/compiler_gcc.make
+++ b/compiler_gcc.make
@@ -150,7 +150,7 @@ endif
product_file_sources := my_db.o my_fund.o my_prod.o my_rnd.o my_tier.o
-product_file_flags := -Os -fno-var-tracking-assignments -fno-omit-frame-pointer
+product_file_flags := -Os -fno-var-tracking-assignments
$(product_file_sources): optimization_flag += $(product_file_flags)
- [lmi-commits] [lmi] master acfa77b0 08/17: Simplify, (continued)
- [lmi-commits] [lmi] master acfa77b0 08/17: Simplify, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 6896ec57 03/17: Explain uniformly why pointer-{compare, subtract} aren't used, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 05ef210f 01/17: Remove obsolete '.patch' files, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master be64abf0 11/17: Establish general compiler flags earlier, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 0e3c2fbb 02/17: Don't let makefiles end in an empty line, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master adcaef29 06/17: Establish a framework for clang warnings, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master e4abb6e1 14/17: Don't specify nonempty $CFLAGS or $CXXFLAGS, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master ec379f81 17/17: Use an updated XRC schema, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 89e37e40 13/17: Resolve a latent makefile issue, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 5971b763 09/17: Use $(tutelary_flag) to work around compiler breakage, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 8ece241a 10/17: Fix defect introduced 20190327T2239Z: incomplete override,
Greg Chicares <=
- [lmi-commits] [lmi] master 9a5cf902 16/17: Repeat '-fno-omit-frame-pointer' less often, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 1368400b 15/17: Deactivate old workarounds for product-file generation, Greg Chicares, 2022/07/02