Index: gcc/ChangeLog =================================================================== --- gcc/ChangeLog (revision 214179) +++ gcc/ChangeLog (revision 214180) @@ -1,5 +1,11 @@ 2014-08-19 David Malcolm + * 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 + * rtl.h (gen_label_rtx): Strengthen return type from rtx to rtx_code_label *. Index: gcc/emit-rtl.h =================================================================== --- gcc/emit-rtl.h (revision 214179) +++ gcc/emit-rtl.h (revision 214180) @@ -77,10 +77,11 @@ /* 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 (insn); } /* Specify a new insn as the first in the chain. */ @@ -94,10 +95,11 @@ /* 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 (insn); } /* Specify a new insn as the last in the chain. */