Enable strict aliasing again
Conflicts:
libc/Android.mk
diff --git a/libc/Android.mk b/libc/Android.mk
index 5f11076..0f634be 100644
--- a/libc/Android.mk
+++ b/libc/Android.mk
@@ -494,7 +494,6 @@
-D_LIBC=1 \
-DFLOATING_POINT \
-DINET6 \
- -Wno-error=strict-aliasing \
-I$(LOCAL_PATH)/private \
-DPOSIX_MISTAKE \
-DLOG_ON_HEAP_ERROR \
@@ -508,12 +507,12 @@
# the appropriate BoardConfig.mk file.
#
ifneq ($(BOARD_MALLOC_ALIGNMENT),)
- libc_common_cflags += -DMALLOC_ALIGNMENT=$(BOARD_MALLOC_ALIGNMENT) -Wno-error=strict-aliasing
+ libc_common_cflags += -DMALLOC_ALIGNMENT=$(BOARD_MALLOC_ALIGNMENT)
endif
ifeq ($(TARGET_ARCH),arm)
libc_common_cflags += -DSOFTFLOAT
- libc_common_cflags += -fstrict-aliasing -Wno-error=strict-aliasing
+ libc_common_cflags += -fstrict-aliasing
libc_crt_target_cflags := -mthumb-interwork
endif # !arm
@@ -532,7 +531,6 @@
ifneq ($(ARCH_MIPS_HAS_FPU),true)
libc_common_cflags += -DSOFTFLOAT
endif
- libc_common_cflags += -fstrict-aliasing
libc_crt_target_cflags := $(TARGET_GLOBAL_CFLAGS)
endif # mips
@@ -712,7 +710,6 @@
LOCAL_SRC_FILES := $(libc_tzcode_src_files)
LOCAL_CFLAGS := \
$(libc_common_cflags) \
- -Wno-error=strict-aliasing \
-std=gnu99 \
-DSTD_INSPIRED=1 \
-DTZDIR=\"/system/usr/share/zoneinfo\" \
@@ -738,7 +735,6 @@
LOCAL_SRC_FILES := $(libc_upstream_freebsd_src_files)
LOCAL_CFLAGS := \
$(libc_common_cflags) \
- -Wno-error=strict-aliasing \
-I$(LOCAL_PATH)/upstream-freebsd \
-I$(LOCAL_PATH)/upstream-freebsd/libc/include \
-include upstream-freebsd/freebsd-compat.h