diff options
author | Jan Hubicka <jh@suse.cz> | 2010-05-30 14:19:15 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-05-30 12:19:15 +0000 |
commit | d56026c21e98183dd543b799ba3a1e1adea9a22c (patch) | |
tree | 95c8141edd637bb1eaf3d0b8672e60d8c734e72b /gcc/cgraph.h | |
parent | 17f01631e1b9191081968fdeb7b2b06951342a01 (diff) | |
download | gcc-d56026c21e98183dd543b799ba3a1e1adea9a22c.tar.gz |
cgraph.h (cgraph_node_cannot_return, [...]): New functions.
* cgraph.h (cgraph_node_cannot_return,
cgraph_edge_cannot_lead_to_return): New functions.
* cgraph.c (cgraph_node_cannot_return,
cgraph_edge_cannot_lead_to_return): Use them.
* ipa-pure-const.c (pure_const_names): New static var.
(check_call): Handle calls not leading to return.
(pure_const_read_summary): Dump info read.
(propagate): Dump info about propagation process; ignore side
effects of functions not leading to exit; fix handling of
pure functions.
From-SVN: r160051
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index 5b1960f819f..8e2be0862c4 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -594,6 +594,8 @@ void cgraph_set_readonly_flag (struct cgraph_node *, bool); void cgraph_set_pure_flag (struct cgraph_node *, bool); void cgraph_set_looping_const_or_pure_flag (struct cgraph_node *, bool); tree clone_function_name (tree decl, const char *); +bool cgraph_node_cannot_return (struct cgraph_node *); +bool cgraph_edge_cannot_lead_to_return (struct cgraph_edge *); /* In cgraphunit.c */ void cgraph_finalize_function (tree, bool); |