aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2010-07-15 09:38:16 -0700
committerRichard Henderson <rth@gcc.gnu.org>2010-07-15 09:38:16 -0700
commitc5f77dcb78e529d086d204b6a23968eeb2d32994 (patch)
tree6cc406a864dd0e87b8ea9d2b4b5ed5daf26dd777 /gcc/cgraphunit.c
parentd2886bc74445f954dc3f7cb5e471776ff4fd094e (diff)
downloadgcc-c5f77dcb78e529d086d204b6a23968eeb2d32994.zip
gcc-c5f77dcb78e529d086d204b6a23968eeb2d32994.tar.gz
gcc-c5f77dcb78e529d086d204b6a23968eeb2d32994.tar.bz2
Finish zeroing out the current function status after building cdtor.
From-SVN: r162227
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 2367067..47f8f76 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -2064,7 +2064,9 @@ cgraph_build_static_cdtor (char which, tree body, int priority)
cgraph_add_new_function (decl, false);
cgraph_mark_needed_node (cgraph_node (decl));
+
set_cfun (NULL);
+ current_function_decl = NULL;
}
void