Commit 710427e2 by David Malcolm Committed by David Malcolm

Add JUMP_LABEL_AS_INSN

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

	* rtl.h (JUMP_LABEL_AS_INSN): New.

From-SVN: r214607
parent d7ac0a6a
2014-08-27 David Malcolm <dmalcolm@redhat.com> 2014-08-27 David Malcolm <dmalcolm@redhat.com>
* rtl.h (JUMP_LABEL_AS_INSN): New.
2014-08-27 David Malcolm <dmalcolm@redhat.com>
* rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
rtx_expr_list **. rtx_expr_list **.
(alloc_EXPR_LIST): Strengthen return type from rtx to (alloc_EXPR_LIST): Strengthen return type from rtx to
......
...@@ -1658,6 +1658,11 @@ enum label_kind ...@@ -1658,6 +1658,11 @@ enum label_kind
be decremented and possibly the label can be deleted. */ be decremented and possibly the label can be deleted. */
#define JUMP_LABEL(INSN) XCEXP (INSN, 7, JUMP_INSN) #define JUMP_LABEL(INSN) XCEXP (INSN, 7, JUMP_INSN)
inline rtx_insn *JUMP_LABEL_AS_INSN (rtx_insn *insn)
{
return safe_as_a <rtx_insn *> (JUMP_LABEL (insn));
}
/* Once basic blocks are found, each CODE_LABEL starts a chain that /* Once basic blocks are found, each CODE_LABEL starts a chain that
goes through all the LABEL_REFs that jump to that label. The chain goes through all the LABEL_REFs that jump to that label. The chain
eventually winds up at the CODE_LABEL: it is circular. */ eventually winds up at the CODE_LABEL: it is circular. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment