summaryrefslogtreecommitdiff
path: root/gcc/gcse.c
diff options
context:
space:
mode:
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2004-04-28 14:34:51 +0000
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2004-04-28 14:34:51 +0000
commitc9ba40558510aeee8814a7f907222fe0b0cfd377 (patch)
tree62084e01f90563dcfc8da8e1cdb31d06b01375e3 /gcc/gcse.c
parent7752d341b1baac9b814aa6d9ca4da724f4863f71 (diff)
downloadgcc-c9ba40558510aeee8814a7f907222fe0b0cfd377.tar.gz
* gcse.c (find_moveable_store): Do not accept store insns with
REG_EH_REGION note. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81249 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r--gcc/gcse.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c
index 88f94f6802e..7442faab520 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -7175,6 +7175,11 @@ find_moveable_store (rtx insn, int *regs_set_before, int *regs_set_after)
if (flag_non_call_exceptions && may_trap_p (dest))
return;
+ /* Even if the destination cannot trap, the source may. In this case we'd
+ need to handle updating the REG_EH_REGION note. */
+ if (find_reg_note (insn, REG_EH_REGION, NULL_RTX))
+ return;
+
ptr = ldst_entry (dest);
if (!ptr->pattern_regs)
ptr->pattern_regs = extract_mentioned_regs (dest);