From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24904 invoked by alias); 15 Feb 2013 19:18:56 -0000 Received: (qmail 24225 invoked by uid 48); 15 Feb 2013 19:18:14 -0000 From: "antoine.balestrat at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/56349] New: ICE in create_preheader at cfgloopmanip.c:1525 Date: Fri, 15 Feb 2013 19:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-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: 2013-02/txt/msg01643.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D56349 Bug #: 56349 Summary: ICE in create_preheader at cfgloopmanip.c:1525 Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned@gcc.gnu.org ReportedBy: antoine.balestrat@gmail.com Hello ! Using GCC 4.8.0 as of 20130215 : $ cat preh.c int a, b; short c; void f(void) { int *k =3D a =3D 0; for(; a < 2; a++); if(!!(b |=3D a < 3) - 1) { if(0) for (;; a++) { for (; c; *k =3D 0); lbl1: ; } for(; *k; k++) { c =3D b ? : a; if (c) lbl2: b =3D 0; } goto lbl1; } for(;; b++) { if(b) goto lbl2; k =3D &b; } } $ xgcc -O2 -ftree-partial-pre -w preh.c preh.c: In function =E2=80=98f=E2=80=99: preh.c:38:1: internal compiler error: Segmentation fault } ^ 0x8dba2f crash_signal ../../srcdir/gcc/toplev.c:332 0x5ffcdb create_preheader(loop*, int) ../../srcdir/gcc/cfgloopmanip.c:1525 0x600069 create_preheaders(int) ../../srcdir/gcc/cfgloopmanip.c:1577 0x7de31e apply_loop_flags ../../srcdir/gcc/loop-init.c:61 0x7de3df loop_optimizer_init(unsigned int) ../../srcdir/gcc/loop-init.c:108 0x7de4ba rtl_loop_init ../../srcdir/gcc/loop-init.c:329 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.