https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69614
Bug ID: 69614 Summary: [6 Regression] wrong code with -Os -fno-expensive-optimizations -fschedule-insns -mtpcs-leaf-frame -fira-algorithm=priority @ armv7a Product: gcc Version: 6.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: armv7a-hardfloat-linux-gnueabi Created attachment 37549 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37549&action=edit reduced testcase Output: $ armv7a-hardfloat-linux-gnueabi-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-armv7a-hardfloat/bin/armv7a-hardfloat-linux-gnueabi-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-233030-checking-yes-rtl-df-nographite-armv7a-hardfloat/bin/../libexec/gcc/armv7a-hardfloat-linux-gnueabi/6.0.0/lto-wrapper Target: armv7a-hardfloat-linux-gnueabi Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-checking=yes,rtl,df --without-cloog --without-ppl --without-isl --with-float=hard --with-arch=armv7-a --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=armv7a-hardfloat-linux-gnueabi --with-ld=/usr/bin/armv7a-hardfloat-linux-gnueabi-ld --with-as=/usr/bin/armv7a-hardfloat-linux-gnueabi-as --with-sysroot=/usr/armv7a-hardfloat-linux-gnueabi --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-233030-checking-yes-rtl-df-nographite-armv7a-hardfloat Thread model: posix gcc version 6.0.0 20160201 (experimental) (GCC) $ armv7a-hardfloat-linux-gnueabi-gcc -Os -fno-expensive-optimizations -fschedule-insns -mtpcs-leaf-frame -fira-algorithm=priority testcase.c testcase.c:1:0: warning: enabling backtrace support is only meaningful when compiling for the Thumb typedef unsigned short u16; $ ./a.out 0000000000020002 qemu: uncaught target signal 6 (Aborted) - core dumped Aborted Triggering a wrong code at the arm target takes a lot of time, and even then, the testcase is not very minimal and there are quite many extra compiler flags. Tested revisions: r233030 - FAIL 5-branch r233025 - OK 4_9-branch r233024 - OK 4_8-branch r224828 - OK