re PR target/37170 (gcc.dg/weak/weak-1.c)
authorHans-Peter Nilsson <hp@axis.com>
Mon, 22 Sep 2008 01:54:03 +0000 (01:54 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Mon, 22 Sep 2008 01:54:03 +0000 (01:54 +0000)
commitc70d0414afa803f535420815116971725933234c
treedacbdaca2921aa2efeafb9bf75733643142af3ea
parentdf969fc7a3004d812d22a9855283e2f7cf7cf96a
re PR target/37170 (gcc.dg/weak/weak-1.c)

PR middle-end/37170
PR middle-end/37280
* final.c (mark_symbol_ref_as_used): New helper function.
(output_operand): Instead of just looking inside MEMs for
SYMBOL_REFs, use new helper function and for_each_rtx.
* varasm.c (assemble_external): Move #ifndef ASM_OUTPUT_EXTERNAL
to after weak-handling.  Don't mark decls with TREE_STATIC as weak.
Make head comment more general.
* config/darwin.c (machopic_output_indirection): Handle weak
references here, like in assemble_external.

From-SVN: r140539
gcc/ChangeLog
gcc/config/darwin.c
gcc/final.c
gcc/varasm.c