* 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 63ad08e27da701700036569fda36f00eacaf5ab9..23f03a7df359d6610b3c4eb4f5a74300aaa7df19 100644 (file)
@@ -1,3 +1,7 @@
+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
index e571140d9dbbdde276b370a45e19600fdc86e975..85ed2c2e84ea0fc2712e6ce97051d5edf726e415 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;