[Buildroot] [git commit branch/2025.05.x] toolchain/Config.in: add BR2_TOOLCHAIN_HAS_GCC_BUG_121567
Thomas Perale
thomas.perale at mind.be
Fri Sep 5 15:25:41 UTC 2025
commit: https://git.buildroot.net/buildroot/commit/?id=b6aad354dc64369d5118b1f06a85aea109eb34a9
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2025.05.x
This will be needed to work around a GCC bug affecting python3. The
bug is reported at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121567.
This bug affects GCC at least since 6.x, but we couldn't test earlier
versions, so we simply assume all GCC versions are affected. Even GCC
15.x is still affected, as reported to upstream GCC.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Signed-off-by: Julien Olivain <ju.o at free.fr>
(cherry picked from commit 1838d8e5ea7e5c3497cefc16980da330c38e7967)
Signed-off-by: Thomas Perale <thomas.perale at mind.be>
---
toolchain/Config.in | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/toolchain/Config.in b/toolchain/Config.in
index 89eaa7b618..2d17860e30 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -243,6 +243,16 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_111001
BR2_OPTIMIZE_2 || \
BR2_OPTIMIZE_3
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121567
+# error: unable to find a register to spill in class âR0_REGSâ
+# The bug exists at least since gcc 6.x, so we are assuming it affects
+# all GCC versions.
+config BR2_TOOLCHAIN_HAS_GCC_BUG_121567
+ bool
+ default y if BR2_sh
+ depends on BR2_OPTIMIZE_2 || \
+ BR2_OPTIMIZE_3
+
config BR2_TOOLCHAIN_HAS_NATIVE_RPC
bool
More information about the buildroot
mailing list