http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46441
Summary: [4.5 Regression] ICE: RTL check: expected code 'reg', have 'plus' in rhs_regno, at rtl.h:1053 with -fsel-sched-pipelining -fselective-scheduling2 Product: gcc Version: 4.5.2 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 22378 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22378 reduced testcase I come to this ICE often when testing the 4.5 branch. There are several testcases failing with various flags, but -fsel-sched-pipelining -fselective-scheduling2 seems to be the common denominator. Compiler output: $ gcc -O -fschedule-insns2 -fsel-sched-pipelining -fselective-scheduling2 -fno-tree-loop-optimize testcase.c testcase.c: In function 'foo': testcase.c:6:1: internal compiler error: RTL check: expected code 'reg', have 'plus' in rhs_regno, at rtl.h:1053 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Tested revisions: r166509 - OK r163636 - OK r161659 - crash 4.5 r166509 - crash 4.4 r166509 - OK