From dd8352ee7addba482fb1130cc91b22dc9df39d60 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 30 Apr 2011 16:07:06 +0200 Subject: [PATCH] cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor flags. * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor flags. From-SVN: r173215 --- gcc/ChangeLog | 5 +++++ gcc/cgraph.c | 2 ++ 2 files changed, 7 insertions(+) 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) -- 2.30.2