aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2016-05-08 20:44:02 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2016-05-08 18:44:02 +0000
commit6bbf39b789101366bccacda4f912b05636f03887 (patch)
tree6fd631ddca25c1c6908f1589de9b99b80f6a38b4 /gcc/cgraphunit.c
parent3b695ba657799e3723a892a5fec1a1fb2061c63c (diff)
downloadgcc-6bbf39b789101366bccacda4f912b05636f03887.zip
gcc-6bbf39b789101366bccacda4f912b05636f03887.tar.gz
gcc-6bbf39b789101366bccacda4f912b05636f03887.tar.bz2
cgraph.c (thunk_adjust): Export.
* cgraph.c (thunk_adjust): Export. * cgraphclones.c (cgraph_node::create_clone): Clone thunk info. * cgraphunit.c (thunk_adjust): Export. (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined thunks. * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are inlinable. * tree-inline.c (expand_call_inline): Expand thunks inline. From-SVN: r236012
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 5761880..4bfcad7 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -1471,7 +1471,7 @@ init_lowered_empty_function (tree decl, bool in_ssa, gcov_type count)
non-null. THIS_ADJUSTING is nonzero for a this adjusting thunk and
zero for a result adjusting thunk. */
-static tree
+tree
thunk_adjust (gimple_stmt_iterator * bsi,
tree ptr, bool this_adjusting,
HOST_WIDE_INT fixed_offset, tree virtual_offset)
@@ -1907,6 +1907,7 @@ cgraph_node::assemble_thunks_and_aliases (void)
for (e = callers; e;)
if (e->caller->thunk.thunk_p
+ && !e->caller->global.inlined_to
&& !e->caller->thunk.add_pointer_bounds_args)
{
cgraph_node *thunk = e->caller;