aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphclones.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2019-08-08 09:43:11 +0200
committerMartin Liska <marxin@gcc.gnu.org>2019-08-08 07:43:11 +0000
commitfe8e21fd730f01815bf6533289d2b3e33033a250 (patch)
tree9ec2210a868e44402c75e033a0d830d5dd160d81 /gcc/cgraphclones.c
parent8860d2706d9bd21da3885f980f313733fdc525d1 (diff)
downloadgcc-fe8e21fd730f01815bf6533289d2b3e33033a250.zip
gcc-fe8e21fd730f01815bf6533289d2b3e33033a250.tar.gz
gcc-fe8e21fd730f01815bf6533289d2b3e33033a250.tar.bz2
When cloning set operator new/delete to false.
2019-08-08 Martin Liska <mliska@suse.cz> * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop IS_OPERATOR_NEW and IS_OPERATOR_DELETE. (create_version_clone_with_body): Likewise. From-SVN: r274207
Diffstat (limited to 'gcc/cgraphclones.c')
-rw-r--r--gcc/cgraphclones.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c
index fd867ec..28cf2ec 100644
--- a/gcc/cgraphclones.c
+++ b/gcc/cgraphclones.c
@@ -248,6 +248,8 @@ set_new_clone_decl_and_node_flags (cgraph_node *new_node)
DECL_VIRTUAL_P (new_node->decl) = 0;
DECL_STATIC_CONSTRUCTOR (new_node->decl) = 0;
DECL_STATIC_DESTRUCTOR (new_node->decl) = 0;
+ DECL_SET_IS_OPERATOR_NEW (new_node->decl, 0);
+ DECL_SET_IS_OPERATOR_DELETE (new_node->decl, 0);
new_node->externally_visible = 0;
new_node->local.local = 1;
@@ -1065,6 +1067,8 @@ cgraph_node::create_version_clone_with_body
/* When the old decl was a con-/destructor make sure the clone isn't. */
DECL_STATIC_CONSTRUCTOR (new_decl) = 0;
DECL_STATIC_DESTRUCTOR (new_decl) = 0;
+ DECL_SET_IS_OPERATOR_NEW (new_decl, 0);
+ DECL_SET_IS_OPERATOR_DELETE (new_decl, 0);
/* Create the new version's call-graph node.
and update the edges of the new node. */