From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12186 invoked by alias); 11 Nov 2012 10:25:28 -0000 Received: (qmail 12073 invoked by uid 48); 11 Nov 2012 10:25:11 -0000 From: "antoine.balestrat at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/55270] New: ICE in get_loop_body, at cfgloop.c:823 Date: Sun, 11 Nov 2012 10:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: antoine.balestrat at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: 2012-11/txt/msg00932.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D55270 Bug #: 55270 Summary: ICE in get_loop_body, at cfgloop.c:823 Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned@gcc.gnu.org ReportedBy: antoine.balestrat@gmail.com Hello ! The following testcase makes GCC 4.8.0 20121110 crash at -O3 : $ cat loopbody.c unsigned a, b, c; void f(void) { for(; a; a++) { // In 32 bits mode, you'll have to change p1 to "long long int" to trigger the bug long *p1 =3D &b; if(*p1) return; if(b && (*p1 =3D b) || c && ++*p1) { unsigned *p2 =3D &b; for(*p2 =3D 0; *p2 < 1;) for(; b; b++); } } } $ xgcc -w -O3 loopbody.c loopbody.c: In function =E2=80=98f=E2=80=99: loopbody.c:3:6: internal compiler error: in get_loop_body, at cfgloop.c:823 void f(void) ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions.