From f9b0ac3bed683d922ba67a403c4b9b714e4f5a54 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Wed, 18 Aug 2004 17:28:40 +0000 Subject: [PATCH] darwin.c (machopic_legitimize_pic_address): Only set MEM_READONLY_P in the non TARGET_TOC case. 2004-08-18 Andrew Pinski * config/darwin.c (machopic_legitimize_pic_address): Only set MEM_READONLY_P in the non TARGET_TOC case. From-SVN: r86194 --- gcc/ChangeLog | 5 +++++ gcc/config/darwin.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bc3d3b2f8ed..52b92b77db1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-08-18 Andrew Pinski + + * config/darwin.c (machopic_legitimize_pic_address): Only set MEM_READONLY_P + in the non TARGET_TOC case. + 2004-08-18 Zack Weinberg * rtl.def (NIL): Delete. diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 1c308bb5eac..977a4f78bf2 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 { -- 2.30.2