re PR lto/45721 (ICE: in function_and_variable_visibility, at ipa.c:673 with -flto)
commit6e701822708dbcd9ec935a536830a522d24f8151
authorJan Hubicka <jh@suse.cz>
Tue, 11 Jan 2011 17:29:52 +0000 (11 18:29 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 11 Jan 2011 17:29:52 +0000 (11 17:29 +0000)
tree8a0441a53aaf0333716ca7449a404e95b3435f3e
parent1b248907583f1cf4e02ce4168ad35cf3fe7637ba
re PR lto/45721 (ICE: in function_and_variable_visibility, at ipa.c:673 with -flto)

PR lto/45721
PR lto/45375
* tree.h (symbol_alias_set_t): Move typedef here from varasm.c
(symbol_alias_set_destroy, symbol_alias_set_contains,
propagate_aliases_backward): Declare.
* lto-streamer-out.c (struct sets): New sturcture.
(trivally_defined_alias): New function.
(output_alias_pair_p): Rewrite.
(output_unreferenced_globals): Fix output of alias pairs.
(produce_symtab): Likewise.
* ipa.c (function_and_variable_visibility): Set weak alias destination
as needed in lto.
* varasm.c (symbol_alias_set_t): Remove.
(symbol_alias_set_destroy): Export.
(propagate_aliases_forward, propagate_aliases_backward): New functions
based on ...
(compute_visible_aliases): ... this one; remove.
(trivially_visible_alias): New
(trivially_defined_alias): New.
(remove_unreachable_alias_pairs): Rewrite.
(finish_aliases_1): Reorganize code checking if alias is defined.
* passes.c (rest_of_decl_compilation): Do not call assemble_alias when
in LTO mode.

* lto.c (partition_cgraph_node_p, partition_varpool_node_p): Weakrefs are
not partitioned.

* testsuite/gcc.dg/lto/pr45721_1.c: New file.
* testsuite/gcc.dg/lto/pr45721_0.c: New file.

From-SVN: r168666
gcc/ChangeLog
gcc/lto-streamer-out.c
gcc/lto/ChangeLog
gcc/lto/lto.c
gcc/passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/pr45721_0.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/pr45721_1.c [new file with mode: 0644]
gcc/tree.h
gcc/varasm.c