2001-03-27 Richard Henderson <rth@redhat.com>
+ * except.c (can_throw_internal): Rename from can_throw.
+ * except.h, resource.c: Update references.
+
* integrate.c (copy_insn_list): Use returnjump_p.
(copy_insn_notes): Recurse for CALL_PLACEHOLDER.
/* Determine if the given INSN can throw an exception. */
int
-can_throw (insn)
+can_throw_internal (insn)
rtx insn;
{
if (GET_CODE (insn) == INSN
return 1;
for (insn = get_insns (); insn; insn = NEXT_INSN (insn))
- if (can_throw (insn))
+ if (can_throw_internal (insn))
return 0;
for (insn = current_function_epilogue_delay_list; insn;
insn = XEXP (insn, 1))
- if (can_throw (insn))
+ if (can_throw_internal (insn))
return 0;
return 1;
region can throw.
Regions are removed if they cannot possibly catch an exception.
- This is determined by invoking can_throw on each insn within the
- region; if can_throw returns true for any of the instructions, the
+ This is determined by invoking can_throw_internal on each insn within the
+ region; if can_throw_internal returns true for any of the instructions, the
region can catch an exception, since there is an insn within the
region that is capable of throwing an exception.
&& NOTE_LINE_NUMBER (insn) == NOTE_INSN_EH_REGION_END))
{
/* If anything can throw, we can't remove the region. */
- if (delete && can_throw (insn))
+ if (delete && can_throw_internal (insn))
{
delete = 0;
}
/* Determine if the given INSN can throw an exception. */
-extern int can_throw PARAMS ((rtx));
+extern int can_throw_internal PARAMS ((rtx));
/* Return nonzero if nothing in this function can throw. */
know where we might end up next. That means that we have to
assume that whatever we have already marked as live really is
live. */
- if (can_throw (insn))
+ if (can_throw_internal (insn))
break;
switch (GET_CODE (insn))