aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2019-05-15 18:17:17 -0400
committerRussell King <rmk+kernel@armlinux.org.uk>2019-05-15 18:17:17 -0400
commitb752bb405a13f11b2db0a24d52da85cf7f8c0fea (patch)
tree72202fe3d35efe7faaca7aa2b16f61ddac0885f7
parentfe00e50b2db8c60e4ec90befad1f5bab8ca2c800 (diff)
Revert "ARM: 8846/1: warn if divided syntax assembler is used"
This reverts commit e8c24bbda7d5eba6df5ca45e5462fd3f96b8f217. GCC 4.7, which is still permitted, emits code using the original syntax. This means we end up with lots of assembler warnings when building with a currently-supported version of gcc. Revert the commit (with fixups to keep the follow-on -mauto-it change) to avoid these warnings. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
-rw-r--r--arch/arm/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 1f7bbde5e23e..bdb40d5263fc 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -112,15 +112,18 @@ ifeq ($(CONFIG_ARM_UNWIND),y)
112CFLAGS_ABI +=-funwind-tables 112CFLAGS_ABI +=-funwind-tables
113endif 113endif
114 114
115# Accept old syntax despite ".syntax unified"
116AFLAGS_NOWARN :=$(call as-option,-Wa$(comma)-mno-warn-deprecated,-Wa$(comma)-W)
117
115ifeq ($(CONFIG_THUMB2_KERNEL),y) 118ifeq ($(CONFIG_THUMB2_KERNEL),y)
116CFLAGS_ISA :=-mthumb -Wa,-mimplicit-it=always 119CFLAGS_ISA :=-mthumb -Wa,-mimplicit-it=always $(AFLAGS_NOWARN)
117AFLAGS_ISA :=$(CFLAGS_ISA) -Wa$(comma)-mthumb 120AFLAGS_ISA :=$(CFLAGS_ISA) -Wa$(comma)-mthumb
118# Work around buggy relocation from gas if requested: 121# Work around buggy relocation from gas if requested:
119ifeq ($(CONFIG_THUMB2_AVOID_R_ARM_THM_JUMP11),y) 122ifeq ($(CONFIG_THUMB2_AVOID_R_ARM_THM_JUMP11),y)
120KBUILD_CFLAGS_MODULE +=-fno-optimize-sibling-calls 123KBUILD_CFLAGS_MODULE +=-fno-optimize-sibling-calls
121endif 124endif
122else 125else
123CFLAGS_ISA :=$(call cc-option,-marm,) 126CFLAGS_ISA :=$(call cc-option,-marm,) $(AFLAGS_NOWARN)
124AFLAGS_ISA :=$(CFLAGS_ISA) 127AFLAGS_ISA :=$(CFLAGS_ISA)
125endif 128endif
126 129