From c5f77dcb78e529d086d204b6a23968eeb2d32994 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 15 Jul 2010 09:38:16 -0700 Subject: [PATCH] Finish zeroing out the current function status after building cdtor. From-SVN: r162227 --- gcc/ChangeLog | 5 +++++ gcc/cgraphunit.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2e80e690068..087e751e767 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-07-15 Richard Henderson + + * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl + when done. + 2010-07-15 Jan Hubicka * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling comdats diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 2367067af69..47f8f76f94b 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