[Buildroot] [PATCH 2/2] linux: Disable -ftree-loop-distribute-patterns when building for microblaze with gcc >= 10

Romain Naour romain.naour at gmail.com
Wed Sep 30 21:04:22 UTC 2020


Hi Thomas,

Le 30/09/2020 à 22:59, Thomas Petazzoni a écrit :
> On Sat, 26 Sep 2020 21:13:30 +0200
> Romain Naour <romain.naour at gmail.com> wrote:
> 
>> +# 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)
>> +LINUX_KCFLAGS += -fno-tree-loop-distribute-patterns
>> +endif
> 
> I am wondering if this is the right approach. If the
> -ftree-loop-distribute-patterns breaks stuff for the kernel, presumably
> it could also break stuff for user-space software. So I guess we should
> instead disable it entirely in TARGET_CFLAGS.
> 
> The gotcha being of course that we don't pass TARGET_CFLAGS to the
> Linux package...

Indeed, I have no ideas if the userspace built with this toolchain is really
working... except for busybox which was used by qemu_microblazeel_mmu_defconfig

Best regards,
Romain

> 
> Thomas
> 



More information about the buildroot mailing list