re PR lto/61886 (LTO breaks fread with _FORTIFY_SOURCE=2)
authorJan Hubicka <hubicka@ucw.cz>
Wed, 9 Dec 2015 23:28:01 +0000 (00:28 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 9 Dec 2015 23:28:01 +0000 (23:28 +0000)
commit54363f8a92920f5559c83ddd53e480a27205e6b7
tree8ef2dd128c31080dac218b7c43d96a8c2b68c98a
parentda20571a7c2a7e44ccd5999356b1131f9aa6b2de
re PR lto/61886 (LTO breaks fread with _FORTIFY_SOURCE=2)

PR ipa/61886
PR middle-end/25140
* tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use compare_base_decls
(nonoverlapping_component_refs_of_decl_p): Update sanity check.
(decl_refs_may_alias_p): Use compare_base_decls.
* alias.c: Include cgraph.h
(rtx_equal_for_memref_p): Use rtx_equal_for_memref_p.
(compare_base_decls): New function.
(base_alias_check): Likewise.
(memrefs_conflict_p): Likewise.
(nonoverlapping_memrefs_p): Likewise.
* alias.h (compare_base_decls): Declare.

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

From-SVN: r231478
gcc/ChangeLog
gcc/alias.c
gcc/alias.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/alias-2.c [new file with mode: 0644]
gcc/tree-ssa-alias.c