Command line: $ gcc -O[123s] testcase.c Compiler output: $ gcc -O testcase.c testcase.c: In function 'foo': testcase.c:7:7: internal compiler error: RTL check: expected code 'mem', have 'reg' in emit_block_move_hints, at expr.c:1189
Unreduced testcase crashes with: $ gcc -O rarpd.i rarpd.c: In function 'load_if': rarpd.c:203:41: internal compiler error: in make_decl_rtl, at varasm.c:1346 Reduced testcase without rtl checking crashes with: $ gcc -O testcase.c testcase.c: In function 'foo': testcase.c:7:7: internal compiler error: Segmentation fault Tested revisions: r162193 - crash r162056 - crash r161659 - crash r161170 - OK -- Summary: [4.6 Regression] ICE: RTL check: expected code 'mem', have 'reg' in emit_block_move_hints, at expr.c:1189 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: zsojka at seznam dot cz GCC host triplet: x86_64-pc-linux-gnu GCC target triplet: x86_64-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44941