diff options
author | Jan Hubicka <jh@suse.cz> | 2009-04-18 20:39:52 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2009-04-18 18:39:52 +0000 |
commit | 2505c5edcac3fbc0a39ad74c63bab1534ee6e491 (patch) | |
tree | 605c8e1d928935149f9367d15c77d8c439de199f /gcc/cgraph.h | |
parent | c7f9c0b9835fc77208bddffec0ba71d33fb425fa (diff) | |
download | gcc-2505c5edcac3fbc0a39ad74c63bab1534ee6e491.zip gcc-2505c5edcac3fbc0a39ad74c63bab1534ee6e491.tar.gz gcc-2505c5edcac3fbc0a39ad74c63bab1534ee6e491.tar.bz2 |
cgraph.c (cgraph_make_edge, [...]): Set nothrow flag.
* cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
Set nothrow flag.
* cgraph.h (struct function): Reduce loop_nest to 30 bits; add
can_throw_external flag.
* ipa-reference.c (ipa_utils_reduced_inorder): Update call.
* ipa-pure-const.c (ignore_edge): New function.
(propagate): Compute order for NOTHROW computation; set NOTHROWs
only over can_throw_external edges.
(local_pure_const): Add nothrow flag.
* ipa-utils.c (searchc): Add ignore_edge callback.
(ipa_utils_reduced_inorder): Add ignore_edge callback.
* ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
(set_nothrow_function_flags): Update cgraph.
* tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
From-SVN: r146322
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index aba0e59..347653f 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -216,9 +216,11 @@ struct cgraph_edge GTY((chain_next ("%h.next_caller"), chain_prev ("%h.prev_call per function call. The range is 0 to CGRAPH_FREQ_MAX. */ int frequency; /* Depth of loop nest, 1 means no loop nest. */ - unsigned int loop_nest : 31; + unsigned int loop_nest : 30; /* Whether this edge describes a call that was originally indirect. */ unsigned int indirect_call : 1; + /* Can this call throw externally? */ + unsigned int can_throw_external : 1; /* Unique id of the edge. */ int uid; }; |