aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
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/config
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/config')
-rw-r--r--gcc/config/mep/mep.c2
1 files changed, 2 insertions, 0 deletions
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)
{