aboutsummaryrefslogtreecommitdiff
path: root/gcc/except.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-12-14 17:53:57 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2009-12-14 17:53:57 +0100
commit20cdc2be22a6e32fd6a0fbedae32473e3698961a (patch)
treec56a297fcbcb5b2a3c120a9cbdc79b0ad1dc5625 /gcc/except.c
parent7cb792f51087a104ac286ca9483c25849e437733 (diff)
downloadgcc-20cdc2be22a6e32fd6a0fbedae32473e3698961a.zip
gcc-20cdc2be22a6e32fd6a0fbedae32473e3698961a.tar.gz
gcc-20cdc2be22a6e32fd6a0fbedae32473e3698961a.tar.bz2
cgraph.h (cgraph_set_nothrow_flag, [...]): New prototypes.
* cgraph.h (cgraph_set_nothrow_flag, cgraph_set_readonly_flag, cgraph_set_pure_flag, cgraph_set_looping_const_or_pure_flag): New prototypes. * cgraph.c (cgraph_set_nothrow_flag, cgraph_set_readonly_flag, cgraph_set_pure_flag, cgraph_set_looping_const_or_pure_flag): New functions. * except.h (set_nothrow_function_flags): Remove prototype. * except.c (set_nothrow_function_flags): Use cgraph_set_nothrow_flag. Make static. * ipa-pure-const.c (propagate): Use cgraph_set_nothrow_flag, cgraph_set_readonly_flag, cgraph_set_pure_flag and cgraph_set_looping_const_or_pure_flag. (local_pure_const): Likewise. From-SVN: r155220
Diffstat (limited to 'gcc/except.c')
-rw-r--r--gcc/except.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/except.c b/gcc/except.c
index 572aad0..10b547d 100644
--- a/gcc/except.c
+++ b/gcc/except.c
@@ -1835,7 +1835,7 @@ can_nonlocal_goto (const_rtx insn)
/* Set TREE_NOTHROW and crtl->all_throwers_are_sibcalls. */
-unsigned int
+static unsigned int
set_nothrow_function_flags (void)
{
rtx insn;
@@ -1892,7 +1892,7 @@ set_nothrow_function_flags (void)
struct cgraph_edge *e;
for (e = node->callers; e; e = e->next_caller)
e->can_throw_external = false;
- TREE_NOTHROW (current_function_decl) = 1;
+ cgraph_set_nothrow_flag (node, true);
if (dump_file)
fprintf (dump_file, "Marking function nothrow: %s\n\n",