toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_99410

belle-sip package fails to build for the Nios2 architecture with
optimization enabled with gcc < 8.x:
http://autobuild.buildroot.net/results/71f26fd81db8e9b19b3f18f3f3cefd9c768f094f/

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

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Giulio Benetti 2021-03-05 16:15:28 +01:00 committed by Peter Korsgaard
parent 830fb82822
commit d667267b8f

View File

@ -166,6 +166,13 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_93847
bool bool
default y if BR2_nios2 && !BR2_TOOLCHAIN_GCC_AT_LEAST_9 default y if BR2_nios2 && !BR2_TOOLCHAIN_GCC_AT_LEAST_9
# 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.
config BR2_TOOLCHAIN_HAS_GCC_BUG_99140
bool
default y if BR2_nios2 && !BR2_TOOLCHAIN_GCC_AT_LEAST_8
config BR2_TOOLCHAIN_HAS_NATIVE_RPC config BR2_TOOLCHAIN_HAS_NATIVE_RPC
bool bool