* tree-inline.c (expand_call_inline): recurse after inlining thunk.
authorJan Hubicka <hubicka@ucw.cz>
Mon, 16 May 2016 10:01:57 +0000 (12:01 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 16 May 2016 10:01:57 +0000 (10:01 +0000)
From-SVN: r236273

gcc/ChangeLog
gcc/tree-inline.c

index 63ad08e..23f03a7 100644 (file)
@@ -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.
 
index e571140..85ed2c2 100644 (file)
@@ -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;