re PR lto/61886 (LTO breaks fread with _FORTIFY_SOURCE=2)
authorJan Hubicka <hubicka@gcc.gnu.org>
Wed, 9 Dec 2015 19:29:38 +0000 (19:29 +0000)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 9 Dec 2015 19:29:38 +0000 (19:29 +0000)
commit1326155711cd4af6bdbf347b51e2a7337cf07414
tree4d484ae9a9e235802ede77e2da1d0a8cf358608a
parent0a04f2dfc296b88d71a59399d3db62639580e844
re PR lto/61886 (LTO breaks fread with _FORTIFY_SOURCE=2)

PR ipa/61886
PR middle-end/25140
* ipa-reference.c (ipa_reference_get_not_read_global,
ipa_reference_get_not_read_global): Fix WRT aliases.
(is_improper): Break out from ...
(is_proper_for_analysis): ... here; fix WRT aliases.
(analyze_function, generate_summary,
ipa_reference_write_optimization_summary,
ipa_reference_read_optimization_summary): Use ipa_reference_var_uid.
* ipa-refrence.h (ipa_reference_var_uid): New inline.
* tree-ssa-alias.c: Revert my accidental previous commit.
(ref_maybe_used_by_call_p_1,
call_may_clobber_ref_p_1): Use ipa_reference_var_uid.

From-SVN: r231471
gcc/ChangeLog
gcc/ipa-reference.c
gcc/tree-ssa-alias.c