diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2015-12-09 06:07:18 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2015-12-09 05:07:18 +0000 |
commit | b2539e1e8d60e0df830ab3d75dd6b5590f5c7080 (patch) | |
tree | 605cb507b2dcec62d39dca832e936a5a93ff6a1b /gcc/cgraph.h | |
parent | eb457a8c59cfeb602d66f1ba379b6ec3e9475d90 (diff) | |
download | gcc-b2539e1e8d60e0df830ab3d75dd6b5590f5c7080.zip gcc-b2539e1e8d60e0df830ab3d75dd6b5590f5c7080.tar.gz gcc-b2539e1e8d60e0df830ab3d75dd6b5590f5c7080.tar.bz2 |
re PR lto/61886 (LTO breaks fread with _FORTIFY_SOURCE=2)
PR ipa/61886
* symtab.c (symtab_node::equal_address_to): New parameter
MEMORY_ACCESSED.
* cgraph.h (symtab_node::equal_address_to): Update prototype.
From-SVN: r231440
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index 7c643502..0a09391 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -355,8 +355,13 @@ public: /* Return 0 if symbol is known to have different address than S2, Return 1 if symbol is known to have same address as S2, - return 2 otherwise. */ - int equal_address_to (symtab_node *s2); + return 2 otherwise. + + If MEMORY_ACCESSED is true, assume that both memory pointer to THIS + and S2 is going to be accessed. This eliminates the situations when + either THIS or S2 is NULL and is seful for comparing bases when deciding + about memory aliasing. */ + int equal_address_to (symtab_node *s2, bool memory_accessed = false); /* Return true if symbol's address may possibly be compared to other symbol's address. */ |