+Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
+
+ * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
+ cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
+ Use next_needed field instead of aux to maintain the queue.
+ * cgraph.h (cgraph_node): Add next_needed.
+ (cgraph_varpool_node): Add next_needed; remove aux.
+ * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
+
Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
* cgraphunit.c (cgraph_finalize_function): Set finalized.
node->reachable = 1;
if (DECL_SAVED_TREE (node->decl))
{
- node->aux = cgraph_nodes_queue;
+ node->next_needed = cgraph_nodes_queue;
cgraph_nodes_queue = node;
}
}
{
if (!node->needed && node->finalized)
{
- node->aux = cgraph_varpool_nodes_queue;
+ node->next_needed = cgraph_varpool_nodes_queue;
cgraph_varpool_nodes_queue = node;
}
node->needed = 1;
if (node->needed && !node->finalized)
{
- node->aux = cgraph_varpool_nodes_queue;
+ node->next_needed = cgraph_varpool_nodes_queue;
cgraph_varpool_nodes_queue = node;
}
node->finalized = true;
tree decl = cgraph_varpool_nodes_queue->decl;
struct cgraph_varpool_node *node = cgraph_varpool_nodes_queue;
- cgraph_varpool_nodes_queue = cgraph_varpool_nodes_queue->aux;
+ cgraph_varpool_nodes_queue = cgraph_varpool_nodes_queue->next_needed;
if (!TREE_ASM_WRITTEN (decl))
{
assemble_variable (decl, 0, 1, 0);
changed = true;
}
- node->aux = NULL;
+ node->next_needed = NULL;
}
return changed;
}
struct cgraph_node *nested;
/* Pointer to the next function with same origin, if any. */
struct cgraph_node *next_nested;
+ /* Pointer to the next function in cgraph_nodes_queue. */
+ struct cgraph_node *next_needed;
PTR GTY ((skip (""))) aux;
/* Set when function must be output - it is externally visible
struct cgraph_varpool_node GTY(())
{
tree decl;
- PTR GTY ((skip (""))) aux;
+ /* Pointer to the next function in cgraph_varpool_nodes_queue. */
+ struct cgraph_varpool_node *next_needed;
/* Set when function must be output - it is externally visible
or it's address is taken. */
tree decl = cgraph_nodes_queue->decl;
node = cgraph_nodes_queue;
- cgraph_nodes_queue = cgraph_nodes_queue->aux;
+ cgraph_nodes_queue = cgraph_nodes_queue->next_needed;
if (node->lowered || !node->reachable || !DECL_SAVED_TREE (decl))
abort ();