aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2005-01-02 07:52:31 +0000
committerRichard Henderson <rth@redhat.com>2005-01-02 07:52:31 +0000
commit0c0c27bb070eb153d1660f7304696a9053fc3ae5 (patch)
tree9fcf4185c5360e802ff2cef25c68d1cd2b7178d6 /gcc/c-decl.c
parent7349c08afaa905bcc2a9c7942d3758335c599ba8 (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/c-decl.c')
-rw-r--r--gcc/c-decl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index a0053ed2fbe..047ef5905cb 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -897,6 +897,8 @@ pop_file_scope (void)
/* Pop off the file scope and close this translation unit. */
pop_scope ();
file_scope = 0;
+
+ maybe_apply_pending_pragma_weaks ();
cgraph_finalize_compilation_unit ();
}