Skip to contentSkip to conversation

toolchain: update gcc bug 99410

PATCH Applied Giulio Benetti 4 participants 8 messages Feb 6, 2022 – Feb 27, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toolchain: update gcc bug 99410

Gcc bug 99410 reappeared in gcc 10.x while building belle-sip, but it's fixed on gcc 11.x, so let's update bug conditions.

Fixes:
http://autobuild.buildroot.net/results/846597f3573d3b0d52e80627a9577d14b9348547/

---
 toolchain/Config.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
toolchain/Config.in +2 -2
index ccdf62503d..aed8f393a3 100644
@@ -185,11 +185,11 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_93847
 # 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 8.x but reappeared on gcc 9.x and has been
-# fixed on gcc 10.x.
+# fixed on gcc 11.x.
 config BR2_TOOLCHAIN_HAS_GCC_BUG_99140
 	bool
 	default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8
-	default y if BR2_TOOLCHAIN_GCC_AT_LEAST_9 && !BR2_TOOLCHAIN_GCC_AT_LEAST_10
+	default y if BR2_TOOLCHAIN_GCC_AT_LEAST_10 && !BR2_TOOLCHAIN_GCC_AT_LEAST_11
 	depends on BR2_nios2
 
 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101737
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 10 lines · On Sun, 6 Feb 2022 10:08:09 +0100 Giulio Benetti…

Gcc bug 99410 reappeared in gcc 10.x while building belle-sip, but it's fixed on gcc 11.x, so let's update bug conditions.

Fixes:
http://autobuild.buildroot.net/results/846597f3573d3b0d52e80627a9577d14b9348547/

---
 toolchain/Config.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Giulio Benetti
Quoted 16 lines · Giulio Benetti

Gcc bug 99410 reappeared in gcc 10.x while building belle-sip, but it's fixed on gcc 11.x, so let's update bug conditions.

Fixes:
http://autobuild.buildroot.net/results/846597f3573d3b0d52e80627a9577d14b9348547/

---
  toolchain/Config.in | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
toolchain/Config.in +0 -0
index ccdf62503d..aed8f393a3 100644

toolchain/Config.in config BR2_TOOLCHAIN_HAS_GCC_BUG_93847 · line 187

Quoted 3 lines
toolchain/Config.in +0 -0
@@ -185,11 +185,11 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_93847
  # 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 8.x but reappeared on gcc 9.x and has been

If this statement is true...

toolchain/Config.in config BR2_TOOLCHAIN_HAS_GCC_BUG_93847 · line 192

Quoted 7 lines
toolchain/Config.in +2 -2
-# fixed on gcc 10.x.
+# fixed on gcc 11.x.
  config BR2_TOOLCHAIN_HAS_GCC_BUG_99140
  	bool
  	default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8
-	default y if BR2_TOOLCHAIN_GCC_AT_LEAST_9 && !BR2_TOOLCHAIN_GCC_AT_LEAST_10
+	default y if BR2_TOOLCHAIN_GCC_AT_LEAST_10 && !BR2_TOOLCHAIN_GCC_AT_LEAST_11

... then this should be

	default y if BR2_TOOLCHAIN_GCC_AT_LEAST_9 && !BR2_TOOLCHAIN_GCC_AT_LEAST_11

We don't have a nios2 GCC9 toolchain in the autobuilders so we'll never
notice, of course.

Regards,
Arnout

toolchain/Config.in config BR2_TOOLCHAIN_HAS_GCC_BUG_93847 · line 195

Quoted 3 lines
toolchain/Config.in +0 -0
  	depends on BR2_nios2
 
  # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101737

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw

Hi Arnout,

Quoted 35 lines · Arnout Vandecappelle
Quoted 16 lines · Giulio Benetti

Gcc bug 99410 reappeared in gcc 10.x while building belle-sip, but it's fixed on gcc 11.x, so let's update bug conditions.

Fixes:
http://autobuild.buildroot.net/results/846597f3573d3b0d52e80627a9577d14b9348547/

---
   toolchain/Config.in | 4 ++--
   1 file changed, 2 insertions(+), 2 deletions(-)
toolchain/Config.in +0 -0
index ccdf62503d..aed8f393a3 100644

toolchain/Config.in config BR2_TOOLCHAIN_HAS_GCC_BUG_93847 · line 187

Quoted 3 lines
toolchain/Config.in +0 -0
@@ -185,11 +185,11 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_93847
   # 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 8.x but reappeared on gcc 9.x and has been

If this statement is true...

toolchain/Config.in config BR2_TOOLCHAIN_HAS_GCC_BUG_93847 · line 192

Quoted 7 lines
toolchain/Config.in +2 -2
-# fixed on gcc 10.x.
+# fixed on gcc 11.x.
   config BR2_TOOLCHAIN_HAS_GCC_BUG_99140
   	bool
   	default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8
-	default y if BR2_TOOLCHAIN_GCC_AT_LEAST_9 && !BR2_TOOLCHAIN_GCC_AT_LEAST_10
+	default y if BR2_TOOLCHAIN_GCC_AT_LEAST_10 && !BR2_TOOLCHAIN_GCC_AT_LEAST_11

... then this should be

Quoted 1 line
	default y if BR2_TOOLCHAIN_GCC_AT_LEAST_9 && !BR2_TOOLCHAIN_GCC_AT_LEAST_11

but it's all negative options, so I thought I needed AT_LEAST_10 to cover gcc 10.x as having the bug. But it's not needed. So I only need to modify from !BR2_TOOLCHAIN_GCC_AT_LEAST_10 to !BR2_TOOLCHAIN_GCC_AT_LEAST_11 and that's it.

So I send a V2 for this.

Quoted 2 lines

We don't have a nios2 GCC9 toolchain in the autobuilders so we'll never
notice, of course.

I've tested it locally with buildroot built toolchain.

Thank you!

Best regards

Signature · 2 lines
Giulio Benetti
Benetti Engineering sas
Quoted 10 lines

Regards,
Arnout

toolchain/Config.in config BR2_TOOLCHAIN_HAS_GCC_BUG_93847 · line 195

Quoted 3 lines
toolchain/Config.in +0 -0
   	depends on BR2_nios2
 
   # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101737

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#4 lore raw
Quoted 38 lines · Giulio Benetti

Hi Arnout,

Quoted 35 lines · Arnout Vandecappelle
Quoted 16 lines · Giulio Benetti

Gcc bug 99410 reappeared in gcc 10.x while building belle-sip, but it's fixed on gcc 11.x, so let's update bug conditions.

Fixes:
http://autobuild.buildroot.net/results/846597f3573d3b0d52e80627a9577d14b9348547/

---
    toolchain/Config.in | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)
toolchain/Config.in +0 -0
index ccdf62503d..aed8f393a3 100644

toolchain/Config.in config BR2_TOOLCHAIN_HAS_GCC_BUG_93847 · line 187

Quoted 3 lines
toolchain/Config.in +0 -0
@@ -185,11 +185,11 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_93847
    # 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 8.x but reappeared on gcc 9.x and has been

If this statement is true...

toolchain/Config.in config BR2_TOOLCHAIN_HAS_GCC_BUG_93847 · line 192

Quoted 7 lines
toolchain/Config.in +2 -2
-# fixed on gcc 10.x.
+# fixed on gcc 11.x.
    config BR2_TOOLCHAIN_HAS_GCC_BUG_99140
    	bool
    	default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8
-	default y if BR2_TOOLCHAIN_GCC_AT_LEAST_9 && !BR2_TOOLCHAIN_GCC_AT_LEAST_10
+	default y if BR2_TOOLCHAIN_GCC_AT_LEAST_10 && !BR2_TOOLCHAIN_GCC_AT_LEAST_11

... then this should be

Quoted 8 lines
Quoted 1 line
	default y if BR2_TOOLCHAIN_GCC_AT_LEAST_9 && !BR2_TOOLCHAIN_GCC_AT_LEAST_11

but it's all negative options, so I thought I needed AT_LEAST_10 to cover gcc 10.x as having the bug. But it's not needed. So I only need to modify from !BR2_TOOLCHAIN_GCC_AT_LEAST_10 to !BR2_TOOLCHAIN_GCC_AT_LEAST_11 and that's it.

So I send a V2 for this.

Not V2, I need a new one to fix it since it's already been applied. I send it now

Quoted 8 lines
Quoted 2 lines

We don't have a nios2 GCC9 toolchain in the autobuilders so we'll never
notice, of course.

I've tested it locally with buildroot built toolchain.

Thank you!

Best regards

Signature · 6 lines
Giulio Benetti
Benetti Engineering sas
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw

PATCH 1/1 toolchain: fix gcc bug 99140 condition

Gcc bug 99140 exhibits with gcc versions:
- up to 7.x
- 9.x
- 10.x
and doesn't show up with gcc versions:
- 8.x
- 11.x
then moving BR2_TOOLCHAIN_GCC_AT_LEAST_9 to BR2_TOOLCHAIN_GCC_AT_LEAST_10 makes gcc version 9 set as working but it's not. So let's back substitute BR2_TOOLCHAIN_GCC_AT_LEAST_10 with BR2_TOOLCHAIN_GCC_AT_LEAST_9.

---
 toolchain/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
toolchain/Config.in +1 -1
index aed8f393a3..db3f451f45 100644
@@ -189,7 +189,7 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_93847
 config BR2_TOOLCHAIN_HAS_GCC_BUG_99140
 	bool
 	default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8
-	default y if BR2_TOOLCHAIN_GCC_AT_LEAST_10 && !BR2_TOOLCHAIN_GCC_AT_LEAST_11
+	default y if BR2_TOOLCHAIN_GCC_AT_LEAST_9 && !BR2_TOOLCHAIN_GCC_AT_LEAST_11
 	depends on BR2_nios2
 
 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101737
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#6 lore raw

Re: [Buildroot] [PATCH] toolchain: fix gcc bug 99140 condition

Quoted 11 lines · Giulio Benetti

Gcc bug 99140 exhibits with gcc versions:
- up to 7.x
- 9.x
- 10.x
and doesn't show up with gcc versions:
- 8.x
- 11.x
then moving BR2_TOOLCHAIN_GCC_AT_LEAST_9 to BR2_TOOLCHAIN_GCC_AT_LEAST_10 makes gcc version 9 set as working but it's not. So let's back substitute BR2_TOOLCHAIN_GCC_AT_LEAST_10 with BR2_TOOLCHAIN_GCC_AT_LEAST_9.

Quoted 1 line

Applied to master, thanks.

Regards,
Arnout

Quoted 9 lines
---
  toolchain/Config.in | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
toolchain/Config.in +0 -0
index aed8f393a3..db3f451f45 100644

toolchain/Config.in config BR2_TOOLCHAIN_HAS_GCC_BUG_93847 · line 195

Quoted 8 lines
toolchain/Config.in +1 -1
@@ -189,7 +189,7 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_93847
  config BR2_TOOLCHAIN_HAS_GCC_BUG_99140
  	bool
  	default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8
-	default y if BR2_TOOLCHAIN_GCC_AT_LEAST_10 && !BR2_TOOLCHAIN_GCC_AT_LEAST_11
+	default y if BR2_TOOLCHAIN_GCC_AT_LEAST_9 && !BR2_TOOLCHAIN_GCC_AT_LEAST_11
  	depends on BR2_nios2
 
  # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101737

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#7 lore raw

Re: [Buildroot] [PATCH] toolchain: fix gcc bug 99140 condition

In reply to Giulio Benetti
Quoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Giulio" == Giulio Benetti <[email protected]> writes:

Gcc bug 99140 exhibits with gcc versions:
- up to 7.x
- 9.x
- 10.x
and doesn't show up with gcc versions:
- 8.x
- 11.x
then moving BR2_TOOLCHAIN_GCC_AT_LEAST_9 to BR2_TOOLCHAIN_GCC_AT_LEAST_10 makes gcc version 9 set as working but it's not. So let's back substitute BR2_TOOLCHAIN_GCC_AT_LEAST_10 with BR2_TOOLCHAIN_GCC_AT_LEAST_9.

Quoted 1 line

Committed to 2021.11.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot