diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-08-28 18:59:13 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-08-28 18:59:13 +0000 |
commit | e6eda746185997c7c42ee8691761cb7c3c7d0ce1 (patch) | |
tree | 505bd8408677649e55caaf6edf746f1bd1cfe859 /gcc/config/frv | |
parent | f8f0516ef64cf62bdbba30cee5055685c6f9b68a (diff) | |
download | gcc-e6eda746185997c7c42ee8691761cb7c3c7d0ce1.zip gcc-e6eda746185997c7c42ee8691761cb7c3c7d0ce1.tar.gz gcc-e6eda746185997c7c42ee8691761cb7c3c7d0ce1.tar.bz2 |
Make SET_NEXT_INSN/SET_PREV_INSN require an rtx_insn
gcc/
2014-08-28 David Malcolm <dmalcolm@redhat.com>
* rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
(SET_NEXT_INSN): Likewise.
(gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
* config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
to split out the SEQUENCE from local "bundle", strengthening the
latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
Strengthen locals "t" and "insn" from rtx to rtx_insn *.
(c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
and the type of the elements of the "slot" array from rtx to
rtx_insn *.
(reorg_split_calls): Likewise for locals "insn" and "next", and
the type of the elements of the "slot" array.
* config/frv/frv.c (frv_nops): Likewise for the elements of this
array.
(frv_function_prologue): Likewise for locals "insn", "next",
"last_call".
(frv_register_nop): Introduce a local "nop_insn" to be the
rtx_insn * containing rtx "nop".
* config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
used as an insn and sometimes as a pattern, so rename it to
"core_insn_or_pat", and introduce local rtx_insn * "core_insn",
using it where dealing with the core insn.
* config/picochip/picochip.c (reorder_var_tracking_notes):
Strengthen locals "insn", "next", "last_insn", "queue",
"next_queue", "prev" from rtx to rtx_insn *.
* emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
the second param is an rtx_insn ** rather than an rtx **.
(link_insn_into_chain): Strengthen locals "seq" and "sequence"
from rtx to rtx_sequence *, and introduce local named "sequence",
using methods of rtx_sequence to clarify the code.
(remove_insn): Introduce local rtx_sequence * named "sequence" and
use its methods.
(emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
Rename param "after" to "uncast_after", reintroducing "after" as a
local rtx_insn * with a checked cast.
(emit_pattern_after_noloc): Rename param "after" to "uncast_after",
reintroducing "after" as a local rtx_insn * with a checked cast.
Strengthen local "last" from rtx to rtx_insn * and remove the
now-redundant checked casts.
(copy_delay_slot_insn): Strengthen return type and param from rtx
to rtx_insn *.
* haifa-sched.c (reemit_notes): Strengthen params "insn" and
"last" from rtx to rtx_insn *.
From-SVN: r214685
Diffstat (limited to 'gcc/config/frv')
-rw-r--r-- | gcc/config/frv/frv.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/config/frv/frv.c b/gcc/config/frv/frv.c index 1ed8f74..ac31794 100644 --- a/gcc/config/frv/frv.c +++ b/gcc/config/frv/frv.c @@ -105,7 +105,7 @@ static unsigned int frv_type_to_unit[TYPE_UNKNOWN + 1]; /* An array of dummy nop INSNs, one for each type of nop that the target supports. */ -static GTY(()) rtx frv_nops[NUM_NOP_PATTERNS]; +static GTY(()) rtx_insn *frv_nops[NUM_NOP_PATTERNS]; /* The number of nop instructions in frv_nops[]. */ static unsigned int frv_num_nops; @@ -1405,7 +1405,7 @@ frv_function_contains_far_jump (void) static void frv_function_prologue (FILE *file, HOST_WIDE_INT size ATTRIBUTE_UNUSED) { - rtx insn, next, last_call; + rtx_insn *insn, *next, *last_call; /* If no frame was created, check whether the function uses a call instruction to implement a far jump. If so, save the link in gr3 and @@ -1415,7 +1415,7 @@ frv_function_prologue (FILE *file, HOST_WIDE_INT size ATTRIBUTE_UNUSED) a stack frame. */ if (frv_stack_info ()->total_size == 0 && frv_function_contains_far_jump ()) { - rtx insn; + rtx_insn *insn; /* Just to check that the above comment is true. */ gcc_assert (!df_regs_ever_live_p (GPR_FIRST + 3)); @@ -1450,7 +1450,7 @@ frv_function_prologue (FILE *file, HOST_WIDE_INT size ATTRIBUTE_UNUSED) /* Locate CALL_ARG_LOCATION notes that have been misplaced and move them back to where they should be located. */ - last_call = NULL_RTX; + last_call = NULL; for (insn = get_insns (); insn; insn = next) { next = NEXT_INSN (insn); @@ -8161,10 +8161,10 @@ frv_reorg_packet (void) static void frv_register_nop (rtx nop) { - nop = make_insn_raw (nop); - SET_NEXT_INSN (nop) = 0; - SET_PREV_INSN (nop) = 0; - frv_nops[frv_num_nops++] = nop; + rtx_insn *nop_insn = make_insn_raw (nop); + SET_NEXT_INSN (nop_insn) = 0; + SET_PREV_INSN (nop_insn) = 0; + frv_nops[frv_num_nops++] = nop_insn; } /* Implement TARGET_MACHINE_DEPENDENT_REORG. Divide the instructions |