]> git.ipfire.org Git - thirdparty/gcc.git/commit
lto-symtab.c (lto_symtab_free): New function.
authorJan Hubicka <jh@suse.cz>
Tue, 11 May 2010 15:52:36 +0000 (17:52 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 11 May 2010 15:52:36 +0000 (15:52 +0000)
commit9a8098970a84f2b1b7a1ef97dcd5fa7cd28d27fc
tree3863b58d5473996402091677849e3dda1ca988af
parentb80531941013cd00875bb5e1c7e56c06ee149ff8
lto-symtab.c (lto_symtab_free): New function.

* lto-symtab.c (lto_symtab_free): New function.
* lto-streamer.h (lto_symtab_free): Declare.

* lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
that if function is needed it is reachable.
(lto_output_node): See if it the function is reachable or referenced.
(output_cgraph): Update call of lto_output_node.
* lto-streamer.h (reachable_from_other_partition_p): Declare.

* lto.c (lto_fixup_decls): Free no longer needed lto_global_var_decls
vector.

* lto.c (lto_1_to_1_map): Remove some no longer needed checks.
(lto_promote_cross_file_statics): Never promote DECL_EXTERNAL;
use reachable_from_other_partition_p and
referenced_from_other_partition_p test.

From-SVN: r159280
gcc/ChangeLog
gcc/lto-cgraph.c
gcc/lto-streamer.h
gcc/lto-symtab.c
gcc/lto/ChangeLog
gcc/lto/lto.c