diff options
author | Jan Hubicka <jh@suse.cz> | 2009-12-10 21:50:47 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2009-12-10 20:50:47 +0000 |
commit | 47cb0d7da16c57888fdc04437530d86f33ee3c1b (patch) | |
tree | 4b7897c70e32ed3a7ade0ed23cc48ffbcd023f09 /gcc/cgraph.h | |
parent | 604df1167c464da3710e28270e6561d427df0444 (diff) | |
download | gcc-47cb0d7da16c57888fdc04437530d86f33ee3c1b.zip gcc-47cb0d7da16c57888fdc04437530d86f33ee3c1b.tar.gz gcc-47cb0d7da16c57888fdc04437530d86f33ee3c1b.tar.bz2 |
re PR middle-end/42228 (verify_cgraph_node failed:node has wrong clone_of)
PR middle-end/42228
PR middle-end/42110
* cgraph.c (cgraph_create_edge_including_clones): Add old_stmt parameter;
update edge if it already exists.
(cgraph_remove_node): Handle correctly cases where we are removing node having
clones.
* cgraph.h (cgraph_create_edge_including_clones): Declare.
(verify_cgraph_node): Add missing error_found = true code.
(cgraph_materialize_all_clones): Remove call edges of dead nodes.
* ipa.c (cgraph_remove_unreachable_nodes): Correctly look for master
clone; fix double linked list removal.
* tree-inline.c (copy_bb): Update cgraph_create_edge_including_clones call;
fix frequency of newly created edge.
* g++.dg/torture/pr42110.C: new file.
From-SVN: r155140
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index d79d3e4..51426e6 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -445,7 +445,7 @@ void cgraph_set_call_stmt (struct cgraph_edge *, gimple); void cgraph_set_call_stmt_including_clones (struct cgraph_node *, gimple, gimple); void cgraph_create_edge_including_clones (struct cgraph_node *, struct cgraph_node *, - gimple, gcov_type, int, int, + gimple, gimple, gcov_type, int, int, cgraph_inline_failed_t); void cgraph_update_edges_for_call_stmt (gimple, tree, gimple); struct cgraph_local_info *cgraph_local_info (tree); |