summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-01-06 20:26:21 +0100
committerRichard Braun <rbraun@sceen.net>2017-01-06 20:31:54 +0100
commit7320df6815649ab13a93a1b4d889b1b53bc112d4 (patch)
treef54249a46cad84dcd83831959ef243c5fbae9b75
parent7ff15eaca93ef512fb9ef67068032e09d3f7cef3 (diff)
Disable strict aliasing optimizations
The code base largely predates strict aliasing rules, and lots of potential violations can be found. Makeconf (CFLAGS): Add -fno-strict-aliasing option.
-rw-r--r--Makeconf2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makeconf b/Makeconf
index 8e24fc44..02594c64 100644
--- a/Makeconf
+++ b/Makeconf
@@ -79,7 +79,7 @@ CPPFLAGS += $(INCLUDES) \
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \
$($*-CPPFLAGS)
CFLAGS += -std=gnu99 $(gnu89-inline-CFLAGS) -Wall -g -O3 \
- $($*-CFLAGS)
+ -fno-strict-aliasing $($*-CFLAGS)
# Include the configure-generated file of parameters.
# This sets up variables for build tools and installation directories.