diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-08-27 20:44:45 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-08-27 20:44:45 +0000 |
commit | 710427e290148e6f4739cb56b4ce5967addbfc38 (patch) | |
tree | a664c38711d9eae0324aaca027259c9013574499 | |
parent | d7ac0a6aa62ac662027d796ab0cdeaaafcec0fa1 (diff) | |
download | gcc-710427e290148e6f4739cb56b4ce5967addbfc38.zip gcc-710427e290148e6f4739cb56b4ce5967addbfc38.tar.gz gcc-710427e290148e6f4739cb56b4ce5967addbfc38.tar.bz2 |
Add JUMP_LABEL_AS_INSN
gcc/
2014-08-27 David Malcolm <dmalcolm@redhat.com>
* rtl.h (JUMP_LABEL_AS_INSN): New.
From-SVN: r214607
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/rtl.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 11fba83..4f4c2f8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 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 rtx_expr_list **. (alloc_EXPR_LIST): Strengthen return type from rtx to @@ -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 <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. */ |