OSDN Git Service

Finish zeroing out the current function status after building cdtor.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Jul 2010 16:38:16 +0000 (16:38 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Jul 2010 16:38:16 +0000 (16:38 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162227 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cgraphunit.c

index 2e80e69..087e751 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-15  Richard Henderson  <rth@redhat.com>
+
+       * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
+       when done.
+
 2010-07-15  Jan Hubicka  <jh@suse.cz>
 
        * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling comdats
index 2367067..47f8f76 100644 (file)
@@ -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