Strengthen fields in struct sequence_stack and struct emit_status
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Aug 2014 19:20:16 +0000 (19:20 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 26 Aug 2014 19:20:16 +0000 (19:20 +0000)
commitb644802a73197f5dc1297137e58715b8b153984b
tree58b485026a928d9acd78535ac23a2ccb7b7078c2
parent3e75e92b20bd87818b4eb9916acfab125f6dbb47
Strengthen fields in struct sequence_stack and struct emit_status

gcc/
2014-08-26  David Malcolm  <dmalcolm@redhat.com>

* function.h (struct sequence_stack): Strengthen fields "first"
and "last" from rtx to rtx_insn *.
(struct emit_status): Likewise for fields "x_first_insn" and
"x_last_insn".

* emit-rtl.h (get_insns): Remove now-redundant checked cast.
(set_first_insn): Add checked cast.
(get_last_insn): Remove now-redundant checked cast.
(set_last_insn): Add checked cast.

* config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
"saved_first" and "saved_last" from rtx to rtx_insn *.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214537 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/m32c/m32c.c
gcc/emit-rtl.h
gcc/function.h