]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
varpool.c (dump_varpool): Use 'next', not 'next_needed' when traversing pool.
authorTom Tromey <tromey@redhat.com>
Fri, 2 Nov 2007 15:29:09 +0000 (15:29 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Fri, 2 Nov 2007 15:29:09 +0000 (15:29 +0000)
* varpool.c (dump_varpool): Use 'next', not 'next_needed' when
traversing pool.

From-SVN: r129851

gcc/ChangeLog
gcc/varpool.c

index af719e9066a55ee380d7b5d2ea84045abef05c7a..65deda96b010fcdeb9f7ebf48f0ea3071829749d 100644 (file)
@@ -1,3 +1,8 @@
+2007-11-02  Tom Tromey  <tromey@redhat.com>
+
+       * varpool.c (dump_varpool): Use 'next', not 'next_needed' when
+       traversing pool.
+
 2007-11-02  Diego Novillo  <dnovillo@google.com>
 
        * langhooks.h (struct lang_hooks_for_callgraph): Remove third
index 719f212cbf529c68cce25123675dfe5224c03084..4149c1d1d211da2b5573a5d244d4bc2f80042c21 100644 (file)
@@ -58,7 +58,7 @@ struct varpool_node *varpool_nodes;
    pointer. 
 
    LAST_NEEDED_NODE points to the end of queue, so it can be
-   maintained in forward order.  QTY is needed to make it friendly to
+   maintained in forward order.  GTY is needed to make it friendly to
    PCH.
  
    During unit-at-a-time compilation we construct the queue of needed variables
@@ -159,7 +159,7 @@ dump_varpool (FILE *f)
   struct varpool_node *node;
 
   fprintf (f, "variable pool:\n\n");
-  for (node = varpool_nodes; node; node = node->next_needed)
+  for (node = varpool_nodes; node; node = node->next)
     dump_varpool_node (f, node);
 }