OSDN Git Service

* lto-symtab.c (lto_symtab_free): New function.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 May 2010 15:52:36 +0000 (15:52 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 May 2010 15:52:36 +0000 (15:52 +0000)
commit25429dc217ef11fd264f4e11244d4d409ee24484
tree3863b58d5473996402091677849e3dda1ca988af
parentbc200246fa501a868b88445a5b1eaa31fb2d9d76
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159280 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/lto-cgraph.c
gcc/lto-streamer.h
gcc/lto-symtab.c
gcc/lto/ChangeLog
gcc/lto/lto.c