Hello, Toolchains using gcc 10.2.0 targeting Microblaze architecture are not able to build a bootable Linux kernel 5.4.58 under Qemu (5.0.0). https://gitlab.com/bootlin/toolchains-builder/-/jobs/729359542 (glibc) https://gitlab.com/bootlin/toolchains-builder/-/jobs/729359544 (musl) https://gitlab.com/bootlin/toolchains-builder/-/jobs/729359546 (uclibc-ng) Toolchain components versions: GCC 10.2 binutils 2.34 kernel headers 5.4.58 The same system boot as soon as gcc 9.3 is used. Best regards, Romain
Hello, I had to disable -ftree-loop-distribute-patterns while building the kernel on microblaze (using -Os). The regression appear since the commit [1] that moved -ftree-loop-distribute-patterns from -O3 to -O2 (-Os) optimization level. I guess this behavior change should be documented in the gcc 10 changes page [2]? [1] https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=5879ab5fafedc8f6f9bfe95a4cf8501b0df90edd [2] https://gcc.gnu.org/gcc-10/changes.html Best regards, Romain
It's a regular change of optimizations which are not fully documented. Not a bug.
This bug is still present on gcc version 11.1.0.