diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.md | 4 |
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 |