diff options
author | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2003-09-21 08:17:48 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2003-09-21 08:17:48 +0000 |
commit | 5cfc53563b5a8db2d08475d058be480894367183 (patch) | |
tree | c123406ad7e9e90e5fce7905e31e32346d1768ea /gcc/reorg.c | |
parent | ddd2d57e722237230da8eea70a2fcecb11bd0f81 (diff) | |
download | gcc-5cfc53563b5a8db2d08475d058be480894367183.zip gcc-5cfc53563b5a8db2d08475d058be480894367183.tar.gz gcc-5cfc53563b5a8db2d08475d058be480894367183.tar.bz2 |
re PR target/12301 (corruption in exception path, exception in returned expression)
PR target/12301
* reorg.c (stop_search_p): Return 1 for insns that can
throw internally.
From-SVN: r71620
Diffstat (limited to 'gcc/reorg.c')
-rw-r--r-- | gcc/reorg.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/reorg.c b/gcc/reorg.c index 3d7159d..6a13fe0 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: |