]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/lto-cgraph.c
ipa-reference.c: Include toplev.h
authorJan Hubicka <jh@suse.cz>
Sat, 15 May 2010 16:57:35 +0000 (18:57 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 15 May 2010 16:57:35 +0000 (16:57 +0000)
commitf33806415919e05f98b3abb9d15675e50a952f06
treee23962de964283fea3e75b010a09768f298bb93b
parent9d0baae10e10d02ba0f09215f7b70461bd21ebb0
ipa-reference.c: Include toplev.h

* ipa-reference.c: Include toplev.h
(is_proper_for_analysis): Only add to all_module_statics
if it is allocated.
(write_node_summary_p, stream_out_bitmap,
ipa_reference_write_optimization_summary,
ipa_reference_read_optimization_summary): New.
(struct ipa_opt_pass_d pass_ipa_reference): Add
optimization summary streaming.
* lto-cgraph.c (referenced_from_this_partition_p,
reachable_from_this_partition_p): New functions.
* tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
* opts.c (decode_options): Enable ipa_reference.
* Makefile.in (ipa-reference.o): Add toplev.h dependency.
* lto-streamer.h (referenced_from_this_partition_p,
reachable_from_this_partition_p): Declare.

* gcc.dg/lto/ipareference_1.c: New file.
* gcc.dg/lto/ipareference_2.c: New file.

From-SVN: r159435
gcc/ChangeLog
gcc/Makefile.in
gcc/ipa-reference.c
gcc/lto-cgraph.c
gcc/lto-streamer.h
gcc/opts.c
gcc/passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lto/ipareference_1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lto/ipareference_2.c [new file with mode: 0644]
gcc/tree-ssa-alias.c