toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_101952
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Tue, 17 Aug 2021 21:31:11 +0000 (23:31 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 19 Aug 2021 20:41:41 +0000 (22:41 +0200)
bullet package fails to build for the SH4 architecture with optimization
enabled with gcc = 11.1.0:
http://autobuild.buildroot.net/results/32b/32bfaf0aae57ed18c18e82a72a958af9b3e1b241/

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

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
toolchain/Config.in

index d5f11761782be4a154af75c0c343dfab9c3544bb..01d93517bdb3825664d32c46322ab4b8b6759707 100644 (file)
@@ -183,6 +183,13 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_101737
        bool
        default y if BR2_sh4
 
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101952
+# ICE: on SH4: unaligned opcodes detected in executable segment.
+# This bug still exists in gcc = 11.1.0
+config BR2_TOOLCHAIN_HAS_GCC_BUG_101952
+       bool
+       default y if BR2_sh4
+
 config BR2_TOOLCHAIN_HAS_NATIVE_RPC
        bool