summaryrefslogtreecommitdiff
path: root/gcc/reorg.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-21 08:17:48 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2003-09-21 08:17:48 +0000
commit9ef1d65ae38b026784e9b98bf4cf23754b05ef0c (patch)
treec123406ad7e9e90e5fce7905e31e32346d1768ea /gcc/reorg.c
parent9bc3739ff5286405148970f7ec7db806dc17440d (diff)
downloadgcc-9ef1d65ae38b026784e9b98bf4cf23754b05ef0c.tar.gz
PR target/12301
* reorg.c (stop_search_p): Return 1 for insns that can throw internally. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71620 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reorg.c')
-rw-r--r--gcc/reorg.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/reorg.c b/gcc/reorg.c
index 3d7159daa7c..6a13fe0634b 100644
--- a/gcc/reorg.c
+++ b/gcc/reorg.c
@@ -235,6 +235,12 @@ stop_search_p (rtx insn, int labels_p)
if (insn == 0)
return 1;
+ /* If the insn can throw an exception that is caught within the function,
+ it may effectively perform a jump from the viewpoint of the function.
+ Therefore act like for a jump. */
+ if (can_throw_internal (insn))
+ return 1;
+
switch (GET_CODE (insn))
{
case NOTE: