From b8dc9bbd905f762bae9845274b1053da1c084860 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 20 Feb 2014 14:35:20 -0800 Subject: [PATCH] Stop asking GCC to cause trouble. 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 | 5 +---- libc/arch-mips/mips.mk | 3 --- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/libc/arch-arm/arm.mk b/libc/arch-arm/arm.mk index 0e9beba6a..55f99783a 100644 --- a/libc/arch-arm/arm.mk +++ b/libc/arch-arm/arm.mk @@ -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 diff --git a/libc/arch-mips/mips.mk b/libc/arch-mips/mips.mk index 530c33f5a..0fa1ed6eb 100644 --- a/libc/arch-mips/mips.mk +++ b/libc/arch-mips/mips.mk @@ -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