diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2015-12-10 00:28:01 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2015-12-09 23:28:01 +0000 |
commit | 54363f8a92920f5559c83ddd53e480a27205e6b7 (patch) | |
tree | 8ef2dd128c31080dac218b7c43d96a8c2b68c98a /gcc/alias.h | |
parent | da20571a7c2a7e44ccd5999356b1131f9aa6b2de (diff) | |
download | gcc-54363f8a92920f5559c83ddd53e480a27205e6b7.zip gcc-54363f8a92920f5559c83ddd53e480a27205e6b7.tar.gz gcc-54363f8a92920f5559c83ddd53e480a27205e6b7.tar.bz2 |
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
Diffstat (limited to 'gcc/alias.h')
-rw-r--r-- | gcc/alias.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/alias.h b/gcc/alias.h index 8762eff..45cbb1b 100644 --- a/gcc/alias.h +++ b/gcc/alias.h @@ -36,6 +36,7 @@ extern int nonoverlapping_memrefs_p (const_rtx, const_rtx, bool); extern void dump_alias_stats_in_alias_c (FILE *s); tree reference_alias_ptr_type (tree); bool alias_ptr_types_compatible_p (tree, tree); +int compare_base_decls (tree, tree); /* This alias set can be used to force a memory to conflict with all other memories, creating a barrier across which no memory reference |