toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_101737
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Tue, 3 Aug 2021 08:42:44 +0000 (10:42 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Thu, 5 Aug 2021 19:29:52 +0000 (21:29 +0200)
pixman package fails to build for the SH4 architecture with optimization
enabled with gcc up to 11.1.0:
http://autobuild.buildroot.net/results/b20/b20869bbb48edb1f0a847ea9e2e1a0462d6350be/

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

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
toolchain/Config.in

index 03375e0c525c2eb3e3fee64f7f6913894e8bb9f2..d5f11761782be4a154af75c0c343dfab9c3544bb 100644 (file)
@@ -176,6 +176,13 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_99140
        bool
        default y if BR2_nios2 && !BR2_TOOLCHAIN_GCC_AT_LEAST_8
 
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101737
+# ICE: SH4 -Os causes internal compiler error. This bug
+# still exists in gcc = 11.1.0
+config BR2_TOOLCHAIN_HAS_GCC_BUG_101737
+       bool
+       default y if BR2_sh4
+
 config BR2_TOOLCHAIN_HAS_NATIVE_RPC
        bool