aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2008-12-10 08:46:40 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2008-12-10 08:46:40 +0000
commit0462b9b502cdb526b3f28254fd3d8c92cfd71941 (patch)
tree01499c44609d78be619cadee50af0856f83cba0d /gcc
parent53f37b01ef7e34503f5380a9cddf92d865625625 (diff)
downloadgcc-0462b9b502cdb526b3f28254fd3d8c92cfd71941.zip
gcc-0462b9b502cdb526b3f28254fd3d8c92cfd71941.tar.gz
gcc-0462b9b502cdb526b3f28254fd3d8c92cfd71941.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/final.c5
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 588ce00..d7e8767 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/final.c b/gcc/final.c
index aceeb7c..1735a73 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -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