sparc.c (sparc_emit_probe_stack_range): Fix small inaccuracy in the probing code.
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 23 Mar 2013 11:32:40 +0000 (11:32 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 23 Mar 2013 11:32:40 +0000 (11:32 +0000)
* config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
inaccuracy in the probing code.

* config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
(ctrapdi4): Likewise.

From-SVN: r197004

gcc/ChangeLog
gcc/config/sparc/sparc.c
gcc/config/sparc/sparc.md

index ee8685b8e853de4e5ba1541d718d99937069a629..95531e196fadd586c15ac407937e3e459d1994c1 100644 (file)
@@ -1,3 +1,11 @@
+2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
+       inaccuracy in the probing code.
+
+       * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
+       (ctrapdi4): Likewise.
+
 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
 
        * calls.c (expand_call): Add missing guard to code handling return
index 08c2894fbbc0f5e2d34962086bb87f680ba664d2..f4ac6e4673cb2fbe86505d15f76e36eab5aa0d53 100644 (file)
@@ -4777,7 +4777,7 @@ sparc_emit_probe_stack_range (HOST_WIDE_INT first, HOST_WIDE_INT size)
         probes at FIRST + N * PROBE_INTERVAL for values of N from 1
         until it is equal to ROUNDED_SIZE.  */
 
-      if (TARGET_64BIT)
+      if (TARGET_ARCH64)
        emit_insn (gen_probe_stack_rangedi (g1, g1, g4));
       else
        emit_insn (gen_probe_stack_rangesi (g1, g1, g4));
index b60af43334c0eda5dc36e39c62cfe2a52f4ef5e7..933991c168d30e8e4e02dce81083984a347bd1ff 100644 (file)
   [(trap_if (match_operator 0 "noov_compare_operator"
             [(match_operand:SI 1 "compare_operand" "")
              (match_operand:SI 2 "arith_operand" "")])
-          (match_operand 3 ""))]
+          (match_operand 3 "arith_operand"))]
   ""
   "operands[1] = gen_compare_reg (operands[0]);
    if (GET_MODE (operands[1]) != CCmode && GET_MODE (operands[1]) != CCXmode)
   [(trap_if (match_operator 0 "noov_compare_operator"
             [(match_operand:DI 1 "compare_operand" "")
              (match_operand:DI 2 "arith_operand" "")])
-          (match_operand 3 ""))]
+          (match_operand 3 "arith_operand"))]
   "TARGET_ARCH64"
   "operands[1] = gen_compare_reg (operands[0]);
    if (GET_MODE (operands[1]) != CCmode && GET_MODE (operands[1]) != CCXmode)