From 81e7e2e773a7ea59bbb129233183b481066ecf6e Mon Sep 17 00:00:00 2001 From: Giulio Benetti Date: Fri, 29 Jul 2022 22:44:56 +0200 Subject: [PATCH] toolchain/Config.in: improve gcc bug 43744 condition This makes the condition easier to read and it's easier to maintain the gcc bug too because we don't have to take care about new gcc versions. Signed-off-by: Giulio Benetti [yann.morin.1998@free.fr: fix comment while at it] Signed-off-by: Yann E. MORIN --- toolchain/Config.in | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/toolchain/Config.in b/toolchain/Config.in index a122e43c87..9612bdf8b2 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -109,16 +109,13 @@ config BR2_TOOLCHAIN_SUPPORTS_VARIADIC_MI_THUNK depends on !BR2_or1k depends on !BR2_xtensa -# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43744. This bug no +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43744. This bug # reappeared on gcc 9.x and is still not fixed on gcc 11.x config BR2_TOOLCHAIN_HAS_GCC_BUG_43744 bool - default y if BR2_sh4 - depends on !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 + default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8 + default y if BR2_TOOLCHAIN_GCC_AT_LEAST_9 + depends on BR2_sh4 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63261. This bug no # longer exists in gcc 8.x.