mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 11:03:07 -04:00
alpha: pass -Wa,-mev6 only when using GNU as
That flag exists to stop gas emulating instructions the assembler thinks the target lacks. It is a gas-only option, and LLVM's integrated assembler does not emulate instructions in the first place, so nothing is needed there. Condition it on CONFIG_AS_IS_GNU rather than the compiler, so it is still passed for clang builds using GNU as (LLVM_IAS=0) and omitted only for the integrated assembler. Signed-off-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Magnus Lindholm <linmag7@gmail.com> Link: https://lore.kernel.org/r/20260805185557.3283233-1-mattst88@gmail.com Signed-off-by: Magnus Lindholm <linmag7@gmail.com>
This commit is contained in:
committed by
Magnus Lindholm
parent
f32977deb1
commit
89679d7908
@@ -27,10 +27,16 @@ cpuflags-$(CONFIG_ALPHA_GENERIC) := -mcpu=ev56 -mtune=ev6
|
||||
cflags-y += $(cpuflags-y)
|
||||
|
||||
|
||||
KBUILD_CFLAGS += $(cflags-y)
|
||||
|
||||
# For TSUNAMI, we must have the assembler not emulate our instructions.
|
||||
# The same is true for IRONGATE, POLARIS, PYXIS.
|
||||
# BWX is most important, but we don't really want any emulation ever.
|
||||
KBUILD_CFLAGS += $(cflags-y) -Wa,-mev6
|
||||
# Only gas emulates instructions the target does not implement, and only gas
|
||||
# understands -mev6. LLVM's integrated assembler never emulates.
|
||||
ifdef CONFIG_AS_IS_GNU
|
||||
KBUILD_CFLAGS += -Wa,-mev6
|
||||
endif
|
||||
|
||||
libs-y += arch/alpha/lib/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user