aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/tree-inline.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 63ad08e..23f03a7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2016-05-16 Jan Hubicka <hubicka@ucw.cz>
+ * tree-inline.c (expand_call_inline): recurse after inlining thunk.
+
+2016-05-16 Jan Hubicka <hubicka@ucw.cz>
+
* tree.c (free_lang_data_in_decl): Also set target/optimization flags
for thunks.
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index e571140..85ed2c2 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -4485,6 +4485,7 @@ expand_call_inline (basic_block bb, gimple *stmt, copy_body_data *id)
gimple_call_set_fndecl (stmt, edge->callee->decl);
update_stmt (stmt);
id->src_node->remove ();
+ expand_call_inline (bb, stmt, id);
return true;
}
fn = cg_edge->callee->decl;