|
@@ -115,9 +115,11 @@ ifeq ($(CONFIG_ARM_UNWIND),y)
|
|
CFLAGS_ABI +=-funwind-tables
|
|
CFLAGS_ABI +=-funwind-tables
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
+# Accept old syntax despite ".syntax unified"
|
|
|
|
+AFLAGS_NOWARN :=$(call as-option,-Wa$(comma)-mno-warn-deprecated,-Wa$(comma)-W)
|
|
|
|
+
|
|
ifeq ($(CONFIG_THUMB2_KERNEL),y)
|
|
ifeq ($(CONFIG_THUMB2_KERNEL),y)
|
|
AFLAGS_AUTOIT :=$(call as-option,-Wa$(comma)-mimplicit-it=always,-Wa$(comma)-mauto-it)
|
|
AFLAGS_AUTOIT :=$(call as-option,-Wa$(comma)-mimplicit-it=always,-Wa$(comma)-mauto-it)
|
|
-AFLAGS_NOWARN :=$(call as-option,-Wa$(comma)-mno-warn-deprecated,-Wa$(comma)-W)
|
|
|
|
CFLAGS_ISA :=-mthumb $(AFLAGS_AUTOIT) $(AFLAGS_NOWARN)
|
|
CFLAGS_ISA :=-mthumb $(AFLAGS_AUTOIT) $(AFLAGS_NOWARN)
|
|
AFLAGS_ISA :=$(CFLAGS_ISA) -Wa$(comma)-mthumb
|
|
AFLAGS_ISA :=$(CFLAGS_ISA) -Wa$(comma)-mthumb
|
|
# Work around buggy relocation from gas if requested:
|
|
# Work around buggy relocation from gas if requested:
|
|
@@ -125,7 +127,7 @@ ifeq ($(CONFIG_THUMB2_AVOID_R_ARM_THM_JUMP11),y)
|
|
KBUILD_CFLAGS_MODULE +=-fno-optimize-sibling-calls
|
|
KBUILD_CFLAGS_MODULE +=-fno-optimize-sibling-calls
|
|
endif
|
|
endif
|
|
else
|
|
else
|
|
-CFLAGS_ISA :=$(call cc-option,-marm,)
|
|
|
|
|
|
+CFLAGS_ISA :=$(call cc-option,-marm,) $(AFLAGS_NOWARN)
|
|
AFLAGS_ISA :=$(CFLAGS_ISA)
|
|
AFLAGS_ISA :=$(CFLAGS_ISA)
|
|
endif
|
|
endif
|
|
|
|
|