From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11479 invoked by alias); 10 Feb 2012 22:19:50 -0000 Received: (qmail 11466 invoked by uid 22791); 10 Feb 2012 22:19:49 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,SUBJ_OBFU_PUNCT_FEW,SUBJ_OBFU_PUNCT_MANY,TW_AV X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 10 Feb 2012 22:19:35 +0000 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/52203] New: ICE: in reset_sched_cycles_in_current_ebb, at sel-sched.c:7136 with -fsel-sched-pipelining -fselective-scheduling2 and other custom flags Date: Fri, 10 Feb 2012 22:19: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: 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-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" 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-02/txt/msg01112.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52203 Bug #: 52203 Summary: ICE: in reset_sched_cycles_in_current_ebb, at sel-sched.c:7136 with -fsel-sched-pipelining -fselective-scheduling2 and other custom flags Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned@gcc.gnu.org ReportedBy: zsojka@seznam.cz Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 26639 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26639 reduced testcase After a long time, there comes one sel-sched ICE. Compiler output: $ gcc -O -fPIC -fno-dce -fgcse -fschedule-insns2 -fsel-sched-pipelining -fselective-scheduling2 -ftree-vectorize -funroll-loops -fno-web -mno-avx256-split-unaligned-store -mfma --param=max-pending-list-length=0 --param=selsched-insns-to-rename=70 testcase.c testcase.c: In function 'foo': testcase.c:9:1: internal compiler error: in reset_sched_cycles_in_current_ebb, at sel-sched.c:7136 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. (gdb) bt #0 fancy_abort (file=0x129c408 "/mnt/svn/gcc-trunk/gcc/sel-sched.c", line=7136, function=0x129dce0 "reset_sched_cycles_in_current_ebb") at /mnt/svn/gcc-trunk/gcc/diagnostic.c:898 #1 0x00000000009a919d in reset_sched_cycles_in_current_ebb () at /mnt/svn/gcc-trunk/gcc/sel-sched.c:7136 #2 0x00000000009bea53 in sel_region_target_finish (reset_sched_cycles_p=true) at /mnt/svn/gcc-trunk/gcc/sel-sched.c:7209 #3 sel_region_finish (reset_sched_cycles_p=) at /mnt/svn/gcc-trunk/gcc/sel-sched.c:7266 #4 sel_sched_region (rgn=) at /mnt/svn/gcc-trunk/gcc/sel-sched.c:7622 #5 0x00000000009bf23a in run_selective_scheduling () at /mnt/svn/gcc-trunk/gcc/sel-sched.c:7693 #6 0x000000000098c076 in rest_of_handle_sched2 () at /mnt/svn/gcc-trunk/gcc/sched-rgn.c:3515 #7 0x00000000008fbd85 in execute_one_pass (pass=0x17ca8e0) at /mnt/svn/gcc-trunk/gcc/passes.c:2081 #8 0x00000000008fc145 in execute_pass_list (pass=0x17ca8e0) at /mnt/svn/gcc-trunk/gcc/passes.c:2136 #9 0x00000000008fc157 in execute_pass_list (pass=0x17c9ee0) at /mnt/svn/gcc-trunk/gcc/passes.c:2137 #10 0x00000000008fc157 in execute_pass_list (pass=0x17c9f40) at /mnt/svn/gcc-trunk/gcc/passes.c:2137 #11 0x0000000000a5e3ee in tree_rest_of_compilation (fndecl=0x7ffff5bd2700) at /mnt/svn/gcc-trunk/gcc/tree-optimize.c:422 #12 0x00000000006b006a in cgraph_expand_function (node=0x7ffff5a976c0) at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1829 #13 0x00000000006b1f5c in cgraph_expand_all_functions () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1896 #14 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2210 #15 0x00000000006b25aa in cgraph_finalize_compilation_unit () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1338 #16 0x000000000058ecb0 in c_write_global_declarations () at /mnt/svn/gcc-trunk/gcc/c-decl.c:10030 #17 0x00000000009f0b9c in compile_file () at /mnt/svn/gcc-trunk/gcc/toplev.c:573 #18 do_compile () at /mnt/svn/gcc-trunk/gcc/toplev.c:1938 #19 toplev_main (argc=28, argv=0x7fffffffd658) at /mnt/svn/gcc-trunk/gcc/toplev.c:2014 #20 0x00007ffff61cc09d in __libc_start_main () from /lib64/libc.so.6 #21 0x00000000005723b1 in _start () Tested revisions: r184068 - crash 4.6 r180325 - OK