toolchain/Config.in: fix BR2_TOOLCHAIN_HAS_GCC_BUG_99140 number
PATCH 1/2 toolchain/Config.in: fix BR2_TOOLCHAIN_HAS_GCC_BUG_99140 number
While introducing gcc bug 99410 I've named BR2_TOOLCHAIN_HAS_GCC_BUG_ to 99140 that is wrong. So let's fix this by changing bug option to BR2_TOOLCHAIN_HAS_GCC_BUG_99410.
--- package/belle-sip/belle-sip.mk | 2 +- toolchain/Config.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
package/belle-sip/belle-sip.mk +1 -1
@@ -35,7 +35,7 @@ endif BELLE_SIP_CFLAGS = $(TARGET_CFLAGS) -ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_99140),y) +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_99410) BELLE_SIP_CFLAGS += -O0 endif
toolchain/Config.in +1 -1
@@ -188,7 +188,7 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_93847 # 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 11.x. -config BR2_TOOLCHAIN_HAS_GCC_BUG_99140 +config BR2_TOOLCHAIN_HAS_GCC_BUG_99410 bool default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8 default y if BR2_TOOLCHAIN_GCC_AT_LEAST_9 && !BR2_TOOLCHAIN_GCC_AT_LEAST_11
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 toolchain/Config.in: update gcc bug 99410
Gcc bug 99410 reappeared while building with gcc 11.x and while testing it also shows up with gcc 12.x, so let's enable this bug for all gcc versions except gcc 8.x.
Fixes:
autobuild.buildroot.net/results/64e/64e54ef5ba3a3dee391b788315615d57a1dd9fa2/
--- toolchain/Config.in | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
toolchain/Config.in +5 -4
@@ -186,12 +186,13 @@ 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 11.x. +# no longer exists in gcc 8.x but reappeared on gcc 9.x and still exists +# on gcc 12.x config BR2_TOOLCHAIN_HAS_GCC_BUG_99410 bool - default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8 - default y if BR2_TOOLCHAIN_GCC_AT_LEAST_9 && !BR2_TOOLCHAIN_GCC_AT_LEAST_11 + default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8 || BR2_TOOLCHAIN_GCC_AT_LEAST_9 || \ + BR2_TOOLCHAIN_GCC_AT_LEAST_10 || BR2_TOOLCHAIN_GCC_AT_LEAST_11 || \ + BR2_TOOLCHAIN_GCC_AT_LEAST_12 depends on BR2_nios2 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101737
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/2] toolchain/Config.in: update gcc bug 99410
Quoted 6 lines · Giulio Benetti
Gcc bug 99410 reappeared while building with gcc 11.x and while testing it also shows up with gcc 12.x, so let's enable this bug for all gcc versions except gcc 8.x.
Fixes:
autobuild.buildroot.net/results/64e/64e54ef5ba3a3dee391b788315615d57a1dd9fa2/
Sorry, I've forgotten http://
Signature · 2 lines
Giulio Benetti Benetti Engineering sas
Quoted 17 lines
Signed-off-by Giulio Benetti <[email protected]>--- toolchain/Config.in | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)toolchain/Config.in +2
-2@@ -186,12 +186,13 @@ 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 11.x. +# no longer exists in gcc 8.x but reappeared on gcc 9.x and still exists +# on gcc 12.x
toolchain/Config.in config BR2_TOOLCHAIN_HAS_GCC_BUG_93847 · line 198
Quoted 10 lines
toolchain/Config.in +3
-2config BR2_TOOLCHAIN_HAS_GCC_BUG_99410 bool - default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8 - default y if BR2_TOOLCHAIN_GCC_AT_LEAST_9 && !BR2_TOOLCHAIN_GCC_AT_LEAST_11 + default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8 || BR2_TOOLCHAIN_GCC_AT_LEAST_9 || \ + BR2_TOOLCHAIN_GCC_AT_LEAST_10 || BR2_TOOLCHAIN_GCC_AT_LEAST_11 || \ + BR2_TOOLCHAIN_GCC_AT_LEAST_12 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
Re: [Buildroot] [PATCH 2/2] toolchain/Config.in: update gcc bug 99410
In reply to Giulio Benettitoolchain/Config.in config BR2_TOOLCHAIN_HAS_GCC_BUG_93847 · line 195
Quoted 7 lines · On Fri, 29 Jul 2022 18:24:30 +0200 Giulio Benetti…
config
BR2_TOOLCHAIN_HAS_GCC_BUG_99410toolchain/Config.in +3
-2bool - default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8 - default y if BR2_TOOLCHAIN_GCC_AT_LEAST_9 && !BR2_TOOLCHAIN_GCC_AT_LEAST_11 + default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8 || BR2_TOOLCHAIN_GCC_AT_LEAST_9 || \ + BR2_TOOLCHAIN_GCC_AT_LEAST_10 || BR2_TOOLCHAIN_GCC_AT_LEAST_11 || \ + BR2_TOOLCHAIN_GCC_AT_LEAST_12
This looks like a very convoluted way, that can be replaced with:
config BR2_TOOLCHAIN_HAS_GCC_BUG_99410
bool
default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8 default y if BR2_TOOLCHAIN_GCC_AT_LEAST_9
This says:
- The bug is present if you don't have at least gcc 8.x (so versions older than gcc 8.x are affected)
- The bug is present if you have at least gcc 9.x (so all versions more recent than 9.x included are affected)
So I replaced it with that. Let me know if you see a problem with this change.
Best regards,
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/2] toolchain/Config.in: update gcc bug 99410
Quoted 20 lines · Thomas Petazzoni via buildroot
toolchain/Config.in config BR2_TOOLCHAIN_HAS_GCC_BUG_93847 · line 195
Quoted 7 lines · On Fri, 29 Jul 2022 18:24:30 +0200 Giulio Benetti…
config
BR2_TOOLCHAIN_HAS_GCC_BUG_99410
booltoolchain/Config.in +3
-2- default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8 - default y if BR2_TOOLCHAIN_GCC_AT_LEAST_9 && !BR2_TOOLCHAIN_GCC_AT_LEAST_11 + default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8 || BR2_TOOLCHAIN_GCC_AT_LEAST_9 || \ + BR2_TOOLCHAIN_GCC_AT_LEAST_10 || BR2_TOOLCHAIN_GCC_AT_LEAST_11 || \ + BR2_TOOLCHAIN_GCC_AT_LEAST_12This looks like a very convoluted way, that can be replaced with:
config
BR2_TOOLCHAIN_HAS_GCC_BUG_99410
bool
default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8 default y ifBR2_TOOLCHAIN_GCC_AT_LEAST_9This says:
Quoted 8 lines
- The bug is present if you don't have at least gcc 8.x (so versions older than gcc 8.x are affected)
- The bug is present if you have at least gcc 9.x (so all versions more recent than 9.x included are affected)
So I replaced it with that. Let me know if you see a problem with this change.
That's true, thank you.
So I can improve also bugs:BR2_TOOLCHAIN_HAS_GCC_BUG_43744BR2_TOOLCHAIN_HAS_GCC_BUG_83143
This way we're also sure we always deal with latest gcc version. What about it?
Signature · 6 lines
Giulio Benetti Benetti Engineering sas _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/2] toolchain/Config.in: update gcc bug 99410
Quoted 6 lines · On Fri, 29 Jul 2022 22:22:56 +0200 Giulio Benetti…
So I can improve also bugs:
BR2_TOOLCHAIN_HAS_GCC_BUG_43744BR2_TOOLCHAIN_HAS_GCC_BUG_83143This way we're also sure we always deal with latest gcc version. What about it?
Sure!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/2] toolchain/Config.in: update gcc bug 99410
In reply to Giulio BenettiQuoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Giulio" == Giulio Benetti <[email protected]> writes:
Gcc bug 99410 reappeared while building with gcc 11.x and while testing it also shows up with gcc 12.x, so let's enable this bug for all gcc versions except gcc 8.x.
Fixes:
autobuild.buildroot.net/results/64e/64e54ef5ba3a3dee391b788315615d57a1dd9fa2/Signed-off-by Giulio Benetti <[email protected]>
Committed to 2022.05.x and 2022.02.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 15 lines · Giulio Benetti
While introducing gcc bug 99410 I've named
BR2_TOOLCHAIN_HAS_GCC_BUG_to 99140 that is wrong. So let's fix this by changing bug option toBR2_TOOLCHAIN_HAS_GCC_BUG_99410.Signed-off-by Giulio Benetti <[email protected]>--- package/belle-sip/belle-sip.mk | 2 +- toolchain/Config.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)package/belle-sip/belle-sip.mk +0
-0
package/belle-sip/belle-sip.mk endif · line 38
Quoted 5 lines
package/belle-sip/belle-sip.mk +1
-1@@ -35,7 +35,7 @@ endif BELLE_SIP_CFLAGS = $(TARGET_CFLAGS) -ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_99140),y) +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_99410)
Something went wrong here... ,y) dropped off.
Regards,
Arnout
Quoted 8 lines
package/belle-sip/belle-sip.mk +0
-0BELLE_SIP_CFLAGS += -O0 endiftoolchain/Config.in +0
-0
toolchain/Config.in config BR2_TOOLCHAIN_HAS_GCC_BUG_93847 · line 194
Quoted 8 lines
toolchain/Config.in +1
-1@@ -188,7 +188,7 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_93847 # 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 11.x. -config BR2_TOOLCHAIN_HAS_GCC_BUG_99140 +config BR2_TOOLCHAIN_HAS_GCC_BUG_99410 bool default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8 default y if BR2_TOOLCHAIN_GCC_AT_LEAST_9 && !BR2_TOOLCHAIN_GCC_AT_LEAST_11
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 9 lines · On Fri, 29 Jul 2022 18:24:29 +0200 Giulio Benetti…
While introducing gcc bug 99410 I've named
BR2_TOOLCHAIN_HAS_GCC_BUG_to 99140 that is wrong. So let's fix this by changing bug option toBR2_TOOLCHAIN_HAS_GCC_BUG_99410.Signed-off-by Giulio Benetti <[email protected]>--- package/belle-sip/belle-sip.mk | 2 +- toolchain/Config.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Applied after fixing the typo noticed by Arnout.
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
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Giulio" == Giulio Benetti <[email protected]> writes:
While introducing gcc bug 99410 I've named
BR2_TOOLCHAIN_HAS_GCC_BUG_to 99140 that is wrong. So let's fix this by changing bug option toBR2_TOOLCHAIN_HAS_GCC_BUG_99410.Signed-off-by Giulio Benetti <[email protected]>
Committed to 2022.05.x and 2022.02.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot