From c856e31523b2a01efc39a97207d3ce11f1db1ca5 Mon Sep 17 00:00:00 2001 From: Jing Yu Date: Fri, 18 Nov 2011 14:13:15 -0800 Subject: [PATCH] Workaround for a gcc-4.6 bug on -fstrict-volatile-bitfields. http://gcc.gnu.org/ml/gcc-patches/2011-03/msg01477.html http://gcc.gnu.org/ml/gcc-patches/2011-11/msg01390.html -fstrict-volatile-bitfields is set on by default on gcc-4.6 for ARM target. This causes an inline asm() error. While upstream gcc community is working on the patch, we shut off this option temporarily. This patch does not affect gcc-4.4.3 build. Change-Id: Id7016dc5856a516e10f2617232945034728a74ab --- core/combo/TARGET_linux-arm.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/combo/TARGET_linux-arm.mk b/core/combo/TARGET_linux-arm.mk index 784010c2df..4db9bac54e 100644 --- a/core/combo/TARGET_linux-arm.mk +++ b/core/combo/TARGET_linux-arm.mk @@ -119,7 +119,8 @@ TARGET_GLOBAL_CFLAGS += \ # in gcc-4.4.x. We also want to disable sincos optimization globally # by turning off the builtin sin function. ifneq ($(filter 4.6.%, $(shell $(TARGET_CC) --version)),) -TARGET_GLOBAL_CFLAGS += -Wno-unused-but-set-variable -fno-builtin-sin +TARGET_GLOBAL_CFLAGS += -Wno-unused-but-set-variable -fno-builtin-sin \ + -fno-strict-volatile-bitfields endif # This is to avoid the dreaded warning compiler message: