+2014-08-28 David Malcolm <dmalcolm@redhat.com>
+
+ * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
+ (next_insn): Likewise.
+ * emit-rtl.c (next_insn): Likewise.
+ (previous_insn): Likewise.
+ * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
+ "insn" and "next" from rtx to rtx_insn *.
+ * config/picochip/picochip.c (picochip_reorg): Likewise for locals
+ "insn", "insn1", "vliw_start", "prologue_end_note",
+ "last_insn_in_packet".
+
2014-08-28 David Malcolm <dmalcolm@redhat.com>
* shrink-wrap.h (active_insn_between): Strengthen both params from
static void
remove_useless_addtr_insns (int check_notes)
{
- rtx insn;
+ rtx_insn *insn;
static int pass = 0;
/* This is fairly cheap, so always run it when optimizing. */
reverse the comparison & the branch to avoid add,tr insns. */
for (insn = get_insns (); insn; insn = next_insn (insn))
{
- rtx tmp, next;
+ rtx tmp;
+ rtx_insn *next;
/* Ignore anything that isn't an INSN. */
if (! NONJUMP_INSN_P (insn))
void
picochip_reorg (void)
{
- rtx insn, insn1, vliw_start = NULL_RTX;
+ rtx_insn *insn, *insn1, *vliw_start = NULL;
int vliw_insn_location = 0;
/* We are freeing block_for_insn in the toplev to keep compatibility
of VLIW packets. */
if (picochip_schedule_type == DFA_TYPE_SPEED)
{
- rtx prologue_end_note = NULL;
- rtx last_insn_in_packet = NULL;
+ rtx_insn *prologue_end_note = NULL;
+ rtx_insn *last_insn_in_packet = NULL;
for (insn = get_insns (); insn; insn = next_insn (insn))
{
of the sequence. */
rtx_insn *
-next_insn (rtx uncast_insn)
+next_insn (rtx_insn *insn)
{
- rtx_insn *insn = safe_as_a <rtx_insn *> (uncast_insn);
if (insn)
{
insn = NEXT_INSN (insn);
of the sequence. */
rtx_insn *
-previous_insn (rtx uncast_insn)
+previous_insn (rtx_insn *insn)
{
- rtx_insn *insn = safe_as_a <rtx_insn *> (uncast_insn);
if (insn)
{
insn = PREV_INSN (insn);
extern rtx_insn *make_insn_raw (rtx);
extern void add_function_usage_to (rtx, rtx);
extern rtx_call_insn *last_call_insn (void);
-extern rtx_insn *previous_insn (rtx);
-extern rtx_insn *next_insn (rtx);
+extern rtx_insn *previous_insn (rtx_insn *);
+extern rtx_insn *next_insn (rtx_insn *);
extern rtx_insn *prev_nonnote_insn (rtx);
extern rtx_insn *prev_nonnote_insn_bb (rtx);
extern rtx_insn *next_nonnote_insn (rtx);