From 93c0a5173414cfa7684547de3c3a1f3dc4240383 Mon Sep 17 00:00:00 2001 From: Syrone Wong Date: Wed, 19 Aug 2015 17:44:18 +0800 Subject: [PATCH] linux: no-ipa-sra for gcc > 4.9.x source: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65932 --- .../310-1-arm_no-ipa-sra-for-gcc4.9-5.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 target/linux/generic/patches-4.0/310-1-arm_no-ipa-sra-for-gcc4.9-5.patch diff --git a/target/linux/generic/patches-4.0/310-1-arm_no-ipa-sra-for-gcc4.9-5.patch b/target/linux/generic/patches-4.0/310-1-arm_no-ipa-sra-for-gcc4.9-5.patch new file mode 100644 index 00000000000..16d679682a6 --- /dev/null +++ b/target/linux/generic/patches-4.0/310-1-arm_no-ipa-sra-for-gcc4.9-5.patch @@ -0,0 +1,12 @@ +--- a/arch/arm/Makefile ++++ b/arch/arm/Makefile +@@ -123,7 +123,8 @@ AFLAGS_ISA :=$(CFLAGS_ISA) + endif + + # Need -Uarm for gcc < 3.x +-KBUILD_CFLAGS +=$(CFLAGS_ABI) $(CFLAGS_ISA) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm ++# Maybe we need -fno-ipa-sra for gcc > 4.9.x ++KBUILD_CFLAGS +=$(CFLAGS_ABI) $(CFLAGS_ISA) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm -fno-ipa-sra + KBUILD_AFLAGS +=$(CFLAGS_ABI) $(AFLAGS_ISA) $(arch-y) $(tune-y) -include asm/unified.h -msoft-float + + CHECKFLAGS += -D__arm__