https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78241
Bug ID: 78241 Summary: [7 Regression] wrong code with -funroll-loops Product: gcc Version: 7.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Created attachment 39983 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39983&action=edit reduced testcase Output: $ x86_64-pc-linux-gnu-gcc -Og -funroll-loops testcase.c $ ./a.out Aborted Correct value is 0xffffffff, wrong value is 16. Tested targets that fail in 7.0.0: aarch64-unknown-linux-gnu armv7a-hardfloat-linux-gnueabi armv7a-softfp-linux-gnueabi powerpc64le-unknown-linux-gnu powerpc64-unknown-linux-gnu sparc-unknown-linux-gnu x86_64-pc-linux-gnu