]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
microblaze: Overwrite default GCC-5.x behavior
authorMichal Simek <michal.simek@xilinx.com>
Wed, 20 Jan 2016 07:34:53 +0000 (08:34 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 27 Jan 2016 10:50:41 +0000 (11:50 +0100)
From GCC-5.x version the default mode for C is -std=gnu11
instead of -std=gnu89 but the is still the code in u-boot which doesn't
full fill gnu11 standard. Enable gnu89 inlining.

https://gcc.gnu.org/gcc-5/porting_to.html (go through the
“C languages issues” section).

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/config.mk

index e7a347738a759ce4d5687ee14245cc0d4b51c123..ba4ad9027212d91f49a024a5b695b61e8aa1dbbd 100644 (file)
@@ -14,7 +14,7 @@ endif
 
 CONFIG_STANDALONE_LOAD_ADDR ?= 0x80F00000
 
-PLATFORM_CPPFLAGS += -ffixed-r31 -D__microblaze__
+PLATFORM_CPPFLAGS += -ffixed-r31 -D__microblaze__ -fgnu89-inline
 
 ifeq ($(CONFIG_SPL_BUILD),)
 PLATFORM_CPPFLAGS += -fPIC