re PR lto/61886 (LTO breaks fread with _FORTIFY_SOURCE=2)
authorJan Hubicka <hubicka@ucw.cz>
Wed, 9 Dec 2015 07:34:16 +0000 (08:34 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 9 Dec 2015 07:34:16 +0000 (07:34 +0000)
commit37074a02aee862ae15867e40aa5a12db616657b6
treea589b3f752ddc9ef0c99801a8a2355889655a259
parent04d2fbcc5fa0a0464e847d1bf3faeb83d67711c2
re PR lto/61886 (LTO breaks fread with _FORTIFY_SOURCE=2)

PR ipa/61886
PR middle-end/25140
* ipa-reference.c (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 (ref_maybe_used_by_call_p_1,
call_may_clobber_ref_p_1): Use ipa_reference_var_uid.

* gcc.c-torture/execute/alias-3.c: New testcase.

From-SVN: r231442
gcc/ipa-reference.c
gcc/ipa-reference.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/alias-3.c [new file with mode: 0644]
gcc/tree-ssa-alias.c