re PR debug/29614 (DWARF information for function static variable is missing after...
authorSteve Ellcey <sje@cup.hp.com>
Sat, 24 Feb 2007 00:11:39 +0000 (00:11 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Sat, 24 Feb 2007 00:11:39 +0000 (00:11 +0000)
PR debug/29614
* varpool.c (varpool_assemble_pending_decls):  Set
varpool_last_needed_node to null.

From-SVN: r122277

gcc/ChangeLog
gcc/varpool.c

index 3fdbf78489a13cc1d66abb133e30d0e4fa006d13..cb4e098696532537cf29b16ad74726fa4e466add 100644 (file)
@@ -1,3 +1,9 @@
+2007-02-23  Steve Ellcey  <sje@cup.hp.com>
+
+       PR debug/29614
+       * varpool.c (varpool_assemble_pending_decls):  Set
+       varpool_last_needed_node to null.
+
 2007-02-23  DJ Delorie  <dj@redhat.com>
 
        * config/i386/i386.c (ix86_data_alignment): Don't specify an
index 65c22d491b427c62257a30f1e1b977bde7a62e65..7791ada4bc37a2560eea442aaead5aab9a0a6f33 100644 (file)
@@ -430,6 +430,9 @@ varpool_assemble_pending_decls (void)
       else
         node->next_needed = NULL;
     }
+  /* varpool_nodes_queue is now empty, clear the pointer to the last element
+     in the queue.  */
+  varpool_last_needed_node = NULL;
   return changed;
 }