From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23102 invoked by alias); 6 Jan 2010 00:50:05 -0000 Received: (qmail 22977 invoked by uid 48); 6 Jan 2010 00:49:53 -0000 Date: Wed, 06 Jan 2010 00:50:00 -0000 Subject: [Bug debug/42631] New: "-fcompare-debug failure" with "-O1 -funroll-loops" X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "zsojka at seznam dot cz" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-01/txt/msg00602.txt.bz2 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