summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2012-08-19 23:44:11 +0200
committerAmit Pundir <amit.pundir@linaro.org>2013-07-25 05:16:55 +0530
commit9786ca9af6b9c806f82a9aa789ffb86a918cbffb (patch)
tree907d04753a147ba19b02b0f44176d899403396d0
parent4d4bc6e7777887d93340f577d9b46de4a7c75f26 (diff)
downloadextras-9786ca9af6b9c806f82a9aa789ffb86a918cbffb.tar.gz
tests: Use -fno-strict-aliasing for memtest
There's just no way to do this piece correctly: int dummy = 0; printf("corrupting our stack...\n"); *(volatile long long*)&dummy = 0; Change-Id: If02ff71b3c23c3d8118694f6edba0ecf904baf8a Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r--tests/memtest/Android.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/memtest/Android.mk b/tests/memtest/Android.mk
index 3b893f60..ad239f0b 100644
--- a/tests/memtest/Android.mk
+++ b/tests/memtest/Android.mk
@@ -15,7 +15,7 @@ LOCAL_MODULE:= memtest
LOCAL_MODULE_TAGS := optional
## LOCAL_CFLAGS += -fstack-protector-all
-LOCAL_CFLAGS += -fomit-frame-pointer
+LOCAL_CFLAGS += -fomit-frame-pointer -fno-strict-aliasing
include $(BUILD_EXECUTABLE)
endif