From: Stan Shebs Date: Sat, 6 Nov 2004 00:53:20 +0000 (+0000) Subject: rs6000.c (machopic_output_stub): Output ldu instead of lwzu for 64-bit stubs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d0e2d584671a9e143a2e0c9e2d919ef875e5d10;p=gcc.git rs6000.c (machopic_output_stub): Output ldu instead of lwzu for 64-bit stubs. * config/rs6000/rs6000.c (machopic_output_stub): Output ldu instead of lwzu for 64-bit stubs. From-SVN: r90157 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dd21cb1a6f0..b8efd0516d1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-11-05 Stan Shebs + + * config/rs6000/rs6000.c (machopic_output_stub): Output + ldu instead of lwzu for 64-bit stubs. + 2004-11-05 Richard Henderson * 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 2b3178cccae..51577b281ca 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");