summaryrefslogtreecommitdiff
path: root/gcc/mode-switching.c
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-31 15:01:37 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-31 15:01:37 +0000
commit1915b15f78dba46b19ab76aab06a03db5cc1825d (patch)
treea8997046d112f6cbfa6e8aa9caf9d79a4a494b61 /gcc/mode-switching.c
parentff512fca057a160335c0160c498fb74975d41111 (diff)
downloadgcc-1915b15f78dba46b19ab76aab06a03db5cc1825d.tar.gz
gcc/
* mode-switching.c (create_pre_exit): Don't search past calls. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127092 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/mode-switching.c')
-rw-r--r--gcc/mode-switching.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/mode-switching.c b/gcc/mode-switching.c
index 9667d965a27..dc05208d3cd 100644
--- a/gcc/mode-switching.c
+++ b/gcc/mode-switching.c
@@ -245,6 +245,17 @@ create_pre_exit (int n_entities, int *entity_map, const int *num_modes)
if (INSN_P (return_copy))
{
+ /* When using SJLJ exceptions, the call to the
+ unregister function is inserted between the
+ clobber of the return value and the copy.
+ We do not want to split the block before this
+ or any other call; if we have not found the
+ copy yet, the copy must have been deleted. */
+ if (CALL_P (return_copy))
+ {
+ short_block = 1;
+ break;
+ }
return_copy_pat = PATTERN (return_copy);
switch (GET_CODE (return_copy_pat))
{