From: dmalcolm Date: Wed, 27 Aug 2014 20:44:45 +0000 (+0000) Subject: Add JUMP_LABEL_AS_INSN X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dc7da958de5c1302bf95c9442cc2fc81555ad4f;p=thirdparty%2Fgcc.git Add JUMP_LABEL_AS_INSN gcc/ 2014-08-27 David Malcolm * rtl.h (JUMP_LABEL_AS_INSN): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214607 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 11fba83a0638..4f4c2f8d4731 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 4dcbe8625d09..671d064c7f09 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. */