diff options
author | Trevor Saunders <tbsaunde+gcc@tbsaunde.org> | 2016-11-21 06:16:03 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2016-11-21 06:16:03 +0000 |
commit | f087c7739f5eec0f36e198ae32c1a88db710c07d (patch) | |
tree | 6876404ca98de9c5c307c2defcb46bfc576ec4a6 | |
parent | a29f6a2be31ce70d96c1d9337a8b79bc19aca76b (diff) | |
download | gcc-f087c7739f5eec0f36e198ae32c1a88db710c07d.zip gcc-f087c7739f5eec0f36e198ae32c1a88db710c07d.tar.gz gcc-f087c7739f5eec0f36e198ae32c1a88db710c07d.tar.bz2 |
remove cast from emit_libcall_block
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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/optabs.c | 5 | ||||
-rw-r--r-- | gcc/optabs.h | 2 |
3 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9b6ef79..226bf3e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 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 *. (fixup_reorder_chain): Adjust. * cfgrtl.h: Adjust prototype. diff --git a/gcc/optabs.c b/gcc/optabs.c index b135c9b..bee1a21 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -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); } /* Nonzero if we can perform a comparison of mode MODE straightforwardly. diff --git a/gcc/optabs.h b/gcc/optabs.h index 03fd94d..9ab8cb1 100644 --- a/gcc/optabs.h +++ b/gcc/optabs.h @@ -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. */ |