]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cgraph.c
cgraph.c (cgraph_get_body): New function based on lto.c implementation.
authorJan Hubicka <jh@suse.cz>
Tue, 6 Aug 2013 16:59:49 +0000 (18:59 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 6 Aug 2013 16:59:49 +0000 (16:59 +0000)
commita2e2a66815796bd961250264ff32809bae478a31
treee06c2e69d4ad72b54dff08acfb5ac74d389b8f74
parente086adbdb433ea655c8bf0bdcd210baa5a0a63f6
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
12 files changed:
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h
gcc/cgraphclones.c
gcc/cgraphunit.c
gcc/ipa.c
gcc/lto-cgraph.c
gcc/lto/ChangeLog
gcc/lto/lto.c
gcc/passes.c
gcc/tree-inline.c
gcc/tree-ssa-structalias.c