aboutsummaryrefslogtreecommitdiff
path: root/gcc/except.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2010-06-09 21:49:44 +0000
committerEric Botcazou <ebotcazou@adacore.com>2010-06-09 21:49:44 +0000
commit5a729f0bb3c38347031c4d07fcd124aa5a77be18 (patch)
tree94bae21be77c1e10d071c24ca7c48b99738ab87d /gcc/except.c
parent0fc002902e350d9587ab08fd506a723d46182fc5 (diff)
PR rtl-optimization/42461
* dce.c (deletable_insn_p): Return true for const or pure calls again. * except.c (insn_could_throw_p): Return false if !flag_exceptions. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@160507 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/except.c')
-rw-r--r--gcc/except.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/except.c b/gcc/except.c
index cb4d8058ba5..16a02473a12 100644
--- a/gcc/except.c
+++ b/gcc/except.c
@@ -1617,6 +1617,8 @@ make_reg_eh_region_note_nothrow_nononlocal (rtx insn)
bool
insn_could_throw_p (const_rtx insn)
{
+ if (!flag_exceptions)
+ return false;
if (CALL_P (insn))
return true;
if (INSN_P (insn) && cfun->can_throw_non_call_exceptions)