lmi-commits
[Top][All Lists]
Advanced

[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)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]