* cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.

From-SVN: r153618
This commit is contained in:
Richard Henderson 2009-10-27 16:25:54 -07:00 committed by Richard Henderson
parent b77068f27b
commit 9ba0399e73
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-10-27 Richard Henderson <rth@redhat.com>
* cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
2009-10-27 Richard Henderson <rth@redhat.com>
PR c++/41819

View File

@ -1422,7 +1422,10 @@ cgraph_optimize (void)
/* Do nothing else if any IPA pass found errors. */
if (errorcount || sorrycount)
return;
{
timevar_pop (TV_CGRAPHOPT);
return;
}
/* This pass remove bodies of extern inline functions we never inlined.
Do this later so other IPA passes see what is really going on. */