summaryrefslogtreecommitdiff
path: root/gcc/varpool.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/varpool.c')
-rw-r--r--gcc/varpool.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/varpool.c b/gcc/varpool.c
index 65c22d491b4..7791ada4bc3 100644
--- a/gcc/varpool.c
+++ b/gcc/varpool.c
@@ -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;
}