summaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2015-12-09 05:07:18 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2015-12-09 05:07:18 +0000
commitf5d3c0a6c89a46c5bca677767ce129a78e9edafa (patch)
tree605cb507b2dcec62d39dca832e936a5a93ff6a1b /gcc/cgraph.h
parent8b95d2d220bd184e9394597143bb939d62735fde (diff)
downloadgcc-f5d3c0a6c89a46c5bca677767ce129a78e9edafa.tar.gz
PR ipa/61886
* symtab.c (symtab_node::equal_address_to): New parameter MEMORY_ACCESSED. * cgraph.h (symtab_node::equal_address_to): Update prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231440 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index 7c643502fff..0a093913be6 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. */