diff options
author | Richard Henderson <rth@redhat.com> | 2005-01-02 07:52:31 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 2005-01-02 07:52:31 +0000 |
commit | 0c0c27bb070eb153d1660f7304696a9053fc3ae5 (patch) | |
tree | 9fcf4185c5360e802ff2cef25c68d1cd2b7178d6 /gcc/cgraph.h | |
parent | 7349c08afaa905bcc2a9c7942d3758335c599ba8 (diff) |
PR c/19031
* c-decl.c (pop_file_scope): Call maybe_apply_pending_pragma_weaks.
* c-lang.c (finish_file): Don't do it here.
* objc/objc-act.c (objc_finish_file): Likewise.
* cgraph.c (decl_assembler_name_equal): New.
(cgraph_node_for_asm, cgraph_varpool_node_for_asm): New.
(cgraph_varpool_node): Actually link up cgraph_varpool_nodes.
* cgraph.h (struct cgraph_varpool_node): Add next.
(cgraph_node_for_asm, cgraph_varpool_node_for_asm): Declare.
* varasm.c (assemble_alias): Mark the target as needed.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@92803 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index 91560663817..a30e5488588 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -138,6 +138,8 @@ struct cgraph_edge GTY((chain_next ("%h.next_caller"))) struct cgraph_varpool_node GTY(()) { tree decl; + /* Pointer to the next function in cgraph_varpool_nodes. */ + struct cgraph_varpool_node *next; /* Pointer to the next function in cgraph_varpool_nodes_queue. */ struct cgraph_varpool_node *next_needed; @@ -168,6 +170,7 @@ struct cgraph_edge *cgraph_create_edge (struct cgraph_node *, struct cgraph_node *, tree); struct cgraph_node *cgraph_node (tree decl); +struct cgraph_node *cgraph_node_for_asm (tree asmname); struct cgraph_edge *cgraph_edge (struct cgraph_node *, tree call_expr); struct cgraph_local_info *cgraph_local_info (tree); struct cgraph_global_info *cgraph_global_info (tree); @@ -177,6 +180,7 @@ struct cgraph_edge * cgraph_clone_edge (struct cgraph_edge *, struct cgraph_node struct cgraph_node * cgraph_clone_node (struct cgraph_node *); struct cgraph_varpool_node *cgraph_varpool_node (tree decl); +struct cgraph_varpool_node *cgraph_varpool_node_for_asm (tree asmname); void cgraph_varpool_mark_needed_node (struct cgraph_varpool_node *); void cgraph_varpool_finalize_decl (tree); bool cgraph_varpool_assemble_pending_decls (void); |