X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=arch%2Farm%2FMakefile;h=2c2b28ee48119771dfa92f353124795d456d770a;hb=8e64a7331702b7888ccf84b2b9ff46ab8e167c7f;hp=7451b447cc2d2cb8cc68a9bf59f125f2dd2ce347;hpb=8d2faea672606827c2018143ec7d88c760f2d6de;p=cascardo%2Flinux.git diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 7451b447cc2d..2c2b28ee4811 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -54,6 +54,14 @@ AS += -EL LD += -EL endif +# +# 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