diff options
| author | Stefan Agner <stefan@agner.ch> | 2019-02-17 18:59:06 -0500 |
|---|---|---|
| committer | Russell King <rmk+kernel@armlinux.org.uk> | 2019-04-23 12:21:24 -0400 |
| commit | e8c24bbda7d5eba6df5ca45e5462fd3f96b8f217 (patch) | |
| tree | 43b317942e5e8b74468d70ccc83379963b799c6c | |
| parent | 43947b8890b4734e34e889a2df52734e0081a097 (diff) | |
ARM: 8846/1: warn if divided syntax assembler is used
Remove the -mno-warn-deprecated assembler flag to make sure the GNU
assembler warns in case non-unified syntax is used.
Signed-off-by: Stefan Agner <stefan@agner.ch>
Acked-by: Nicolas Pitre <nico@linaro.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
| -rw-r--r-- | arch/arm/Makefile | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 807a7d06c2a0..68f4387cc279 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
| @@ -112,19 +112,16 @@ 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 | |||
| 118 | ifeq ($(CONFIG_THUMB2_KERNEL),y) | 115 | ifeq ($(CONFIG_THUMB2_KERNEL),y) |
| 119 | AFLAGS_AUTOIT :=$(call as-option,-Wa$(comma)-mimplicit-it=always,-Wa$(comma)-mauto-it) | 116 | AFLAGS_AUTOIT :=$(call as-option,-Wa$(comma)-mimplicit-it=always,-Wa$(comma)-mauto-it) |
| 120 | CFLAGS_ISA :=-mthumb $(AFLAGS_AUTOIT) $(AFLAGS_NOWARN) | 117 | CFLAGS_ISA :=-mthumb $(AFLAGS_AUTOIT) |
| 121 | AFLAGS_ISA :=$(CFLAGS_ISA) -Wa$(comma)-mthumb | 118 | AFLAGS_ISA :=$(CFLAGS_ISA) -Wa$(comma)-mthumb |
| 122 | # Work around buggy relocation from gas if requested: | 119 | # Work around buggy relocation from gas if requested: |
| 123 | ifeq ($(CONFIG_THUMB2_AVOID_R_ARM_THM_JUMP11),y) | 120 | ifeq ($(CONFIG_THUMB2_AVOID_R_ARM_THM_JUMP11),y) |
| 124 | KBUILD_CFLAGS_MODULE +=-fno-optimize-sibling-calls | 121 | KBUILD_CFLAGS_MODULE +=-fno-optimize-sibling-calls |
| 125 | endif | 122 | endif |
| 126 | else | 123 | else |
| 127 | CFLAGS_ISA :=$(call cc-option,-marm,) $(AFLAGS_NOWARN) | 124 | CFLAGS_ISA :=$(call cc-option,-marm,) |
| 128 | AFLAGS_ISA :=$(CFLAGS_ISA) | 125 | AFLAGS_ISA :=$(CFLAGS_ISA) |
| 129 | endif | 126 | endif |
| 130 | 127 | ||
