aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-09-10 15:04:39 +0000
committerNick Clifton <nickc@gcc.gnu.org>2009-09-10 15:04:39 +0000
commit1c6679e236a9cbe030ea9f57712b42c36fa1e199 (patch)
tree76a1b08c381555a1f5d48eb778f07819d8b750ca /gcc
parentbb59df5289101b9eee8eb6c5914eb14562717c1d (diff)
downloadgcc-1c6679e236a9cbe030ea9f57712b42c36fa1e199.zip
gcc-1c6679e236a9cbe030ea9f57712b42c36fa1e199.tar.gz
gcc-1c6679e236a9cbe030ea9f57712b42c36fa1e199.tar.bz2
mep.c (mep_encode_section_info): Copy weakness attribute and referring decl when creating renamed symbol.
* config/mep/mep.c (mep_encode_section_info): Copy weakness attribute and referring decl when creating renamed symbol. From-SVN: r151595
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mep/mep.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c85c486..752b1a7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2009-09-10 Nick Clifton <nickc@redhat.com>
+
+ * config/mep/mep.c (mep_encode_section_info): Copy weakness
+ attribute and referring decl when creating renamed symbol.
+
2009-09-10 Richard Guenther <rguenther@suse.de>
PR middle-end/41257
diff --git a/gcc/config/mep/mep.c b/gcc/config/mep/mep.c
index efed4b6..80d3995 100644
--- a/gcc/config/mep/mep.c
+++ b/gcc/config/mep/mep.c
@@ -4564,6 +4564,8 @@ mep_encode_section_info (tree decl, rtx rtl, int first)
idp = get_identifier (newname);
XEXP (rtl, 0) =
gen_rtx_SYMBOL_REF (Pmode, IDENTIFIER_POINTER (idp));
+ SYMBOL_REF_WEAK (XEXP (rtl, 0)) = DECL_WEAK (decl);
+ SET_SYMBOL_REF_DECL (XEXP (rtl, 0), decl);
switch (encoding)
{