* config/mep/mep.c (mep_encode_section_info): Copy weakness
attribute and referring decl when creating renamed symbol.
From-SVN: r151595
+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
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)
{