From: David Malcolm Date: Wed, 27 Aug 2014 20:44:45 +0000 (+0000) Subject: Add JUMP_LABEL_AS_INSN X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=710427e290148e6f4739cb56b4ce5967addbfc38;p=gcc.git Add JUMP_LABEL_AS_INSN gcc/ 2014-08-27 David Malcolm * rtl.h (JUMP_LABEL_AS_INSN): New. From-SVN: r214607 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 11fba83a063..4f4c2f8d473 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2014-08-27 David Malcolm + + * rtl.h (JUMP_LABEL_AS_INSN): New. + 2014-08-27 David Malcolm * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to diff --git a/gcc/rtl.h b/gcc/rtl.h index 4dcbe8625d0..671d064c7f0 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -1658,6 +1658,11 @@ enum label_kind 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 (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. */