From 2cf38db35bc4644717d151d42f636dc5a93f294b Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Wed, 20 Jan 2016 08:34:53 +0100 Subject: [PATCH] microblaze: Overwrite default GCC-5.x behavior MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- arch/microblaze/config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/microblaze/config.mk b/arch/microblaze/config.mk index e7a347738a7..ba4ad902721 100644 --- a/arch/microblaze/config.mk +++ b/arch/microblaze/config.mk @@ -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 -- 2.47.3