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
This commit is contained in:
parent
602f9606d6
commit
bee249aac1
|
@ -1,3 +1,9 @@
|
||||||
|
2000-03-10 Richard Henderson <rth@cygnus.com>
|
||||||
|
|
||||||
|
* except.c (can_throw): Use INTVAL on a CONST_INT.
|
||||||
|
(reachable_handlers): Likewise.
|
||||||
|
* flow.c (count_basic_blocks, find_basic_blocks_1): Likewise.
|
||||||
|
|
||||||
2000-03-10 Andreas Jaeger <aj@suse.de>
|
2000-03-10 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
* config/mips/linux.h: Undefine MD_EXEC_PREFIX and
|
* config/mips/linux.h: Undefine MD_EXEC_PREFIX and
|
||||||
|
|
|
@ -2629,7 +2629,7 @@ can_throw (insn)
|
||||||
if (GET_CODE (insn) == CALL_INSN)
|
if (GET_CODE (insn) == CALL_INSN)
|
||||||
{
|
{
|
||||||
rtx note = find_reg_note (insn, REG_EH_REGION, NULL_RTX);
|
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;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3390,7 +3390,7 @@ reachable_handlers (block, info, insn, handlers)
|
||||||
note = find_reg_note (insn, REG_EH_REGION, NULL_RTX);
|
note = find_reg_note (insn, REG_EH_REGION, NULL_RTX);
|
||||||
if (note)
|
if (note)
|
||||||
{
|
{
|
||||||
int b = XINT (XEXP (note, 0), 0);
|
int b = INTVAL (XEXP (note, 0), 0);
|
||||||
if (b <= 0)
|
if (b <= 0)
|
||||||
index = 0;
|
index = 0;
|
||||||
else
|
else
|
||||||
|
|
|
@ -466,7 +466,7 @@ count_basic_blocks (f)
|
||||||
if (code == CALL_INSN)
|
if (code == CALL_INSN)
|
||||||
{
|
{
|
||||||
rtx note = find_reg_note (insn, REG_EH_REGION, NULL_RTX);
|
rtx note = find_reg_note (insn, REG_EH_REGION, NULL_RTX);
|
||||||
int region = (note ? XWINT (XEXP (note, 0), 0) : 1);
|
int region = (note ? INTVAL (XEXP (note, 0), 0) : 1);
|
||||||
prev_call = insn;
|
prev_call = insn;
|
||||||
call_had_abnormal_edge = 0;
|
call_had_abnormal_edge = 0;
|
||||||
|
|
||||||
|
@ -540,7 +540,7 @@ find_basic_blocks_1 (f)
|
||||||
{
|
{
|
||||||
/* Record whether this call created an edge. */
|
/* Record whether this call created an edge. */
|
||||||
rtx note = find_reg_note (insn, REG_EH_REGION, NULL_RTX);
|
rtx note = find_reg_note (insn, REG_EH_REGION, NULL_RTX);
|
||||||
int region = (note ? XWINT (XEXP (note, 0), 0) : 1);
|
int region = (note ? INTVAL (XEXP (note, 0), 0) : 1);
|
||||||
call_has_abnormal_edge = 0;
|
call_has_abnormal_edge = 0;
|
||||||
|
|
||||||
/* If there is an EH region or rethrow, we have an edge. */
|
/* If there is an EH region or rethrow, we have an edge. */
|
||||||
|
|
Loading…
Reference in New Issue