cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor flags.
authorJan Hubicka <jh@suse.cz>
Sat, 30 Apr 2011 14:07:06 +0000 (16:07 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 30 Apr 2011 14:07:06 +0000 (14:07 +0000)
* cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
flags.

From-SVN: r173215

gcc/ChangeLog
gcc/cgraph.c

index 8581cc11c78a9fa45d5f67cc9ee1ffb19d6da0e9..fb69c09771ca60218063438070cc42c4a84f649b 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-30  Jan Hubicka  <jh@suse.cz>
+
+       * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
+       flags.
+
 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
 
        * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
index da020fe1ab29dc6f32c6aa132726df896d0ad1c3..2086bfe9b0bb883e5de698e11070a3a29a5c66a5 100644 (file)
@@ -2285,6 +2285,8 @@ cgraph_create_virtual_clone (struct cgraph_node *old_node,
   TREE_PUBLIC (new_node->decl) = 0;
   DECL_COMDAT (new_node->decl) = 0;
   DECL_WEAK (new_node->decl) = 0;
+  DECL_STATIC_CONSTRUCTOR (new_node->decl) = 0;
+  DECL_STATIC_DESTRUCTOR (new_node->decl) = 0;
   new_node->clone.tree_map = tree_map;
   new_node->clone.args_to_skip = args_to_skip;
   FOR_EACH_VEC_ELT (ipa_replace_map_p, tree_map, i, map)