You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That can be fixed by using -mimplicit-it=always for Clang instead. This of course needs to be done compiler specific. I will come up with a patch for this.
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -123,7 +123,8 @@ endif
AFLAGS_NOWARN :=$(call as-option,-Wa$(comma)-mno-warn-deprecated,-Wa$(comma)-W)
ifeq ($(CONFIG_THUMB2_KERNEL),y)
-CFLAGS_ISA :=-mthumb -Wa,-mimplicit-it=always $(AFLAGS_NOWARN)
+CFLAGS_ISA :=-mthumb -mimplicit-it=always
AFLAGS_ISA :=$(CFLAGS_ISA) -Wa$(comma)-mthumb
# Work around buggy relocation from gas if requested:
ifeq ($(CONFIG_THUMB2_AVOID_R_ARM_THM_JUMP11),y)
Trying to use
AS=clang
andCONFIG_THUMB2_KERNEL=y
leads to the following errors:This is due to the kernel build system tries to pass
-mimplicit-it=always
by using-Wa
.The text was updated successfully, but these errors were encountered: