diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2018-01-18 17:26:54 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2018-01-18 16:26:54 +0000 |
commit | cbb4e4ca11e22ae88ed3ef91566efc379636fc03 (patch) | |
tree | 6e8749d85a37c95d03cf65df30a338ffb610db26 /gcc | |
parent | 8ca07d928cedce021d7ebbe1f5e0f71e92193a5c (diff) | |
download | gcc-cbb4e4ca11e22ae88ed3ef91566efc379636fc03.zip gcc-cbb4e4ca11e22ae88ed3ef91566efc379636fc03.tar.gz gcc-cbb4e4ca11e22ae88ed3ef91566efc379636fc03.tar.bz2 |
re PR ipa/82256 (clones created by create_version_clone_with_body are not observable to insertion hooks)
PR ipa/82256
patch by PaX Team
* cgraphclones.c (cgraph_node::create_version_clone_with_body):
Fix call of call_cgraph_insertion_hooks.
From-SVN: r256853
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/cgraphclones.c | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d1679f4..8f37ed1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2018-01-18 Jan Hubicka <hubicka@ucw.cz> + + PR ipa/82256 + patch by PaX Team + * cgraphclones.c (cgraph_node::create_version_clone_with_body): + Fix call of call_cgraph_insertion_hooks. + 2018-01-18 Martin Sebor <msebor@redhat.com> * doc/invoke.texi (-Wclass-memaccess): Tweak text. diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c index 4360fea..6e84a31 100644 --- a/gcc/cgraphclones.c +++ b/gcc/cgraphclones.c @@ -1007,7 +1007,7 @@ cgraph_node::create_version_clone_with_body /* Update the call_expr on the edges to call the new version node. */ update_call_expr (new_version_node); - symtab->call_cgraph_insertion_hooks (this); + symtab->call_cgraph_insertion_hooks (new_version_node); return new_version_node; } |