From 42bb40a7ed0009d5c70ebf1e32d033b137203223 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 12 Jun 2013 16:14:44 +0200 Subject: 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 --- solenv/gbuild/platform/com_GCC_defs.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'solenv') 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) -- cgit