aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-06-03 22:15:08 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-06-03 15:15:08 -0700
commitc0d594f1da6b13e79a81d72f71f55ec8b9fa2b60 (patch)
tree367f44324bd6e18893b03dfa81a83fbda70b68ce /gcc
parentdfc46c1fdef0d825023be8c49c14214b21d1d4f6 (diff)
downloadgcc-c0d594f1da6b13e79a81d72f71f55ec8b9fa2b60.zip
gcc-c0d594f1da6b13e79a81d72f71f55ec8b9fa2b60.tar.gz
gcc-c0d594f1da6b13e79a81d72f71f55ec8b9fa2b60.tar.bz2
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 <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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/darwin.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index beb819b..b7c1b5b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index 7a89615..63c75df7 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;