X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=arch%2Farm%2FMakefile;fp=arch%2Farm%2FMakefile;h=4a933748065d9e0256edf9cea6134e74ca023de7;hb=9d3eb706ab42eeb9336f7b62b0d14d5f85a1dd18;hp=362c7cad2bc5c56056497e7a1054a33246733ea1;hpb=f4a08180fbf920c796e8ab8e186efa08238545dd;p=pandora-kernel.git diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 362c7cad2bc5..4a933748065d 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -53,6 +53,14 @@ endif comma = , +# +# The Scalar Replacement of Aggregates (SRA) optimization pass in GCC 4.9 and +# later may result in code being generated that handles signed short and signed +# char struct members incorrectly. So disable it. +# (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65932) +# +KBUILD_CFLAGS += $(call cc-option,-fno-ipa-sra) + # This selects which instruction set is used. # Note that GCC does not numerically define an architecture version # macro, but instead defines a whole series of macros which makes