diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/darwin.c | 2 |
2 files changed, 6 insertions, 1 deletions
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 <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 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 { |