Command line:
gcc -O1 -funroll-loops -fcompare-debug -c testcase.c
Tested revisions:
r155643 - crash (x86_64)
r155290 - crash (x86)
r153685 - crash (x86_64)
Output:
$ /mnt/svn/gcc-trunk/binary-153685-lto/bin/gcc -O1 -funroll-loops
-fcompare-debug -c testcase.c
gcc: testcase.c: -fcompare-debug failure
================== testcase.c ==================
void foo()
{
unsigned k; /* doesn't crash with 'int' or when initialized */
while (--k > 0);
}
================================================
--
Summary: "-fcompare-debug failure" with "-O1 -funroll-loops"
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: zsojka at seznam dot cz
GCC host triplet: x86(_64)-pc-linux-gnu
GCC target triplet: x86(_64)-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42631