summaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-27 23:25:54 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2009-10-27 23:25:54 +0000
commit021c1c18bb09f5c03f35591a257d31f9f6e120aa (patch)
treeae2db770c4153b2580cb2bb565aad9fea2d7ab4d /gcc/cgraphunit.c
parent91a733f97f879e50ec17dea55200c6d630d75cd3 (diff)
downloadgcc-021c1c18bb09f5c03f35591a257d31f9f6e120aa.tar.gz
* cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153618 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 7b8b738ed1f..7105e59c5ec 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. */