aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-icf.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2015-02-27 20:05:30 +0100
committerMartin Liska <marxin@gcc.gnu.org>2015-02-27 19:05:30 +0000
commitb94097dc6f7ed9086e1c9577cbd4948173b0d847 (patch)
tree5f583d0f72d00ba78c38532bb9fe89fc02aa2ae1 /gcc/ipa-icf.h
parent8eba66e88067ee0773d2e245c111703de56540d3 (diff)
downloadgcc-b94097dc6f7ed9086e1c9577cbd4948173b0d847.zip
gcc-b94097dc6f7ed9086e1c9577cbd4948173b0d847.tar.gz
gcc-b94097dc6f7ed9086e1c9577cbd4948173b0d847.tar.bz2
Fix missing condition in symbol_compare_hashmap_traits.
* ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing vector length condition. From-SVN: r221069
Diffstat (limited to 'gcc/ipa-icf.h')
-rw-r--r--gcc/ipa-icf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ipa-icf.h b/gcc/ipa-icf.h
index 9e76239..077267c 100644
--- a/gcc/ipa-icf.h
+++ b/gcc/ipa-icf.h
@@ -110,7 +110,8 @@ struct symbol_compare_hashmap_traits: default_hashmap_traits
equal_keys (const symbol_compare_collection *a,
const symbol_compare_collection *b)
{
- if (a->m_references.length () != b->m_references.length ())
+ if (a->m_references.length () != b->m_references.length ()
+ || a->m_interposables.length () != b->m_interposables.length ())
return false;
for (unsigned i = 0; i < a->m_references.length (); i++)