From: Martin Liska Date: Fri, 27 Feb 2015 19:05:30 +0000 (+0100) Subject: Fix missing condition in symbol_compare_hashmap_traits. X-Git-Tag: releases/gcc-5.1.0~706 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b94097dc6f7ed9086e1c9577cbd4948173b0d847;p=thirdparty%2Fgcc.git Fix missing condition in symbol_compare_hashmap_traits. * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing vector length condition. From-SVN: r221069 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 06ea6d8296b8..0fe78df4fd2a 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 9e762398ab15..077267ce087f 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++)