darwin.c (machopic_indirect_data_reference): Copy the SYMBOL_REF_DECL from the origin...
authorAndrew Pinski <pinskia@physics.uc.edu>
Thu, 3 Jun 2004 22:15:08 +0000 (22:15 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Thu, 3 Jun 2004 22:15:08 +0000 (15:15 -0700)
2004-06-03  Andrew Pinski  <pinskia@physics.uc.edu>

        * config/darwin.c (machopic_indirect_data_reference): Copy
        the SYMBOL_REF_DECL from the original RTX for the new
        non-lazy pointer RTX.

From-SVN: r82606

gcc/ChangeLog
gcc/config/darwin.c

index beb819b733bedb58acd7faa2311f04844dfe889c..b7c1b5be035f35fd5f03c183a27646fe848a9daf 100644 (file)
@@ -1,3 +1,9 @@
+2004-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       * config/darwin.c (machopic_indirect_data_reference): Copy
+       the SYMBOL_REF_DECL from the original RTX for the new
+       non-lazy pointer RTX.
+
 2004-06-03 Mark G. Adams  <mark.g.adams@sympatico.ca>
 
        * tree.h: Remove include of version.h
index 7a89615453a8fd86110e30dc496f282718fab82f..63c75df7c8e3af8c4a9f260d62940a1a97126133 100644 (file)
@@ -499,6 +499,8 @@ machopic_indirect_data_reference (rtx orig, rtx reg)
       ptr_ref = gen_rtx_SYMBOL_REF (Pmode,
                                    machopic_non_lazy_ptr_name (name));
 
+     SYMBOL_REF_DECL (ptr_ref) = SYMBOL_REF_DECL (orig);
+
       ptr_ref = gen_rtx_MEM (Pmode, ptr_ref);
       RTX_UNCHANGING_P (ptr_ref) = 1;