From 9ba0399e73a305becf9789e2629c2519e5f015c4 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 27 Oct 2009 16:25:54 -0700 Subject: * cgraphunit.c (cgraph_optimize): Maintain timevar stack properly. From-SVN: r153618 --- gcc/cgraphunit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/cgraphunit.c') diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 7b8b738..7105e59 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -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. */ -- cgit v1.1