From: Jan Polensky <japo@linux.ibm.com>
To: Heiko Carstens <hca@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Alexander Gordeev <agordeev@linux.ibm.com>
Cc: Christian Borntraeger <borntraeger@linux.ibm.com>,
Sven Schnelle <svens@linux.ibm.com>,
Miguel Ojeda <ojeda@kernel.org>,
linux-s390@vger.kernel.org, rust-for-linux@vger.kernel.org
Subject: [PATCH v1 1/1] s390/rust: Use -Cforce-frame-pointers instead of -Ctarget-feature=+backchain
Date: Wed, 2 Dec 2026 17:37:21 +0100 [thread overview]
Message-ID: <20261202163721.2587240-1-japo@linux.ibm.com> (raw)
Newer rustc releases reject -Ctarget-feature=+backchain on s390x with
error: target feature `backchain` cannot be enabled with
`-Ctarget-feature`: use `-Cforce-frame-pointers` compiler flag instead
On s390x, -Cforce-frame-pointers now enables the "backchain" LLVM function
attribute instead of the generic "frame-pointer" attribute.
Switch the Rust flags to -Cforce-frame-pointers=y. The target stays
s390x-unknown-none-softfloat, which is required to combine backchain with
-Zpacked-stack.
Signed-off-by: Jan Polensky <japo@linux.ibm.com>
---
arch/s390/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/s390/Makefile b/arch/s390/Makefile
index 8b712cd85fcd..3ec7e6d7a783 100644
--- a/arch/s390/Makefile
+++ b/arch/s390/Makefile
@@ -35,7 +35,7 @@ KBUILD_CFLAGS_DECOMPRESSOR += $(if $(CONFIG_DEBUG_INFO),-g)
KBUILD_CFLAGS_DECOMPRESSOR += $(if $(CONFIG_DEBUG_INFO_DWARF4), $(call cc-option, -gdwarf-4,))
KBUILD_CFLAGS_DECOMPRESSOR += $(if $(CONFIG_CC_NO_ARRAY_BOUNDS),-Wno-array-bounds)
-KBUILD_RUSTFLAGS += --target=s390x-unknown-none-softfloat -Zpacked-stack -Ctarget-feature=+backchain
+KBUILD_RUSTFLAGS += --target=s390x-unknown-none-softfloat -Zpacked-stack -Cforce-frame-pointers=y
UTS_MACHINE := s390x
STACK_SIZE := $(if $(CONFIG_KASAN),65536,$(if $(CONFIG_KMSAN),65536,16384))
--
2.53.0
reply other threads:[~2026-12-02 16:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20261202163721.2587240-1-japo@linux.ibm.com \
--to=japo@linux.ibm.com \
--cc=agordeev@linux.ibm.com \
--cc=borntraeger@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=linux-s390@vger.kernel.org \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=svens@linux.ibm.com \
/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