aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-10-06 21:19:39 -0700
committerRichard Henderson <rth@gcc.gnu.org>2002-10-06 21:19:39 -0700
commita290046011f0e7b1b27b1cadfe4b76943d8b991b (patch)
treef2aa97909af42d4b75246f6fb3454d6a516fd44a
parentff025ab9ad1419208845b3287548f8e52f66f7c1 (diff)
downloadgcc-a290046011f0e7b1b27b1cadfe4b76943d8b991b.zip
gcc-a290046011f0e7b1b27b1cadfe4b76943d8b991b.tar.gz
gcc-a290046011f0e7b1b27b1cadfe4b76943d8b991b.tar.bz2
* config/rs6000/rs6000.md (load_toc_v4_PIC_2): Fix base constraint.
From-SVN: r57871
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/rs6000/rs6000.md2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e5d76f5..b316453 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2002-10-06 Richard Henderson <rth@redhat.com>
+ * config/rs6000/rs6000.md (load_toc_v4_PIC_2): Fix base constraint.
+
+2002-10-06 Richard Henderson <rth@redhat.com>
+
PR optimization/2960
* toplev.c (rest_of_compilation): Don't copy_loop_headers if
optimize_size.
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index 132ca76..91fa56c 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -10217,7 +10217,7 @@
(define_insn "load_toc_v4_PIC_2"
[(set (match_operand:SI 0 "gpc_reg_operand" "=r")
- (mem:SI (plus:SI (match_operand:SI 1 "gpc_reg_operand" "r")
+ (mem:SI (plus:SI (match_operand:SI 1 "gpc_reg_operand" "b")
(minus:SI (match_operand:SI 2 "immediate_operand" "s")
(match_operand:SI 3 "immediate_operand" "s")))))]
"TARGET_ELF && DEFAULT_ABI != ABI_AIX && flag_pic == 2"