Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 1d86d35

Browse files
committed
Merge tag 'x86_build_for_v6.11_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 build update from Borislav Petkov: - Make sure insn support detection uses the proper compiler flag in bi-arch builds * tag 'x86_build_for_v6.11_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/kconfig: Add as-instr64 macro to properly evaluate AS_WRUSS
2 parents 9319657 + 4691698 commit 1d86d35

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

arch/x86/Kconfig.assembler

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ config AS_VPCLMULQDQ
3636
Supported by binutils >= 2.30 and LLVM integrated assembler
3737

3838
config AS_WRUSS
39-
def_bool $(as-instr,wrussq %rax$(comma)(%rbx))
39+
def_bool $(as-instr64,wrussq %rax$(comma)(%rbx))
4040
help
4141
Supported by binutils >= 2.31 and LLVM integrated assembler

scripts/Kconfig.include

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ ld-option = $(success,$(LD) -v $(1))
3333

3434
# $(as-instr,<instr>)
3535
# Return y if the assembler supports <instr>, n otherwise
36-
as-instr = $(success,printf "%b\n" "$(1)" | $(CC) $(CLANG_FLAGS) -Wa$(comma)--fatal-warnings -c -x assembler-with-cpp -o /dev/null -)
36+
as-instr = $(success,printf "%b\n" "$(1)" | $(CC) $(CLANG_FLAGS) $(2) -Wa$(comma)--fatal-warnings -c -x assembler-with-cpp -o /dev/null -)
37+
as-instr64 = $(as-instr,$(1),$(m64-flag))
3738

3839
# check if $(CC) and $(LD) exist
3940
$(error-if,$(failure,command -v $(CC)),C compiler '$(CC)' not found)

0 commit comments

Comments
 (0)