http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54455
--- Comment #13 from Zdenek Sojka <zsojka at seznam dot cz> 2012-09-03 17:44:57 UTC --- (In reply to comment #12) > If I remember correctly, the original testcase ICEs the same way with -O. > eg. > $ gcc -fschedule-insns -fselective-scheduling --param > max-sched-extend-regions-iters=8 gcc.c-torture/compile/pr51767.c -O > > This reduced testcase ICEs at a different place with -O. (I cannot test it > right now) Actually, with -O1, the ICE is at a different place: $ gcc -fschedule-insns -fselective-scheduling --param max-sched-extend-regions-iters=8 gcc.c-torture/compile/pr51767.c -O gcc.c-torture/compile/pr51767.c: In function ‘bar’: gcc.c-torture/compile/pr51767.c:23:1: internal compiler error: RTL check: expected elt 3 type 'B', have '0' (rtx barrier) in rtl_verify_flow_info_1, at cfgrtl.c:2052 } ^ Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. So it might be a different problem.