OSDN Git Service

PR middle-end/37170
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Sep 2008 01:54:03 +0000 (01:54 +0000)
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Sep 2008 01:54:03 +0000 (01:54 +0000)
commitcd1862289cb7b38e6c7f0552ebf870525710d4d8
treedacbdaca2921aa2efeafb9bf75733643142af3ea
parent2aa870e4b9e542ace7ace77a22704c9a91b92be4
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140539 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/darwin.c
gcc/final.c
gcc/varasm.c