diff mbox series

[1/2] toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_110934

Message ID ZND2FWFQqlhkfDSw@waldemar-brodkorb.de
State Accepted
Headers show
Series [1/2] toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_110934 | expand

Commit Message

Waldemar Brodkorb Aug. 7, 2023, 1:48 p.m. UTC
openssh package fails to build for the M68K architecture with -fzero-call-used-regs=all
passed to gcc = 12.3.0 and it's still present in gcc = 13.2.0:
http://autobuild.buildroot.net/results/d29/d29c662e41d8969e6a8aa24870e728bcc7050563/

It's been reported upstream:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
 toolchain/Config.in | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Thomas Petazzoni Aug. 7, 2023, 8:25 p.m. UTC | #1
On Mon, 7 Aug 2023 15:48:05 +0200
Waldemar Brodkorb <wbx@openadk.org> wrote:

> openssh package fails to build for the M68K architecture with -fzero-call-used-regs=all
> passed to gcc = 12.3.0 and it's still present in gcc = 13.2.0:
> http://autobuild.buildroot.net/results/d29/d29c662e41d8969e6a8aa24870e728bcc7050563/
> 
> It's been reported upstream:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934
> 
> Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
> ---
>  toolchain/Config.in | 7 +++++++
>  1 file changed, 7 insertions(+)

Both applied to master, thanks!

Thomas
Peter Korsgaard Sept. 11, 2023, 10:27 a.m. UTC | #2
>>>>> "Waldemar" == Waldemar Brodkorb <wbx@openadk.org> writes:

 > openssh package fails to build for the M68K architecture with -fzero-call-used-regs=all
 > passed to gcc = 12.3.0 and it's still present in gcc = 13.2.0:
 > http://autobuild.buildroot.net/results/d29/d29c662e41d8969e6a8aa24870e728bcc7050563/

 > It's been reported upstream:
 > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934

 > Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>

Committed to 2023.02.x and 2023.05.x, thanks.
diff mbox series

Patch

diff --git a/toolchain/Config.in b/toolchain/Config.in
index a142d27231..9d390ab11e 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -244,6 +244,13 @@  config BR2_TOOLCHAIN_HAS_GCC_BUG_107728
 	depends on BR2_TOOLCHAIN_USES_GLIBC
 	depends on BR2_OPTIMIZE_0
 
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110934
+# ICE: on M68K: in change_address_1, at emit-rtl.cc:2287
+# This bug exists in gcc = 12.3.0 and gcc = 13.2.0
+config BR2_TOOLCHAIN_HAS_GCC_BUG_110934
+	bool
+	default y if BR2_m68k
+
 config BR2_TOOLCHAIN_HAS_NATIVE_RPC
 	bool