aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2013-07-25 08:04:59 +0530
committerBernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>2014-07-03 01:02:03 +0200
commit2d3a2ea1ffa43fec3f800217ef9fc04f6b116d63 (patch)
tree83ac06bbcbc69af83850a24357854b4e631eea54
parent126c0ea874aff1897618f8aa4b0302b9f4990b2c (diff)
downloadbuild-2d3a2ea1ffa43fec3f800217ef9fc04f6b116d63.tar.gz
build/core: Don't use -fno-strict-aliasing
Don't use -fno-strict-aliasing: It's no longer needed. Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
-rw-r--r--core/combo/TARGET_linux-arm.mk5
-rw-r--r--core/combo/select.mk2
2 files changed, 5 insertions, 2 deletions
diff --git a/core/combo/TARGET_linux-arm.mk b/core/combo/TARGET_linux-arm.mk
index 320bfc6349..000762c826 100644
--- a/core/combo/TARGET_linux-arm.mk
+++ b/core/combo/TARGET_linux-arm.mk
@@ -77,7 +77,9 @@ TARGET_arm_CFLAGS := -O3 \
TARGET_thumb_CFLAGS := -mthumb \
-O3 \
-fomit-frame-pointer \
- -fno-strict-aliasing
+ -fstrict-aliasing \
+ -Wstrict-aliasing=2 \
+ -Werror=strict-aliasing
# Set FORCE_ARM_DEBUGGING to "true" in your buildspec.mk
# or in your environment to force a full arm build, even for
@@ -146,6 +148,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