https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96298
Bug ID: 96298 Summary: [11 Regression] wrong code with -O -fno-tree-forwprop Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: powerpc64-unknown-linux-gnu Created attachment 48920 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48920&action=edit reduced testcase Multiple targets are failing this testcase; x86_64-pc-linux-gnu doesn't fail. $ powerpc64-unknown-linux-gnu-gcc -O -fno-tree-forwprop testcase.c -static $ ./a.out qemu: uncaught target signal 6 (Aborted) - core dumped Aborted $ powerpc64-unknown-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-powerpc64/bin/powerpc64-unknown-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r11-2284-20200723104325-g02cada26e47-checking-yes-rtl-df-extra-powerpc64/bin/../libexec/gcc/powerpc64-unknown-linux-gnu/11.0.0/lto-wrapper Target: powerpc64-unknown-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --with-cloog --with-ppl --with-isl --with-sysroot=/usr/powerpc64-unknown-linux-gnu --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=powerpc64-unknown-linux-gnu --with-ld=/usr/bin/powerpc64-unknown-linux-gnu-ld --with-as=/usr/bin/powerpc64-unknown-linux-gnu-as --disable-multilib --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r11-2284-20200723104325-g02cada26e47-checking-yes-rtl-df-extra-powerpc64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 11.0.0 20200723 (experimental) (GCC)