2014-08-19 David Malcolm <dmalcolm@redhat.com>
+ * emit-rtl.h (get_insns): Strengthen return type from rtx to
+ rtx_insn *, adding a checked cast for now.
+ (get_last_insn): Likewise.
+
+2014-08-19 David Malcolm <dmalcolm@redhat.com>
+
* rtl.h (gen_label_rtx): Strengthen return type from rtx to
rtx_code_label *.
/* Return the first insn of the current sequence or current function. */
-static inline rtx
+static inline rtx_insn *
get_insns (void)
{
- return crtl->emit.x_first_insn;
+ rtx insn = crtl->emit.x_first_insn;
+ return safe_as_a <rtx_insn *> (insn);
}
/* Specify a new insn as the first in the chain. */
/* Return the last insn emitted in current sequence or current function. */
-static inline rtx
+static inline rtx_insn *
get_last_insn (void)
{
- return crtl->emit.x_last_insn;
+ rtx insn = crtl->emit.x_last_insn;
+ return safe_as_a <rtx_insn *> (insn);
}
/* Specify a new insn as the last in the chain. */