diff options
author | Martin Liska <mliska@suse.cz> | 2015-02-27 20:05:30 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2015-02-27 19:05:30 +0000 |
commit | b94097dc6f7ed9086e1c9577cbd4948173b0d847 (patch) | |
tree | 5f583d0f72d00ba78c38532bb9fe89fc02aa2ae1 | |
parent | 8eba66e88067ee0773d2e245c111703de56540d3 (diff) | |
download | gcc-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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ipa-icf.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 06ea6d8..0fe78df4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-02-27 Martin Liska <mliska@suse.cz> + + * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing + vector length condition. + 2015-02-27 Sandra Loosemore <sandra@codesourcery.com> * doc/extend.texi (x86 transactional memory intrinsics): 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++) |