diff --git a/toolchain/Config.in b/toolchain/Config.in index 8f91b23562..30ccbcee7a 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -243,6 +243,16 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_111001 BR2_OPTIMIZE_2 || \ BR2_OPTIMIZE_3 +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121567 +# error: unable to find a register to spill in class ‘R0_REGS’ +# The bug exists at least since gcc 6.x, so we are assuming it affects +# all GCC versions. +config BR2_TOOLCHAIN_HAS_GCC_BUG_121567 + bool + default y if BR2_sh + depends on BR2_OPTIMIZE_2 || \ + BR2_OPTIMIZE_3 + config BR2_TOOLCHAIN_HAS_NATIVE_RPC bool