diff mbox series

[1/2] toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_109809

Message ID 20240205172327.2537523-1-giulio.benetti@benettiengineering.com
State New
Headers show
Series [1/2] toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_109809 | expand

Commit Message

Giulio Benetti Feb. 5, 2024, 5:23 p.m. UTC
htop package fails to build for the RISCV64 architecture with optimization
enabled with gcc = 13.2.0 and it's still present in gcc = 14.x as reported
upstream:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109809

So let's introduce BR2_TOOLCHAIN_HAS_GCC_BUG_109809 to handle packages
affected by it like htop.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 toolchain/Config.in | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/toolchain/Config.in b/toolchain/Config.in
index 34e0ae2c5f..64084dffe3 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -250,6 +250,14 @@  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=109809
+# ICE: in dwarf2out_frame_debug_cfa_offset
+# Shows up starting from Gcc 13.2.0 and still has to be fixed
+config BR2_TOOLCHAIN_HAS_GCC_BUG_109809
+	bool
+	default y if BR2_RISCV_64
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_13
+
 # 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