]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/tree-optimize.c
cgraph.h (struct cgraph_edge): Add prev_caller and prev_callee fields.
authorRichard Guenther <rguenth@gcc.gnu.org>
Wed, 2 Mar 2005 11:09:48 +0000 (11:09 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 2 Mar 2005 11:09:48 +0000 (11:09 +0000)
commit2563c2248f41b473e18c33125f40ef2196773fc0
treebdb529abaec3ec0dbd00b6e655a0f76068edb9e0
parentceccf46b1067576cd6c9de7e4ab3af67aa35009e
cgraph.h (struct cgraph_edge): Add prev_caller and prev_callee fields.

2005-03-02  Richard Guenther  <rguenth@gcc.gnu.org>

* cgraph.h (struct cgraph_edge): Add prev_caller and
prev_callee fields.
(cgraph_node_remove_callees): Export.
* cgraph.c (cgraph_create_edge): Initialize prev_caller
and prev_callee.
(cgraph_edge_remove_callee): New function.
(cgraph_edge_remove_caller): Likewise.
(cgraph_remove_edge): Use.
(cgraph_redirect_edge_callee): Likewise.
(cgraph_node_remove_callees): New function.
(cgraph_node_remove_callers): Likewise.
(cgraph_remove_node): Use.
* tree-optimize.c (tree_rest_of_compilation): Use
cgraph_node_remove_callees instead of manual loop.
* cgraphunit.c (cgraph_finalize_function): Likewise.
(cgraph_expand_function): Likewise.
(cgraph_remove_unreachable_nodes): Likewise.

From-SVN: r95777
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h
gcc/cgraphunit.c
gcc/tree-optimize.c