lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 3bb0968b 02/11: Expunge two more needless loc


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 3bb0968b 02/11: Expunge two more needless local variables
Date: Mon, 27 Jun 2022 19:56:08 -0400 (EDT)

branch: master
commit 3bb0968b94e1dffaec0fd7c511396ff8c8ec3c5c
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Expunge two more needless local variables
---
 compiler_gcc.make | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/compiler_gcc.make b/compiler_gcc.make
index 441a6040..0492d88f 100644
--- a/compiler_gcc.make
+++ b/compiler_gcc.make
@@ -493,11 +493,6 @@ ubsan_options := \
   -O3 \
   --param max-gcse-memory=1000000 \
 
-# libstdc++ debugging macros
-
-every_libstdcxx_warning_macro := \
-  -D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC -D_GLIBCXX_SANITIZE_VECTOR \
-
 # Since gcc version 4.6, '-fomit-frame-pointer' has apparently been
 # the default. Don't use that because it makes debugging difficult.
 # See:
@@ -510,7 +505,6 @@ else ifeq (ubsan,$(build_type))
   analyzer_flag := $(ubsan_options)
 else ifeq (safestdlib,$(build_type))
   optimization_flag := -O0 -fno-omit-frame-pointer
-  libstdcxx_warning_macros := $(every_libstdcxx_warning_macro)
 else
   optimization_flag := -O2 -fno-omit-frame-pointer
 endif
@@ -644,7 +638,6 @@ REQUIRED_CPPFLAGS = \
   $(addprefix -isystem , $(sys_include_directories)) \
   $(lmi_wx_new_so_attributes) \
   $(platform_defines) \
-  $(libstdcxx_warning_macros) \
   $(wx_predefinitions) \
   -D_FILE_OFFSET_BITS=64 \
 
@@ -652,6 +645,14 @@ ifneq (,$(USE_SO_ATTRIBUTES))
   REQUIRED_CPPFLAGS += -DLMI_USE_SO_ATTRIBUTES $(lmi_so_attributes)
 endif
 
+ifeq (safestdlib,$(build_type))
+  REQUIRED_CPPFLAGS += \
+    -D_GLIBCXX_DEBUG \
+    -D_GLIBCXX_DEBUG_PEDANTIC \
+    -D_GLIBCXX_SANITIZE_VECTOR \
+
+endif
+
 # C compiler flags.
 
 REQUIRED_CFLAGS = \



reply via email to

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