diff options
-rw-r--r-- | arch/arm/Makefile | 7 |
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) | |||
112 | CFLAGS_ABI +=-funwind-tables | 112 | CFLAGS_ABI +=-funwind-tables |
113 | endif | 113 | endif |
114 | 114 | ||
115 | # Accept old syntax despite ".syntax unified" | ||
116 | AFLAGS_NOWARN :=$(call as-option,-Wa$(comma)-mno-warn-deprecated,-Wa$(comma)-W) | ||
117 | |||
115 | ifeq ($(CONFIG_THUMB2_KERNEL),y) | 118 | ifeq ($(CONFIG_THUMB2_KERNEL),y) |
116 | CFLAGS_ISA :=-mthumb -Wa,-mimplicit-it=always | 119 | CFLAGS_ISA :=-mthumb -Wa,-mimplicit-it=always $(AFLAGS_NOWARN) |
117 | AFLAGS_ISA :=$(CFLAGS_ISA) -Wa$(comma)-mthumb | 120 | AFLAGS_ISA :=$(CFLAGS_ISA) -Wa$(comma)-mthumb |
118 | # Work around buggy relocation from gas if requested: | 121 | # Work around buggy relocation from gas if requested: |
119 | ifeq ($(CONFIG_THUMB2_AVOID_R_ARM_THM_JUMP11),y) | 122 | ifeq ($(CONFIG_THUMB2_AVOID_R_ARM_THM_JUMP11),y) |
120 | KBUILD_CFLAGS_MODULE +=-fno-optimize-sibling-calls | 123 | KBUILD_CFLAGS_MODULE +=-fno-optimize-sibling-calls |
121 | endif | 124 | endif |
122 | else | 125 | else |
123 | CFLAGS_ISA :=$(call cc-option,-marm,) | 126 | CFLAGS_ISA :=$(call cc-option,-marm,) $(AFLAGS_NOWARN) |
124 | AFLAGS_ISA :=$(CFLAGS_ISA) | 127 | AFLAGS_ISA :=$(CFLAGS_ISA) |
125 | endif | 128 | endif |
126 | 129 | ||