diff options
author | Stan Shebs <shebs@apple.com> | 2004-11-06 00:53:20 +0000 |
---|---|---|
committer | Stan Shebs <shebs@gcc.gnu.org> | 2004-11-06 00:53:20 +0000 |
commit | 3d0e2d584671a9e143a2e0c9e2d919ef875e5d10 (patch) | |
tree | 028b9d6341224080bdfc803a3036e1ea86f655c5 | |
parent | 9f7d06d693cc3c45b0213fbe115d56b252279dbe (diff) | |
download | gcc-3d0e2d584671a9e143a2e0c9e2d919ef875e5d10.zip gcc-3d0e2d584671a9e143a2e0c9e2d919ef875e5d10.tar.gz gcc-3d0e2d584671a9e143a2e0c9e2d919ef875e5d10.tar.bz2 |
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
-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"); |