From bcb650cbb87954272436b03e1cccf795ec7e777a Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 7 Sep 2013 09:48:59 +0200 Subject: cgraphunit.c (expand_thunk): Get body before touching arguments. * cgraphunit.c (expand_thunk): Get body before touching arguments. * lto-streamer-out.c: Stream thunks, too. * lto-streamer-in.c (input_function): Pop cfun here (lto_read_body): Instead of here. From-SVN: r202352 --- gcc/lto-streamer-in.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/lto-streamer-in.c') diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c index f1d5935..7fa5bb3 100644 --- a/gcc/lto-streamer-in.c +++ b/gcc/lto-streamer-in.c @@ -998,6 +998,7 @@ input_function (tree fn_decl, struct data_in *data_in, free_dominance_info (CDI_DOMINATORS); free_dominance_info (CDI_POST_DOMINATORS); free (stmts); + pop_cfun (); } @@ -1086,8 +1087,6 @@ lto_read_body (struct lto_file_decl_data *file_data, struct cgraph_node *node, /* Restore decl state */ file_data->current_decl_state = file_data->global_decl_state; - - pop_cfun (); } lto_data_in_delete (data_in); -- cgit v1.1