(vms_check_external): Update `pending_head' properly when the first
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 14 Aug 1995 13:08:53 +0000 (09:08 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 14 Aug 1995 13:08:53 +0000 (09:08 -0400)
list element is removed.

From-SVN: r10237

gcc/config/vax/vax.c

index c3cf4436ea888f3a6676d0500fe329804e33c03c..e0500e2ba7a1cc7f6cd11d047ea249cf8eaf3574 100644 (file)
@@ -1,5 +1,5 @@
 /* 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.
 
@@ -685,9 +685,9 @@ vms_check_external (decl, name, pending)
        if (pending)
          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)
-         pending_head = 0;
+         pending_head = p->next;
        else
          p0->next = p->next;
        p->next = extern_head;