[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 = \
- [lmi-commits] [lmi] master updated (fd6587af -> ceb0ac3b), Greg Chicares, 2022/06/27
- [lmi-commits] [lmi] master c63aa42b 07/11: Refactor, Greg Chicares, 2022/06/27
- [lmi-commits] [lmi] master b2160aeb 01/11: Expunge $(actually_used_lmi_so_attributes), Greg Chicares, 2022/06/27
- [lmi-commits] [lmi] master a68f8519 03/11: Transplant $REQUIRED_CPPFLAGS, Greg Chicares, 2022/06/27
- [lmi-commits] [lmi] master 76ac1bab 09/11: Transplant a definition, Greg Chicares, 2022/06/27
- [lmi-commits] [lmi] master ceb0ac3b 11/11: Fix defect introduced 20220623T2020Z: required information hidden, Greg Chicares, 2022/06/27
- [lmi-commits] [lmi] master 63460397 04/11: Expunge useless history, Greg Chicares, 2022/06/27
- [lmi-commits] [lmi] master 3bb0968b 02/11: Expunge two more needless local variables,
Greg Chicares <=
- [lmi-commits] [lmi] master 0771a1bb 05/11: Don't accept obsolete compiler versions, Greg Chicares, 2022/06/27
- [lmi-commits] [lmi] master 67455db4 06/11: Expunge obsolete history, Greg Chicares, 2022/06/27
- [lmi-commits] [lmi] master 620bcee6 10/11: Refactor in anticipation of transplantation, Greg Chicares, 2022/06/27
- [lmi-commits] [lmi] master d8ac666a 08/11: Generally avoid remaking makefiles, Greg Chicares, 2022/06/27