OSDN Git Service

Stop asking GCC to cause trouble.
authorElliott Hughes <enh@google.com>
Thu, 20 Feb 2014 22:35:20 +0000 (14:35 -0800)
committerElliott Hughes <enh@google.com>
Thu, 20 Feb 2014 22:35:20 +0000 (14:35 -0800)
Why do we see so many bogus strict-aliasing warnings? Because we asked GCC to
cause trouble on arm and mips.

Change-Id: I25d7fd036b6afff7ccfa799abe0dc1579ead2847

libc/arch-arm/arm.mk
libc/arch-mips/mips.mk

index 0e9beba..55f9978 100644 (file)
@@ -41,10 +41,7 @@ libc_common_src_files_arm += \
 #    bionic/__strcpy_chk.cpp \
 #    bionic/__strcat_chk.cpp \
 
-# cflags
-libc_common_cflags_arm := \
-    -DSOFTFLOAT \
-    -fstrict-aliasing
+libc_common_cflags_arm := -DSOFTFLOAT
 
 ##########################################
 ### CPU specific source files
index 530c33f..0fa1ed6 100644 (file)
@@ -43,13 +43,10 @@ libc_common_src_files_mips += \
     bionic/__strcat_chk.cpp \
 
 
-# cflags
 ifneq ($(ARCH_MIPS_HAS_FPU),true)
 libc_common_cflags_mips := \
     -DSOFTFLOAT
 endif
-libc_common_cflags_mips += \
-    -fstrict-aliasing
 
 ##########################################
 ### CPU specific source files