summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-06-12 16:14:44 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-06-13 09:49:35 +0200
commit42bb40a7ed0009d5c70ebf1e32d033b137203223 (patch)
treea0d32a83e1a81c2fe45c08f81d29b086da8f80d2 /solenv
parent64600ceed4ea2091eab2ea6691ec39e575108196 (diff)
Enable -fstrict-aliasing, -fstrict-overflow in -O0 debug builds
...so that -Wstrict-aliasing, -Wstrict-overflow=1 included in -Wall do not only produce warnings/errors in non-debug builds. Change-Id: I4534427738fa7688853564e8c7255a0c3cd199e1
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/platform/com_GCC_defs.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk
index 47f719101193..25b52c9c9cd2 100644
--- a/solenv/gbuild/platform/com_GCC_defs.mk
+++ b/solenv/gbuild/platform/com_GCC_defs.mk
@@ -124,7 +124,7 @@ gb_NoexPrecompiledHeader_NOEXCEPTIONFLAGS := $(gb_LinkTarget_NOEXCEPTIONFLAGS)
# optimization level
gb_COMPILEROPTFLAGS := $(gb_COMPILERDEFAULTOPTFLAGS)
-gb_COMPILERNOOPTFLAGS := -O0
+gb_COMPILERNOOPTFLAGS := -O0 -fstrict-aliasing -fstrict-overflow
# Clang does not know -ggdb2 or some other options
ifeq ($(HAVE_GCC_GGDB2),TRUE)