darwin.c (machopic_legitimize_pic_address): Only set MEM_READONLY_P in the non TARGET...
authorAndrew Pinski <apinski@apple.com>
Wed, 18 Aug 2004 17:28:40 +0000 (17:28 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Wed, 18 Aug 2004 17:28:40 +0000 (10:28 -0700)
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

gcc/ChangeLog
gcc/config/darwin.c

index bc3d3b2f8ed41a7ceb3772e75c80d09f7831c52d..52b92b77db18b763bee0936bb07d8d33be51824c 100644 (file)
@@ -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.
index 1c308bb5eaceb229d217f7406921348a2856023c..977a4f78bf28a93dffac40a76d964c77ffa67b0f 100644 (file)
@@ -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
        {