]> git.ipfire.org Git - thirdparty/gcc.git/commit
cgraph.h (cgraph_node): New method expand_all_artificial_thunks.
authorMartin Jambor <mjambor@suse.cz>
Fri, 5 Dec 2014 11:06:26 +0000 (12:06 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Fri, 5 Dec 2014 11:06:26 +0000 (12:06 +0100)
commit6a4bad955f8ab028190bbb4d3cf3c00721c26bfc
tree5535b89bdfdb34a70839578dacb6e9d89a13a6df
parent612b47110ab93289e9d7fb4751e9f46fbd7d3485
cgraph.h (cgraph_node): New method expand_all_artificial_thunks.

2014-12-05  Martin Jambor  <mjambor@suse.cz>

* cgraph.h (cgraph_node): New method expand_all_artificial_thunks.
(cgraph_edge): New method redirect_callee_duplicating_thunks.
* cgraphclones.c (duplicate_thunk_for_node): Donot expand newly
created thunks.
(redirect_edge_duplicating_thunks): Turned into edge method
redirect_callee_duplicating_thunks.
(cgraph_node::expand_all_artificial_thunks): New method.
(create_clone): Call expand_all_artificial_thunks.
* ipa-cp.c (perhaps_add_new_callers): Call
redirect_callee_duplicating_thunks instead of redirect_callee.
Also call expand_all_artificial_thunks.

From-SVN: r218417
gcc/ChangeLog
gcc/cgraph.h
gcc/cgraphclones.c
gcc/ipa-cp.c