aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2000-09-08 11:00:17 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2000-09-08 11:00:17 +0000
commit6b3783de20224d151b998a0ec5bc0033b6c983d4 (patch)
treeef84ff9ef68782368934149b75d5ef3113b016cb /gcc
parent9af354b715de4ee982fe21d22a182cf131eef83c (diff)
downloadgcc-6b3783de20224d151b998a0ec5bc0033b6c983d4.zip
gcc-6b3783de20224d151b998a0ec5bc0033b6c983d4.tar.gz
gcc-6b3783de20224d151b998a0ec5bc0033b6c983d4.tar.bz2
* config/sh/sh.md (symPLT_label2reg): Use operand3 for PIC reg.
From-SVN: r36266
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/sh/sh.md4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 794cf5d..9afedb2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2000-09-08 Alexandre Oliva <aoliva@redhat.com>
+
+ * config/sh/sh.md (symPLT_label2reg): Use operand3 for PIC reg.
+
2000-09-08 Bernd Schmidt <bernds@redhat.co.uk>
* combine.c (combine_simplify_rtx): Try to simplify VEC_SELECT of a
diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md
index f4dc1ab..19925a7 100644
--- a/gcc/config/sh/sh.md
+++ b/gcc/config/sh/sh.md
@@ -3516,7 +3516,7 @@ else
(unspec [(match_operand:SI 1 "" "")] 9))
(const (plus:SI (label_ref (match_operand:SI 2 "" ""))
(const_int 2))))))
- (use (match_dup 2))]
+ (use (match_dup 3))]
;; Even though the PIC register is not really used by the call
;; sequence in which this is expanded, the PLT code assumes the PIC
;; register is set, so we must not skip its initialization. Since
@@ -3530,7 +3530,7 @@ else
;; shared libraries.
"" "
{
- operands[2] = pic_offset_table_rtx;
+ operands[3] = pic_offset_table_rtx;
current_function_uses_pic_offset_table = 1;
}")