From f52caa418398e4533d62244910a3170a5126e7f9 Mon Sep 17 00:00:00 2001 From: marxin Date: Fri, 27 Feb 2015 19:05:30 +0000 Subject: [PATCH] Fix missing condition in symbol_compare_hashmap_traits. * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing vector length condition. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221069 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/ipa-icf.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 06ea6d8296b..0fe78df4fd2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-02-27 Martin Liska + + * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing + vector length condition. + 2015-02-27 Sandra Loosemore * doc/extend.texi (x86 transactional memory intrinsics): diff --git a/gcc/ipa-icf.h b/gcc/ipa-icf.h index 9e762398ab1..077267ce087 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++) -- 2.11.4.GIT