lmi-commits
[Top][All Lists]
Advanced

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



reply via email to

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