aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@apple.com>2004-08-18 17:28:40 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-08-18 10:28:40 -0700
commitf9b0ac3bed683d922ba67a403c4b9b714e4f5a54 (patch)
treebd9ec41ff95b2a20e9483cd441e1c8828f0b9a3e /gcc
parentf822d2527eda821d7faeab8370a896d4591a100d (diff)
downloadgcc-f9b0ac3bed683d922ba67a403c4b9b714e4f5a54.zip
gcc-f9b0ac3bed683d922ba67a403c4b9b714e4f5a54.tar.gz
gcc-f9b0ac3bed683d922ba67a403c4b9b714e4f5a54.tar.bz2
darwin.c (machopic_legitimize_pic_address): Only set MEM_READONLY_P in the non TARGET_TOC case.
2004-08-18 Andrew Pinski <apinski@apple.com> * config/darwin.c (machopic_legitimize_pic_address): Only set MEM_READONLY_P in the non TARGET_TOC case. From-SVN: r86194
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/darwin.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bc3d3b2..52b92b7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-08-18 Andrew Pinski <apinski@apple.com>
+
+ * config/darwin.c (machopic_legitimize_pic_address): Only set MEM_READONLY_P
+ in the non TARGET_TOC case.
+
2004-08-18 Zack Weinberg <zack@codesourcery.com>
* rtl.def (NIL): Delete.
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index 1c308bb..977a4f7 100644
--- a/gcc/config/darwin.c
+++ b/gcc/config/darwin.c
@@ -613,8 +613,8 @@ machopic_legitimize_pic_address (rtx orig, enum machine_mode mode, rtx reg)
#if !defined (TARGET_TOC)
emit_move_insn (reg, pic_ref);
pic_ref = gen_rtx_MEM (GET_MODE (orig), reg);
-#endif
MEM_READONLY_P (pic_ref) = 1;
+#endif
}
else
{