From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26771 invoked by alias); 16 Nov 2013 16:15:29 -0000 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 Received: (qmail 26749 invoked by uid 48); 16 Nov 2013 16:15:26 -0000 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/59152] New: [4.9 Regression] ICE: loop 2's latch does not have an edge to its header with -fopenmp -fipa-pure-const Date: Sat, 16 Nov 2013 16:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-11/txt/msg01530.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59152 Bug ID: 59152 Summary: [4.9 Regression] ICE: loop 2's latch does not have an edge to its header with -fopenmp -fipa-pure-const Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Created attachment 31229 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31229&action=edit reduced testcase Compiler output: $ gcc -fopenmp -fipa-pure-const testcase.c testcase.c: In function 'foo._omp_fn.0': testcase.c:10:1: error: loop 2's latch does not have an edge to its header } ^ testcase.c:10:1: internal compiler error: in verify_loop_structure, at cfgloop.c:1649 0x70b713 verify_loop_structure() /mnt/svn/gcc-trunk/gcc/cfgloop.c:1649 0x94fc5a loop_optimizer_init(unsigned int) /mnt/svn/gcc-trunk/gcc/loop-init.c:111 0x12facc3 analyze_function /mnt/svn/gcc-trunk/gcc/ipa-pure-const.c:781 0x12fb961 pure_const_generate_summary /mnt/svn/gcc-trunk/gcc/ipa-pure-const.c:924 0x9dd246 execute_ipa_summary_passes(ipa_opt_pass_d*) /mnt/svn/gcc-trunk/gcc/passes.c:2015 0x730265 ipa_passes /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2014 0x730265 compile() /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2121 0x7304b4 finalize_compilation_unit() /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2275 0x5e3c63 c_write_global_declarations() /mnt/svn/gcc-trunk/gcc/c/c-decl.c:10374 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. $ gcc -v Using built-in specs. COLLECT_GCC=/mnt/svn/gcc-trunk/binary-latest/bin/gcc COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-204897-lto-fortran-checking-yes-rtl-df/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /mnt/svn/gcc-trunk//configure --enable-checking=yes,rtl,df --enable-languages=c,c++,lto,fortran --prefix=/mnt/svn/gcc-trunk/binary-204897-lto-fortran-checking-yes-rtl-df/ --without-cloog --without-ppl Thread model: posix gcc version 4.9.0 20131116 (experimental) (GCC) Tested revisions: r204897 - crash 4.8 r204890 - OK