From 6b3783de20224d151b998a0ec5bc0033b6c983d4 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Fri, 8 Sep 2000 11:00:17 +0000 Subject: [PATCH] * config/sh/sh.md (symPLT_label2reg): Use operand3 for PIC reg. From-SVN: r36266 --- gcc/ChangeLog | 4 ++++ gcc/config/sh/sh.md | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 794cf5da5dd..9afedb2cc99 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2000-09-08 Alexandre Oliva + + * config/sh/sh.md (symPLT_label2reg): Use operand3 for PIC reg. + 2000-09-08 Bernd Schmidt * 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 f4dc1abd241..19925a768fe 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; }") -- 2.30.2