Commit d8fa98d5 by Richard Kenner

(vms_check_external): Update `pending_head' properly when the first

list element is removed.

From-SVN: r10237
parent 31cc58e9
/* Subroutines for insn-output.c for Vax. /* Subroutines for insn-output.c for Vax.
Copyright (C) 1987, 1994 Free Software Foundation, Inc. Copyright (C) 1987, 1994, 1995 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -685,9 +685,9 @@ vms_check_external (decl, name, pending) ...@@ -685,9 +685,9 @@ vms_check_external (decl, name, pending)
if (pending) if (pending)
return; return;
/* Was pending, but may now be defined; move it to other list. */ /* Was pending, but has now been defined; move it to other list. */
if (p == pending_head) if (p == pending_head)
pending_head = 0; pending_head = p->next;
else else
p0->next = p->next; p0->next = p->next;
p->next = extern_head; p->next = extern_head;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment