re PR target/37170 (gcc.dg/weak/weak-1.c)
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 10 Dec 2008 08:46:40 +0000 (08:46 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 10 Dec 2008 08:46:40 +0000 (08:46 +0000)
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

gcc/ChangeLog
gcc/final.c

index 588ce005412f1c3934bc713a5e0911905fff142d..d7e876707c9c1c8a0233fdb115a3973951cda430 100644 (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
index aceeb7cfb13e9530babc3d324007fe1e0a0072c1..1735a73207dcb53241a1fe96c4adfb181dd230f8 100644 (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