diff options
author | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2012-08-21 17:07:45 +0200 |
---|---|---|
committer | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2012-12-01 01:12:41 +0100 |
commit | ca0ced6e14891156e4823a45ab6023d9106b42bf (patch) | |
tree | 6207a918edb525ef5a27134144a485d14759fc14 | |
parent | fd41a27425ff04f5673de77339b2adc8eb624b86 (diff) | |
download | build-ca0ced6e14891156e4823a45ab6023d9106b42bf.tar.gz |
build/core: Don't use -fno-strict-aliasing
Don't use -fno-strict-aliasing: It's no longer needed.
Change-Id: I7b6e9524197dc152b57a8d1900dd6d7f9fe3452d
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r-- | core/combo/TARGET_linux-arm.mk | 5 | ||||
-rw-r--r-- | core/combo/select.mk | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/core/combo/TARGET_linux-arm.mk b/core/combo/TARGET_linux-arm.mk index 860cbedc0d..b4efcd1e41 100644 --- a/core/combo/TARGET_linux-arm.mk +++ b/core/combo/TARGET_linux-arm.mk @@ -79,7 +79,9 @@ ifeq ($(ARCH_ARM_HAVE_THUMB_SUPPORT),true) TARGET_thumb_CFLAGS := -mthumb \ -O3 \ -fomit-frame-pointer \ - -fno-strict-aliasing + -fstrict-aliasing \ + -Wstrict-aliasing=2 \ + -Werror=strict-aliasing else TARGET_thumb_CFLAGS := $(TARGET_arm_CFLAGS) endif @@ -158,6 +160,7 @@ TARGET_RELEASE_CFLAGS += \ -DNDEBUG \ -g \ -Wstrict-aliasing=2 \ + -Werror=strict-aliasing \ -fgcse-after-reload \ -frerun-cse-after-loop \ -frename-registers diff --git a/core/combo/select.mk b/core/combo/select.mk index 2ebca83d4f..69dccaa18c 100644 --- a/core/combo/select.mk +++ b/core/combo/select.mk @@ -47,7 +47,7 @@ $(combo_target)HAVE_STRLCAT := 0 $(combo_target)HAVE_KERNEL_MODULES := 0 $(combo_target)GLOBAL_CFLAGS := -fno-exceptions -Wno-multichar -$(combo_target)RELEASE_CFLAGS := -O3 -g -fno-strict-aliasing +$(combo_target)RELEASE_CFLAGS := -O3 -g -Wstrict-aliasing=2 -Werror=strict-aliasing $(combo_target)GLOBAL_LDFLAGS := -Wl,-O2 $(combo_target)GLOBAL_ARFLAGS := crsP |