aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2003-07-02 02:17:38 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2003-07-02 00:17:38 +0000
commit8bd87c4e73fef41cbbd1c7dd722e0a590ff1111c (patch)
tree3136e42f99188647a6b9586d69209b69f95f0c02 /gcc/cgraph.h
parentd6435621b2bc4ca2f3664172c1464def4b2a9a4f (diff)
downloadgcc-8bd87c4e73fef41cbbd1c7dd722e0a590ff1111c.zip
gcc-8bd87c4e73fef41cbbd1c7dd722e0a590ff1111c.tar.gz
gcc-8bd87c4e73fef41cbbd1c7dd722e0a590ff1111c.tar.bz2
cgraph.c (cgraph_mark_needed_node, [...]): Use next_needed field instead of aux to maintain the queue.
* 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. From-SVN: r68807
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index bbf1c28..dbd012f 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -75,6 +75,8 @@ struct cgraph_node GTY(())
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
@@ -108,7 +110,8 @@ struct cgraph_edge GTY(())
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. */