summaryrefslogtreecommitdiff
path: root/ext4_utils/Android.mk
diff options
context:
space:
mode:
authorBernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>2015-05-19 23:49:59 +0200
committerBernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>2015-05-19 23:49:59 +0200
commit9bb2808702c761301b24e668c07ed66b064308e2 (patch)
tree6016992428c57b08a5746fb33e7e523be5549a88 /ext4_utils/Android.mk
parent76aa23abe61a6848963ebcb2a2ef6bfa3614b3d7 (diff)
downloadextras-9bb2808702c761301b24e668c07ed66b064308e2.tar.gz
Set -fno-strict-aliasing here so we can get rid of it globally
Add -fno-strict-aliasing to the compiler flags where it is actually needed so we can get rid of the flag globally -- without it, compilers can optimize better. Change-Id: Ia574120ee231503ce364ee377506115fd41f0a48 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Diffstat (limited to 'ext4_utils/Android.mk')
-rw-r--r--ext4_utils/Android.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext4_utils/Android.mk b/ext4_utils/Android.mk
index 31a4b711..8953b459 100644
--- a/ext4_utils/Android.mk
+++ b/ext4_utils/Android.mk
@@ -22,6 +22,8 @@ libext4_utils_src_files := \
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(libext4_utils_src_files)
LOCAL_MODULE := libext4_utils_host
+# Various instances of dereferencing a type-punned pointer in extent.c
+LOCAL_CFLAGS += -fno-strict-aliasing
LOCAL_STATIC_LIBRARIES := \
libsparse_host \
libz
@@ -63,6 +65,8 @@ include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(libext4_utils_src_files)
LOCAL_MODULE := libext4_utils
LOCAL_C_INCLUDES += system/core/logwrapper/include
+# Various instances of dereferencing a type-punned pointer in extent.c
+LOCAL_CFLAGS += -fno-strict-aliasing
LOCAL_SHARED_LIBRARIES := \
libcutils \
libext2_uuid \
@@ -77,6 +81,8 @@ include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(libext4_utils_src_files) \
ext4_crypt_init_extensions.cpp
LOCAL_MODULE := libext4_utils_static
+# Various instances of dereferencing a type-punned pointer in extent.c
+LOCAL_CFLAGS += -fno-strict-aliasing
LOCAL_STATIC_LIBRARIES := \
libsparse_static
include $(BUILD_STATIC_LIBRARY)