[Buildroot] [git commit branch/2022.05.x] toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_104028

Peter Korsgaard peter at korsgaard.com
Thu Aug 18 06:24:54 UTC 2022


commit: https://git.buildroot.net/buildroot/commit/?id=ef5d468a888c4c8dece719f10b893045480b8663
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2022.05.x

sg3_utils package fails to build for the M68K architecture with optimization
enabled with gcc = 10.3.0 and it's still present in gcc = 11.1.0:
http://autobuild.buildroot.net/results/c49300d12a209b18f41d389f092324592b881277/

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

Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit 7b6bdf6bcb5f96128d52ea0f159ccaab9fc8da67)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 toolchain/Config.in | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/toolchain/Config.in b/toolchain/Config.in
index ea59ca2960..64714011e0 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -222,6 +222,13 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_101952
 	bool
 	default y if BR2_sh4
 
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104028
+# ICE: on M68K: Error: value -16034 out of range
+# This bug still exists in gcc = 11.1.0
+config BR2_TOOLCHAIN_HAS_GCC_BUG_104028
+	bool
+	default y if BR2_m68k
+
 config BR2_TOOLCHAIN_HAS_NATIVE_RPC
 	bool
 



More information about the buildroot mailing list