gcc/
2014-08-27 David Malcolm <dmalcolm@redhat.com>
* rtl.h (JUMP_LABEL_AS_INSN): New.
From-SVN: r214607
+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
be decremented and possibly the label can be deleted. */
#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
goes through all the LABEL_REFs that jump to that label. The chain
eventually winds up at the CODE_LABEL: it is circular. */