aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/sh/sh.md
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/config/sh/sh.md
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/config/sh/sh.md')
-rw-r--r--gcc/config/sh/sh.md4
1 files changed, 2 insertions, 2 deletions
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;
}")