llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Nathan Chancellor <nathan@kernel.org>
To: Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>,  Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	 x86@kernel.org
Cc: linux-kernel@vger.kernel.org, llvm@lists.linux.dev,
	 patches@lists.linux.dev, Nathan Chancellor <nathan@kernel.org>
Subject: [PATCH 5/6] x86/build: Remove cc-option from -mskip-rax-setup
Date: Thu, 14 Aug 2025 18:31:41 -0700	[thread overview]
Message-ID: <20250814-x86-min-ver-cleanups-v1-5-ff7f19457523@kernel.org> (raw)
In-Reply-To: <20250814-x86-min-ver-cleanups-v1-0-ff7f19457523@kernel.org>

This has been supported in GCC since 5.1 and clang since 14.0. Now that
x86 requires LLVM 15 or newer since commit 7861640aac52 ("x86/build:
Raise the minimum LLVM version to 15.0.0"), this flag can be
unconditionally added, saving a compiler invocation.

Link: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=fbe575b652f5bdcc459f447a0e6f0e059996d4ef
Link: https://github.com/llvm/llvm-project/commit/a9fba2be35db674971382e38b99a31403444d9bf
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
---
 arch/x86/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index 1bbf943fe9e1..4b4e2a3ac6df 100644
--- a/arch/x86/Makefile
+++ b/arch/x86/Makefile
@@ -160,7 +160,7 @@ else
         KBUILD_CFLAGS += $(cc_stack_align8)
 
 	# Use -mskip-rax-setup if supported.
-	KBUILD_CFLAGS += $(call cc-option,-mskip-rax-setup)
+	KBUILD_CFLAGS += -mskip-rax-setup
 
 ifdef CONFIG_X86_NATIVE_CPU
         KBUILD_CFLAGS += -march=native

-- 
2.50.1


  parent reply	other threads:[~2025-08-15  1:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-15  1:31 [PATCH 0/6] x86: Clean ups after minimum support compiler version bump Nathan Chancellor
2025-08-15  1:31 ` [PATCH 1/6] x86/build: Remove cc-option for GCC retpoline flags Nathan Chancellor
2025-08-15  1:31 ` [PATCH 2/6] x86/build: Remove cc-option from stack alignment flags Nathan Chancellor
2025-08-15  1:31 ` [PATCH 3/6] x86/build: Clean up stack alignment flags in CC_FLAGS_FPU Nathan Chancellor
2025-08-15  1:31 ` [PATCH 4/6] x86/build: Remove cc-option from -mno-fp-ret-in-387 Nathan Chancellor
2025-08-15  1:31 ` Nathan Chancellor [this message]
2025-08-15  1:31 ` [PATCH 6/6] x86/Kconfig: Clean up LLVM version checks in IBT configurations Nathan Chancellor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250814-x86-min-ver-cleanups-v1-5-ff7f19457523@kernel.org \
    --to=nathan@kernel.org \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=mingo@redhat.com \
    --cc=patches@lists.linux.dev \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).