diff options
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/config/rs6000/rs6000.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dd21cb1..b8efd05 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 2b3178c..51577b2 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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"); |
