aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2009-10-27 16:25:54 -0700
committerRichard Henderson <rth@gcc.gnu.org>2009-10-27 16:25:54 -0700
commit9ba0399e73a305becf9789e2629c2519e5f015c4 (patch)
treeae2db770c4153b2580cb2bb565aad9fea2d7ab4d /gcc
parentb77068f27bbad156e88352bb1a3382a96b66acbf (diff)
downloadgcc-9ba0399e73a305becf9789e2629c2519e5f015c4.zip
gcc-9ba0399e73a305becf9789e2629c2519e5f015c4.tar.gz
gcc-9ba0399e73a305becf9789e2629c2519e5f015c4.tar.bz2
* cgraphunit.c (cgraph_optimize): Maintain timevar stack properly.
From-SVN: r153618
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cgraphunit.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1dbcf18..d7b8164 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
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
* tree-eh.c (eh_region_may_contain_throw_map): Rename from
eh_region_may_contain_throw; update users.
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. */