summaryrefslogtreecommitdiff
path: root/gcc/except.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-10 19:12:53 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-10 19:12:53 +0000
commit3e59bcee66b7ff68b54f6426f2ebc655d0f010ac (patch)
treee495ce928015e4eb972d4a5b5e632bcbfc24a90d /gcc/except.c
parent900c10453047b9f0166459d8a8c397b8467c5022 (diff)
downloadgcc-3e59bcee66b7ff68b54f6426f2ebc655d0f010ac.tar.gz
* except.c (can_throw): Use INTVAL on a CONST_INT.
(reachable_handlers): Likewise. * flow.c (count_basic_blocks, find_basic_blocks_1): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32471 138bc75d-0d04-0410-961f-82ee72b054a4
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 e08ada28456..d2c3d251719 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