Kaydet (Commit) 42bb40a7 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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
üst 64600cee
...@@ -124,7 +124,7 @@ gb_NoexPrecompiledHeader_NOEXCEPTIONFLAGS := $(gb_LinkTarget_NOEXCEPTIONFLAGS) ...@@ -124,7 +124,7 @@ gb_NoexPrecompiledHeader_NOEXCEPTIONFLAGS := $(gb_LinkTarget_NOEXCEPTIONFLAGS)
# optimization level # optimization level
gb_COMPILEROPTFLAGS := $(gb_COMPILERDEFAULTOPTFLAGS) gb_COMPILEROPTFLAGS := $(gb_COMPILERDEFAULTOPTFLAGS)
gb_COMPILERNOOPTFLAGS := -O0 gb_COMPILERNOOPTFLAGS := -O0 -fstrict-aliasing -fstrict-overflow
# Clang does not know -ggdb2 or some other options # Clang does not know -ggdb2 or some other options
ifeq ($(HAVE_GCC_GGDB2),TRUE) ifeq ($(HAVE_GCC_GGDB2),TRUE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment