aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2002-01-24 05:42:55 -0500
committerJason Merrill <jason@gcc.gnu.org>2002-01-24 05:42:55 -0500
commit3b6cb9200d58f3a74d7240b94ded2343759758ba (patch)
treea0e8b440b95f5a775cfc83ed610b38d4da7b61cc
parent9dcb1936247a82b88feb4dca45240e1c18d33e80 (diff)
downloadgcc-3b6cb9200d58f3a74d7240b94ded2343759758ba.zip
gcc-3b6cb9200d58f3a74d7240b94ded2343759758ba.tar.gz
gcc-3b6cb9200d58f3a74d7240b94ded2343759758ba.tar.bz2
sparc.md (call-jump peepholes): Pass the right insn to can_throw_internal.
* config/sparc/sparc.md (call-jump peepholes): Pass the right insn to can_throw_internal. From-SVN: r49177
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/sparc/sparc.md8
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index de4b9fc..08bba7f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-24 Jason Merrill <jason@redhat.com>
+
+ * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
+ to can_throw_internal.
+
2002-01-23 Richard Henderson <rth@redhat.com>
* fold-const.c (fold): Change UINT_MAX test to check vs precision
diff --git a/gcc/config/sparc/sparc.md b/gcc/config/sparc/sparc.md
index c708da4..c0b8f60 100644
--- a/gcc/config/sparc/sparc.md
+++ b/gcc/config/sparc/sparc.md
@@ -9258,7 +9258,7 @@
(clobber (reg:SI 15))])
(set (pc) (label_ref (match_operand 3 "" "")))]
"short_branch (INSN_UID (insn), INSN_UID (operands[3]))
- && (USING_SJLJ_EXCEPTIONS || ! can_throw_internal (insn))"
+ && (USING_SJLJ_EXCEPTIONS || ! can_throw_internal (ins1))"
"call\\t%a1, %2\\n\\tadd\\t%%o7, (%l3-.-4), %%o7")
(define_peephole
@@ -9267,7 +9267,7 @@
(clobber (reg:SI 15))])
(set (pc) (label_ref (match_operand 2 "" "")))]
"short_branch (INSN_UID (insn), INSN_UID (operands[2]))
- && (USING_SJLJ_EXCEPTIONS || ! can_throw_internal (insn))"
+ && (USING_SJLJ_EXCEPTIONS || ! can_throw_internal (ins1))"
"call\\t%a0, %1\\n\\tadd\\t%%o7, (%l2-.-4), %%o7")
(define_peephole
@@ -9278,7 +9278,7 @@
(set (pc) (label_ref (match_operand 3 "" "")))]
"TARGET_ARCH64
&& short_branch (INSN_UID (insn), INSN_UID (operands[3]))
- && (USING_SJLJ_EXCEPTIONS || ! can_throw_internal (insn))"
+ && (USING_SJLJ_EXCEPTIONS || ! can_throw_internal (ins1))"
"call\\t%a1, %2\\n\\tadd\\t%%o7, (%l3-.-4), %%o7")
(define_peephole
@@ -9288,7 +9288,7 @@
(set (pc) (label_ref (match_operand 2 "" "")))]
"TARGET_ARCH64
&& short_branch (INSN_UID (insn), INSN_UID (operands[2]))
- && (USING_SJLJ_EXCEPTIONS || ! can_throw_internal (insn))"
+ && (USING_SJLJ_EXCEPTIONS || ! can_throw_internal (ins1))"
"call\\t%a0, %1\\n\\tadd\\t%%o7, (%l2-.-4), %%o7")
(define_insn "prefetch"