------- Comment #7 from pinskia at gcc dot gnu dot org 2006-04-24 00:38 ------- here is the fix I came up with: Index: cgraphunit.c =================================================================== --- cgraphunit.c (revision 113199) +++ cgraphunit.c (working copy) @@ -1404,7 +1404,8 @@ cgraph_optimize (void) fprintf (cgraph_dump_file, "Marked "); dump_cgraph (cgraph_dump_file); } - ipa_passes (); + if (errorcount == 0 && sorrycount == 0) + ipa_passes (); /* This pass remove bodies of extern inline functions we never inlined. Do this later so other IPA passes see what is really going on. */ cgraph_remove_unreachable_nodes (false, dump_file);
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25776