diff options
author | Jan Hubicka <jh@suse.cz> | 2009-03-28 18:55:25 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2009-03-28 17:55:25 +0000 |
commit | fe89fbc56dd937c74ebfe7338fe785699386cb59 (patch) | |
tree | 71b5742a48b64212e619cde0a156cbe731404f0c /gcc/tree-eh.c | |
parent | b3bf8855c071b86fb3403f0d3e4d415702cb07ea (diff) | |
download | gcc-fe89fbc56dd937c74ebfe7338fe785699386cb59.zip gcc-fe89fbc56dd937c74ebfe7338fe785699386cb59.tar.gz gcc-fe89fbc56dd937c74ebfe7338fe785699386cb59.tar.bz2 |
dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
* dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
* tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
* function.h (rtl_data): Add nothrow flag.
* except.c (set_nothrow_function_flags): Use crtl->nothrow;
set DECL_NOTHROW for AVAILABLE functions.
From-SVN: r145202
Diffstat (limited to 'gcc/tree-eh.c')
-rw-r--r-- | gcc/tree-eh.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c index c789acb..c992f6d 100644 --- a/gcc/tree-eh.c +++ b/gcc/tree-eh.c @@ -2368,15 +2368,7 @@ stmt_could_throw_p (gimple stmt) if (code == GIMPLE_ASSIGN || code == GIMPLE_COND) return stmt_could_throw_1_p (stmt); else if (is_gimple_call (stmt)) - { - tree t = gimple_call_fndecl (stmt); - - /* Assume that calls to weak functions may trap. */ - if (!t || !DECL_P (t) || DECL_WEAK (t)) - return true; - - return (gimple_call_flags (stmt) & ECF_NOTHROW) == 0; - } + return (gimple_call_flags (stmt) & ECF_NOTHROW) == 0; else if (gimple_code (stmt) == GIMPLE_ASM) return (gimple_asm_volatile_p (stmt)); else |