From: Jan Hubicka Date: Sat, 30 Apr 2011 14:07:06 +0000 (+0200) Subject: cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor flags. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd8352ee7addba482fb1130cc91b22dc9df39d60;p=gcc.git cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor flags. * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor flags. From-SVN: r173215 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8581cc11c78..fb69c09771c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-04-30 Jan Hubicka + + * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor + flags. + 2011-04-30 Anatoly Sokolov * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS, diff --git a/gcc/cgraph.c b/gcc/cgraph.c index da020fe1ab2..2086bfe9b0b 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -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)