* symtab.c (symtab_node::verify_base): Verify order.
(symtab_node::verify_symtab_nodes): Verify order.
error ("node has unknown type");
error_found = true;
}
+ if (order < 0 || order >= symtab->order)
+ {
+ error ("node has invalid order %i", order);
+ error_found = true;
+ }
if (symtab->state != LTO_STREAMING)
{
{
symtab_node *node;
hash_map<tree, symtab_node *> comdat_head_map (251);
+ asm_node *anode;
+
+ for (anode = symtab->first_asm_symbol (); anode; anode = anode->next)
+ if (anode->order < 0 || anode->order >= symtab->order)
+ {
+ error ("invalid order in asm node %i", anode->order);
+ internal_error ("symtab_node::verify failed");
+ }
FOR_EACH_SYMBOL (node)
{