diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-28 06:23:39 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-28 06:23:39 +0000 |
commit | cc6f772a5664a928170c66a4d06fa521bfcbb112 (patch) | |
tree | 98bf250071034b5b6fa26a8b408fc11f40c97357 /gcc/jump.c | |
parent | 15da9a293429e13209bebe021b3e942de5616048 (diff) | |
download | gcc-cc6f772a5664a928170c66a4d06fa521bfcbb112.tar.gz |
gcc/
* jump.c (eh_returnjump_p_1): Delete.
(eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
Remove handling of null rtxes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214644 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/jump.c')
-rw-r--r-- | gcc/jump.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/gcc/jump.c b/gcc/jump.c index 2a0bea79503..05c8138db56 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -953,18 +953,17 @@ returnjump_p (rtx insn) /* Return true if INSN is a (possibly conditional) return insn. */ -static int -eh_returnjump_p_1 (rtx *loc, void *data ATTRIBUTE_UNUSED) -{ - return *loc && GET_CODE (*loc) == EH_RETURN; -} - int eh_returnjump_p (rtx insn) { - if (!JUMP_P (insn)) - return 0; - return for_each_rtx (&PATTERN (insn), eh_returnjump_p_1, NULL); + if (JUMP_P (insn)) + { + subrtx_iterator::array_type array; + FOR_EACH_SUBRTX (iter, array, PATTERN (insn), NONCONST) + if (GET_CODE (*iter) == EH_RETURN) + return true; + } + return false; } /* Return true if INSN is a jump that only transfers control and |