rs6000.c (machopic_output_stub): Output ldu instead of lwzu for 64-bit stubs.
authorStan Shebs <shebs@apple.com>
Sat, 6 Nov 2004 00:53:20 +0000 (00:53 +0000)
committerStan Shebs <shebs@gcc.gnu.org>
Sat, 6 Nov 2004 00:53:20 +0000 (00:53 +0000)
        * config/rs6000/rs6000.c (machopic_output_stub): Output
        ldu instead of lwzu for 64-bit stubs.

From-SVN: r90157

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index dd21cb1a6f01cdf3a81597ba135b82c0722f39f4..b8efd0516d1193b586c3c3f008a02e1de345eb78 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-05  Stan Shebs  <shebs@apple.com>
+
+       * config/rs6000/rs6000.c (machopic_output_stub): Output
+       ldu instead of lwzu for 64-bit stubs.
+
 2004-11-05  Richard Henderson  <rth@redhat.com>
 
        * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case
index 2b3178cccae677bf5f9e98b35cc1fae033a5ad39..51577b281ca35b3421ba30c1a2af92eac0269efe 100644 (file)
@@ -17195,7 +17195,8 @@ machopic_output_stub (FILE *file, const char *symb, const char *stub)
       fprintf (file, "\taddis r11,r11,ha16(%s-%s)\n",
               lazy_ptr_name, local_label_0);
       fprintf (file, "\tmtlr r0\n");
-      fprintf (file, "\tlwzu r12,lo16(%s-%s)(r11)\n",
+      fprintf (file, "\t%s r12,lo16(%s-%s)(r11)\n",
+              (TARGET_64BIT ? "ldu" : "lwzu"),
               lazy_ptr_name, local_label_0);
       fprintf (file, "\tmtctr r12\n");
       fprintf (file, "\tbctr\n");