aboutsummaryrefslogtreecommitdiff
path: root/gcc/except.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>2000-03-10 11:12:53 -0800
committerRichard Henderson <rth@gcc.gnu.org>2000-03-10 11:12:53 -0800
commitbee249aac128cdabd148e7dc007c7fba9c34a7fa (patch)
treee495ce928015e4eb972d4a5b5e632bcbfc24a90d /gcc/except.c
parent602f9606d6ba9cdbf18d0e4d538aed75d99c220a (diff)
downloadgcc-bee249aac128cdabd148e7dc007c7fba9c34a7fa.zip
gcc-bee249aac128cdabd148e7dc007c7fba9c34a7fa.tar.gz
gcc-bee249aac128cdabd148e7dc007c7fba9c34a7fa.tar.bz2
except.c (can_throw): Use INTVAL on a CONST_INT.
* except.c (can_throw): Use INTVAL on a CONST_INT. (reachable_handlers): Likewise. * flow.c (count_basic_blocks, find_basic_blocks_1): Likewise. From-SVN: r32471
Diffstat (limited to 'gcc/except.c')
-rw-r--r--gcc/except.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/except.c b/gcc/except.c
index e08ada2..d2c3d25 100644
--- a/gcc/except.c
+++ b/gcc/except.c
@@ -2629,7 +2629,7 @@ can_throw (insn)
if (GET_CODE (insn) == CALL_INSN)
{
rtx note = find_reg_note (insn, REG_EH_REGION, NULL_RTX);
- if (!note || XINT (XEXP (note, 0), 0) > 0)
+ if (!note || INTVAL (XEXP (note, 0), 0) > 0)
return 1;
}
@@ -3390,7 +3390,7 @@ reachable_handlers (block, info, insn, handlers)
note = find_reg_note (insn, REG_EH_REGION, NULL_RTX);
if (note)
{
- int b = XINT (XEXP (note, 0), 0);
+ int b = INTVAL (XEXP (note, 0), 0);
if (b <= 0)
index = 0;
else