re PR target/37170 (gcc.dg/weak/weak-1.c)

PR target/37170
	PR target/38448
	* final.c (output_addr_const) <SYMBOL_REF>: Call assemble_external
	on the associated SYMBOL_REF_DECL node, if any.

From-SVN: r142640
This commit is contained in:
Eric Botcazou 2008-12-10 08:46:40 +00:00 committed by Eric Botcazou
parent 53f37b01ef
commit 0462b9b502
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2008-12-10 Eric Botcazou <ebotcazou@adacore.com>
PR target/37170
PR target/38448
* final.c (output_addr_const) <SYMBOL_REF>: Call assemble_external
on the associated SYMBOL_REF_DECL node, if any.
2008-12-09 David Daney <ddaney@caviumnetworks.com>
* config/mips/sync.md (sync_<optab>_12): Replace

View File

@ -3440,7 +3440,10 @@ output_addr_const (FILE *file, rtx x)
case SYMBOL_REF:
if (SYMBOL_REF_DECL (x))
mark_decl_referenced (SYMBOL_REF_DECL (x));
{
mark_decl_referenced (SYMBOL_REF_DECL (x));
assemble_external (SYMBOL_REF_DECL (x));
}
#ifdef ASM_OUTPUT_SYMBOL_REF
ASM_OUTPUT_SYMBOL_REF (file, x);
#else