Commit 1c6679e2 by Nick Clifton Committed by Nick Clifton

mep.c (mep_encode_section_info): Copy weakness attribute and referring decl when…

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
parent bb59df52
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
......
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment