diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-09 21:49:44 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-09 21:49:44 +0000 |
commit | 827c9a9ee6cd1366ee336eb9f48a6b0fa70e7e16 (patch) | |
tree | 94bae21be77c1e10d071c24ca7c48b99738ab87d /gcc/except.c | |
parent | 0d290c9d17fe55e9c70da316068fd3fb2d0ab72d (diff) | |
download | gcc-827c9a9ee6cd1366ee336eb9f48a6b0fa70e7e16.tar.gz |
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: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160507 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/except.c')
-rw-r--r-- | gcc/except.c | 2 |
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) |