* cgraph.c (free_edges): New variable.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 13 Sep 2008 14:35:10 +0000 (14:35 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 13 Sep 2008 14:35:10 +0000 (14:35 +0000)
commite83fcabc74404211d634ff3d313368bb86cb3fb3
tree3fc2f320e79fec412a2671fffbe0c677f5c15b35
parent0db724d8ccfe1bb6340d96218e9b947587f5201b
* cgraph.c (free_edges): New variable.
(NEXT_FREE_EDGE): New macro.
(cgraph_free_edge): New function.
(cgraph_remove_edge): Call cgraph_remove_edge_1.
(cgraph_node_remove_callees): Likewise.
(cgraph_node_remove_callers): Likewise.
(cgraph_create_edge): Reuse edges from the free list.  Do not
update uid if doing so.
(cgraph_remove_*_hook): Add free call.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140341 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cgraph.c