diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-03-23 15:17:20 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-03-23 15:17:20 +0000 |
commit | 418d75c4b62ee31caf575af574ae44f8cc467574 (patch) | |
tree | 5a975d97b8f4c086f6425cf82d52fc644d9a3390 /gcc/ipa-icf.c | |
parent | 789e6149491ef418f01e2e4ab81cd1fc24d6e147 (diff) | |
download | gcc-418d75c4b62ee31caf575af574ae44f8cc467574.tar.gz |
PR ipa/65521
* ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
ultimate_alias_target ()->order ints instead of
ultimate_alias_target () pointers.
* gcc.dg/pr65521.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221596 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-icf.c')
-rw-r--r-- | gcc/ipa-icf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c index bdfbd3ba362..48a7d3d15d6 100644 --- a/gcc/ipa-icf.c +++ b/gcc/ipa-icf.c @@ -575,7 +575,7 @@ sem_item::update_hash_by_addr_refs (hash_map <symtab_node *, { ref = node->iterate_reference (i, ref); if (ref->address_matters_p () || !m_symtab_node_map.get (ref->referred)) - hstate.add_ptr (ref->referred->ultimate_alias_target ()); + hstate.add_int (ref->referred->ultimate_alias_target ()->order); } if (is_a <cgraph_node *> (node)) @@ -585,7 +585,7 @@ sem_item::update_hash_by_addr_refs (hash_map <symtab_node *, { sem_item **result = m_symtab_node_map.get (e->callee); if (!result) - hstate.add_ptr (e->callee->ultimate_alias_target ()); + hstate.add_int (e->callee->ultimate_alias_target ()->order); } } |