re PR target/65531 (ICE: symtab_node::verify failed: Two symbols with same comdat_group are not linked by the same_comdat_group list. with -fcheck-pointer-bounds -mmpx)

PR target/65531
	* symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
	comdat groups.

From-SVN: r221736
This commit is contained in:
Jan Hubicka 2015-03-27 16:19:35 +01:00 committed by Jan Hubicka
parent 931c8e9a04
commit 6e85fbaadd
2 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2015-03-27 Jan Hubicka <hubicka@ucw.cz>
PR target/65531
* symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
comdat groups.
2015-03-27 Jan Hubicka <hubicka@ucw.cz>
PR ipa/65600

View File

@ -1130,15 +1130,20 @@ symtab_node::verify_symtab_nodes (void)
&existed);
if (!existed)
*entry = node;
else
for (s = (*entry)->same_comdat_group; s != NULL && s != node; s = s->same_comdat_group)
else if (!DECL_EXTERNAL (node->decl))
{
for (s = (*entry)->same_comdat_group; s != NULL && s != node;
s = s->same_comdat_group)
;
if (!s || s == *entry)
{
error ("Two symbols with same comdat_group are not linked by the same_comdat_group list.");
error ("Two symbols with same comdat_group are not linked by "
"the same_comdat_group list.");
(*entry)->debug ();
node->debug ();
internal_error ("symtab_node::verify failed");
}
}
}
}
}