]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c/19031 (#pragma weak handling changes in 4.0.0)
authorRichard Henderson <rth@redhat.com>
Sun, 2 Jan 2005 07:52:31 +0000 (23:52 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 2 Jan 2005 07:52:31 +0000 (23:52 -0800)
commitbedb9fc04bb56b56d8af671bdfe28cc9052622ec
tree9fcf4185c5360e802ff2cef25c68d1cd2b7178d6
parent1cb2fc7b18423a905d0c646dc7b0b6b5a023de36
re PR c/19031 (#pragma weak handling changes in 4.0.0)

        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.

From-SVN: r92803
gcc/ChangeLog
gcc/c-decl.c
gcc/c-lang.c
gcc/cgraph.c
gcc/cgraph.h
gcc/objc/objc-act.c
gcc/testsuite/gcc.dg/attr-alias-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/weak/weak-11.c [new file with mode: 0644]
gcc/varasm.c