Skip to content
This repository has been archived by the owner on Aug 8, 2018. It is now read-only.

Commit

Permalink
linux: no-ipa-sra for gcc > 4.9.x
Browse files Browse the repository at this point in the history
  • Loading branch information
wongsyrone committed Aug 19, 2015
1 parent 8a2cdfa commit 93c0a51
Showing 1 changed file with 12 additions and 0 deletions.
@@ -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__

0 comments on commit 93c0a51

Please sign in to comment.