diff mbox series

[1/3] toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_97208

Message ID 20210813213745.1555522-2-giulio.benetti@benettiengineering.com
State Rejected
Headers show
Series Microblaze gcc bug 97208 | expand

Commit Message

Giulio Benetti Aug. 13, 2021, 9:37 p.m. UTC
lmbench package fails to build for the Microblaze architecture with
optimization enabled with gcc = 11.1.0:
http://autobuild.buildroot.net/results/ae1/ae1e4d61ed367c6cb64442c60d98882cc7985346/

It's been reported upstream by Romain Naour:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97208

Cc: Roman Naour <romain.naour@gmail.com>
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 toolchain/Config.in | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Giulio Benetti Aug. 13, 2021, 11:15 p.m. UTC | #1
Hi,

> Il giorno 13 ago 2021, alle ore 23:38, Giulio Benetti <giulio.benetti@benettiengineering.com> ha scritto:
> 
> lmbench package fails to build for the Microblaze architecture with
> optimization enabled with gcc = 11.1.0:

^^^ ‘gcc <= 11’, not only =

> http://autobuild.buildroot.net/results/ae1/ae1e4d61ed367c6cb64442c60d98882cc7985346/
> 
> It's been reported upstream by Romain Naour:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97208
> 
> Cc: Roman Naour <romain.naour@gmail.com>
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
> ---
> toolchain/Config.in | 7 +++++++
> 1 file changed, 7 insertions(+)
> 
> diff --git a/toolchain/Config.in b/toolchain/Config.in
> index 3888eeafe2..1dae0cb2cc 100644
> --- a/toolchain/Config.in
> +++ b/toolchain/Config.in
> @@ -163,6 +163,13 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_93847
>    bool
>    default y if BR2_nios2 && !BR2_TOOLCHAIN_GCC_AT_LEAST_9
> 
> +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97208
> +# ICE: in extract_insn, at recog.c:2294 on microblaze.
> +# This bug still exists in gcc = 11.1.0
> +config BR2_TOOLCHAIN_HAS_GCC_BUG_97208
> +    bool
> +    default y if BR2_microblaze
> +
> # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410
> # Error: branch offset out of range on Nios II. This bug
> # no longer exists in gcc >= 9.x.
> -- 
> 2.25.1
>
Giulio Benetti Aug. 14, 2021, 10:11 p.m. UTC | #2
Please drop this patch, I've already set it as Rejected in Patchwork.
Sorry for the noise
diff mbox series

Patch

diff --git a/toolchain/Config.in b/toolchain/Config.in
index 3888eeafe2..1dae0cb2cc 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -163,6 +163,13 @@  config BR2_TOOLCHAIN_HAS_GCC_BUG_93847
 	bool
 	default y if BR2_nios2 && !BR2_TOOLCHAIN_GCC_AT_LEAST_9
 
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97208
+# ICE: in extract_insn, at recog.c:2294 on microblaze.
+# This bug still exists in gcc = 11.1.0
+config BR2_TOOLCHAIN_HAS_GCC_BUG_97208
+	bool
+	default y if BR2_microblaze
+
 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410
 # Error: branch offset out of range on Nios II. This bug
 # no longer exists in gcc >= 9.x.