[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master be64abf0 11/17: Establish general compiler fl
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master be64abf0 11/17: Establish general compiler flags earlier |
Date: |
Sat, 2 Jul 2022 21:42:14 -0400 (EDT) |
branch: master
commit be64abf00b25855a7d32af5ca1823184254f569f
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Establish general compiler flags earlier
First, handle the general case; then, handle overrides. Soon this will
become important.
---
compiler_clang.make | 16 ++++++++--------
compiler_gcc.make | 16 ++++++++--------
2 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/compiler_clang.make b/compiler_clang.make
index 3130800f..df6aa3be 100644
--- a/compiler_clang.make
+++ b/compiler_clang.make
@@ -86,6 +86,14 @@ tutelary_flag :=
ubsan_options := \
-fsanitize=address,undefined,float-divide-by-zero,float-cast-overflow \
+# Flags.
+
+# Define uppercase FLAGS recursively for greater flexibility: e.g., so
+# that they reflect downstream conditional changes to the lowercase
+# (and often immediately-expanded) variables they're composed from.
+
+debug_flag := -ggdb
+
# Apparently '-fomit-frame-pointer' is a clang default. Turn it off.
ifeq (gprof,$(build_type))
@@ -99,14 +107,6 @@ else
optimization_flag := -O2 -fno-omit-frame-pointer
endif
-# Flags.
-
-# Define uppercase FLAGS recursively for greater flexibility: e.g., so
-# that they reflect downstream conditional changes to the lowercase
-# (and often immediately-expanded) variables they're composed from.
-
-debug_flag := -ggdb
-
# Compiler-and-linker flags.
#
# 'c_l_flags' are to be used in both compiler and linker commands.
diff --git a/compiler_gcc.make b/compiler_gcc.make
index ba4e93e0..3913376e 100644
--- a/compiler_gcc.make
+++ b/compiler_gcc.make
@@ -104,6 +104,14 @@ ubsan_options := \
-fno-var-tracking-assignments \
--param max-gcse-memory=1000000 \
+# Flags.
+
+# Define uppercase FLAGS recursively for greater flexibility: e.g., so
+# that they reflect downstream conditional changes to the lowercase
+# (and often immediately-expanded) variables they're composed from.
+
+debug_flag := -ggdb
+
# Since gcc version 4.6, '-fomit-frame-pointer' has apparently been
# the default. Don't use that because it makes debugging difficult.
# See:
@@ -163,14 +171,6 @@ $(product_file_sources): tutelary_flag +=
$(product_file_flags)
################################################################################
-# Flags.
-
-# Define uppercase FLAGS recursively for greater flexibility: e.g., so
-# that they reflect downstream conditional changes to the lowercase
-# (and often immediately-expanded) variables they're composed from.
-
-debug_flag := -ggdb
-
# Compiler-and-linker flags.
#
# 'c_l_flags' are to be used in both compiler and linker commands.
- [lmi-commits] [lmi] master updated (61ff010d -> ec379f81), Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 4d58421b 05/17: Increase concinnity, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 8429817f 04/17: Increase concinnity, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master 1018709f 07/17: Move a warning option to its proper place, Greg Chicares, 2022/07/02
- [lmi-commits] [lmi] master f708d833 12/17: Override flags for product files more appropriately, Greg Chicares, 2022/07/02
- [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 <=
- [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, 2022/07/02
- [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