[Buildroot] [PATCH 2/3] toolchain/toolchain-wrapper: use Gcc bug 97208 instead of repeating it

Giulio Benetti giulio.benetti at benettiengineering.com
Sat Aug 14 22:11:31 UTC 2021


Please drop this patch, I've already set it as Rejected in Patchwork.
Sorry for the noise

-- 
Giulio Benetti
Benetti Engineering sas

On 8/13/21 11:37 PM, Giulio Benetti wrote:
> Now that we have added Gcc bug 97208 we can use it instead of repeating it.
> So let's substitute bug condition with bug presence. Also note that gcc bug
> 97208 is still present in gcc 11.1.0 so better to make comment more generic
> and keep a detailed description in toolchain/Config.in
> 
> Cc: Roman Naour <romain.naour at gmail.com>
> Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
> ---
>   toolchain/toolchain-wrapper.mk | 5 ++---
>   1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/toolchain/toolchain-wrapper.mk b/toolchain/toolchain-wrapper.mk
> index 8b551e3a18..c56ec7c054 100644
> --- a/toolchain/toolchain-wrapper.mk
> +++ b/toolchain/toolchain-wrapper.mk
> @@ -33,11 +33,10 @@ TOOLCHAIN_WRAPPER_OPTS += -DBR_NEED_SOURCE_DATE_EPOCH
>   endif
>   endif
>   
> -# Disable -ftree-loop-distribute-patterns on microblaze to
> -# workaround a compiler bug with gcc 10 and -O2, -Os or -O3.
> +# Disable -ftree-loop-distribute-patterns on compiler affected by gcc bug 97208.
>   # https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=5879ab5fafedc8f6f9bfe95a4cf8501b0df90edd
>   # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97208
> -ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_10)$(BR2_microblaze),yy)
> +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_97208),y)
>   TOOLCHAIN_WRAPPER_OPTS += -fno-tree-loop-distribute-patterns
>   endif
>   
> 




More information about the buildroot mailing list