Replace PREV_INSN et al macros with functions
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 19 Aug 2014 14:47:55 +0000 (14:47 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Tue, 19 Aug 2014 14:47:55 +0000 (14:47 +0000)
commit6306c300db20a6857e509a440321ec6a33230314
tree589ac48e7d95e2fa8ff1134994862a12df1b34c4
parentc77935ee29336399ab6318e912baa174e243654a
Replace PREV_INSN et al macros with functions

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

* rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
the return type from rtx to rtx_insn *,  which will enable various
conversions in followup patches.  For now this is is done by a
checked cast.
(NEXT_INSN): Likewise.
(SET_PREV_INSN): Convert to an inline function.  This is intended
for use as an lvalue, and so returns an rtx& to allow in-place
modification.
(SET_NEXT_INSN): Likewise.

From-SVN: r214152
gcc/ChangeLog
gcc/rtl.h