From a2e2a66815796bd961250264ff32809bae478a31 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 6 Aug 2013 18:59:49 +0200 Subject: cgraph.c (cgraph_get_body): New function based on lto.c implementation. * cgraph.c (cgraph_get_body): New function based on lto.c implementation. * cgraph.h (cgraph_get_body): Declare. * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and LTO paths. * cgraphunit.c (expand_function): Get body prior expanding. * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test. * lto-cgraph.c (lto_output_node): Do not stream bodies we don't really need. * passes.c (do_per_function_toporder): Get body. * tree-inline.c (expand_call_inline): Get body prior inlining it. * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones. * lto.c (lto_materialize_function): Do not read body anymore. From-SVN: r201537 --- gcc/cgraphunit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/cgraphunit.c') diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index cf92b1d..1472483 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -1581,6 +1581,7 @@ expand_function (struct cgraph_node *node) announce_function (decl); node->process = 0; gcc_assert (node->lowered); + cgraph_get_body (node); /* Generate RTL for the body of DECL. */ -- cgit v1.1