]> gcc.gnu.org Git - gcc.git/commitdiff
mep.c (mep_encode_section_info): Copy weakness attribute and referring decl when...
authorNick Clifton <nickc@redhat.com>
Thu, 10 Sep 2009 15:04:39 +0000 (15:04 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Thu, 10 Sep 2009 15:04:39 +0000 (15:04 +0000)
        * config/mep/mep.c (mep_encode_section_info): Copy weakness
        attribute and referring decl when creating renamed symbol.

From-SVN: r151595

gcc/ChangeLog
gcc/config/mep/mep.c

index c85c486e6cb97ae47738ec76d47e20311e5b9f53..752b1a7dd7d30684c4657061fba1505a3ac3e178 100644 (file)
@@ -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
index efed4b6caf6efdedeb93238b0c4bb6360a4236ee..80d39956b7b762abd969d09475764b363558b3b4 100644 (file)
@@ -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)
        {
This page took 0.12002 seconds and 5 git commands to generate.