From c0d594f1da6b13e79a81d72f71f55ec8b9fa2b60 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Thu, 3 Jun 2004 22:15:08 +0000 Subject: [PATCH] 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 Andrew Pinski * 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 | 6 ++++++ gcc/config/darwin.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index beb819b733b..b7c1b5be035 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-06-03 Andrew Pinski + + * 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 * tree.h: Remove include of version.h diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 7a89615453a..63c75df7c8e 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -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; -- 2.30.2