http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46521

           Summary: ICE: in reset_sched_cycles_in_current_ebb, at
                    sel-sched.c:7092 with -Os -fselective-scheduling2
                    -fsel-sched-pipelining -fprofile-generate
                    -fno-early-inlining
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: zso...@seznam.cz
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu


Created attachment 22431
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22431
reduced testcase

One of testcases for PR45352 fails with -fno-early-inlining:

$ gcc -Os -fselective-scheduling2 -fsel-sched-pipelining -fprofile-generate
-fno-early-inlining pr45352.i          
/mnt/svn/gcc-trunk/gcc/testsuite/gcc.dg/pr45352.c: In function 'df_md_alloc':
/mnt/svn/gcc-trunk/gcc/testsuite/gcc.dg/pr45352.c:24:1: internal compiler
error: in reset_sched_cycles_in_current_ebb, at sel-sched.c:7092
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

The attached more reduced testcase fails the same way:
$ gcc -Os -fselective-scheduling2 -fsel-sched-pipelining -fprofile-generate
-fno-early-inlining pr46521.c 
pr46521.c: In function 'df_md_alloc':
pr46521.c:17:1: internal compiler error: in reset_sched_cycles_in_current_ebb,
at sel-sched.c:7092
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

I verified the testcase doesn't give any warnings with -Wall -W.

Tested revisions:
r166795 - crash
4.5 r166509 - crash
4.4 r166509 - crash

Reply via email to