]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
remove cast from emit_libcall_block
authorTrevor Saunders <tbsaunde+gcc@tbsaunde.org>
Mon, 21 Nov 2016 06:16:03 +0000 (06:16 +0000)
committerTrevor Saunders <tbsaunde@gcc.gnu.org>
Mon, 21 Nov 2016 06:16:03 +0000 (06:16 +0000)
gcc/ChangeLog:

2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

* optabs.c (emit_libcall_block): Change argument type to
rtx_insn *.
* optabs.h: Adjust prototype.

From-SVN: r242654

gcc/ChangeLog
gcc/optabs.c
gcc/optabs.h

index 9b6ef79c701d9702d5ea465019868198474d5661..226bf3e9eb9611a69082f649f32f77443fe208e2 100644 (file)
@@ -1,3 +1,9 @@
+2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
+
+       * optabs.c (emit_libcall_block): Change argument type to
+       rtx_insn *.
+       * optabs.h: Adjust prototype.
+
 2016-11-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
 
        * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
index b135c9b3cc2cc8d8f399d7bbbd7f6e20eddaf02b..bee1a21dfb67899a63e24f01398634a43ba60484 100644 (file)
@@ -3681,10 +3681,9 @@ emit_libcall_block_1 (rtx_insn *insns, rtx target, rtx result, rtx equiv,
 }
 
 void
-emit_libcall_block (rtx insns, rtx target, rtx result, rtx equiv)
+emit_libcall_block (rtx_insn *insns, rtx target, rtx result, rtx equiv)
 {
-  emit_libcall_block_1 (safe_as_a <rtx_insn *> (insns),
-                       target, result, equiv, false);
+  emit_libcall_block_1 (insns, target, result, equiv, false);
 }
 \f
 /* Nonzero if we can perform a comparison of mode MODE straightforwardly.
index 03fd94d1ccaa7a6723cfb2f69e13b407d76aa552..9ab8cb1a905c36e22065c8770e464e6eef846da6 100644 (file)
@@ -224,7 +224,7 @@ extern bool maybe_emit_unop_insn (enum insn_code, rtx, rtx, enum rtx_code);
 extern void emit_unop_insn (enum insn_code, rtx, rtx, enum rtx_code);
 
 /* Emit code to make a call to a constant function or a library call.  */
-extern void emit_libcall_block (rtx, rtx, rtx, rtx);
+extern void emit_libcall_block (rtx_insn *, rtx, rtx, rtx);
 
 /* The various uses that a comparison can have; used by can_compare_p:
    jumps, conditional moves, store flag operations.  */