fix assert in hash_table pch routines

gcc/ChangeLog:

2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>

	* hash-table.h (gt_pch_nx): don't call gt_pch_note_object within an
	assert.

From-SVN: r215216
This commit is contained in:
Trevor Saunders 2014-09-12 12:30:29 +00:00 committed by Trevor Saunders
parent 8cc4b7a26d
commit 4b49af1535
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
* hash-table.h (gt_pch_nx): don't call gt_pch_note_object within an
assert.
2014-09-12 Joseph Myers <joseph@codesourcery.com>
* target.def (libgcc_floating_mode_supported_p): New hook.

View File

@ -1598,8 +1598,9 @@ template<typename D>
static void
gt_pch_nx (hash_table<D> *h)
{
gcc_checking_assert (gt_pch_note_object (h->m_entries, h,
hashtab_entry_note_pointers<D>));
bool success ATTRIBUTE_UNUSED
= gt_pch_note_object (h->m_entries, h, hashtab_entry_note_pointers<D>);
gcc_checking_assert (success);
for (size_t i = 0; i < h->m_size; i++)
{
if (hash_table<D>::is_empty (h->m_entries[i])