aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2003-03-18 19:41:52 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2003-03-18 19:41:52 +0000
commit8291cc0e52ccbc3ca299a2b1c890d8b7c6e99ea4 (patch)
tree90e25bb4fafab7b560c21f3927e69176508efcc8 /gcc
parent91d167bb612b0de5da4a3cce8f3f0b1c4c93ce18 (diff)
downloadgcc-8291cc0e52ccbc3ca299a2b1c890d8b7c6e99ea4.zip
gcc-8291cc0e52ccbc3ca299a2b1c890d8b7c6e99ea4.tar.gz
gcc-8291cc0e52ccbc3ca299a2b1c890d8b7c6e99ea4.tar.bz2
* config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
From-SVN: r64548
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/rs6000/rs6000.md4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d00d7d0..53c75b4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2003-03-18 Geoffrey Keating <geoffk@apple.com>
+
+ * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
+
2003-03-18 Richard Henderson <rth@redhat.com>
* config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index ae4c65d..f978275 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -9843,12 +9843,12 @@
(define_insn "macho_correct_pic"
[(set (match_operand:SI 0 "gpc_reg_operand" "=r")
- (plus:SI (match_operand:SI 1 "gpc_reg_operand" "=r")
+ (plus:SI (match_operand:SI 1 "gpc_reg_operand" "r")
(unspec:SI [(match_operand:SI 2 "immediate_operand" "s")
(match_operand:SI 3 "immediate_operand" "s")]
16)))]
"DEFAULT_ABI == ABI_DARWIN"
- "addis %0,%1,ha16(%2-%3)\n\taddi %1,%1,lo16(%2-%3)"
+ "addis %0,%1,ha16(%2-%3)\n\taddi %0,%0,lo16(%2-%3)"
[(set_attr "length" "8")])
;; If the TOC is shared over a translation unit, as happens with all