summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-28 07:29:21 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-28 07:29:21 +0000
commit9223d17f740f1d8a3d476ed466b36f843832db6c (patch)
treeb7be0846490b2fb080cf8c67761e72a29abd8db6
parent955a1beb3a970de41ee2603fd09ca81324c70fa9 (diff)
downloadppe42-gcc-9223d17f740f1d8a3d476ed466b36f843832db6c.tar.gz
ppe42-gcc-9223d17f740f1d8a3d476ed466b36f843832db6c.zip
* except.c (can_throw_internal): Rename from can_throw.
* except.h, resource.c: Update references. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40913 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/except.c12
-rw-r--r--gcc/except.h2
-rw-r--r--gcc/resource.c2
4 files changed, 11 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 41d161910b9..d5164f8b5c9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
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.
diff --git a/gcc/except.c b/gcc/except.c
index 04e3af77154..bc865552554 100644
--- a/gcc/except.c
+++ b/gcc/except.c
@@ -2690,7 +2690,7 @@ free_eh_status (f)
/* Determine if the given INSN can throw an exception. */
int
-can_throw (insn)
+can_throw_internal (insn)
rtx insn;
{
if (GET_CODE (insn) == INSN
@@ -2728,11 +2728,11 @@ nothrow_function_p ()
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;
@@ -2744,8 +2744,8 @@ nothrow_function_p ()
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.
@@ -2784,7 +2784,7 @@ scan_region (insn, n, delete_outer)
&& 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;
}
diff --git a/gcc/except.h b/gcc/except.h
index fadbb4b3f26..2b281bbe5f6 100644
--- a/gcc/except.h
+++ b/gcc/except.h
@@ -442,7 +442,7 @@ extern rtx exception_handler_labels;
/* 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. */
diff --git a/gcc/resource.c b/gcc/resource.c
index de1189d2b3b..0b3a892ce2c 100644
--- a/gcc/resource.c
+++ b/gcc/resource.c
@@ -452,7 +452,7 @@ find_dead_or_set_registers (target, res, jump_target, jump_count, set, needed)
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))
OpenPOWER on IntegriCloud