graphds.c (add_edge): Intitialize edge's attached data.
authorBin Cheng <bin.cheng@arm.com>
Wed, 7 Jun 2017 11:29:37 +0000 (11:29 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Wed, 7 Jun 2017 11:29:37 +0000 (11:29 +0000)
commit04939ee6fd997de2278445a5092f5e1fd20dc486
treea6e964f97c27b5d2e834a16f6f0a116e4f7b2ab3
parent6355150f585e2d746a62df19ae89df7c93e8c3c7
graphds.c (add_edge): Intitialize edge's attached data.

* graphds.c (add_edge): Intitialize edge's attached data.
(foll_in_subgraph, dfs_fst_edge, dfs_next_edge): New function
pointer parameter.  Call pointed function on each edge during
graph traversing.  Skip traversing the edge when the function
returns true.
(graphds_dfs, graphds_scc): Ditto.
(for_each_edge): New parameter.  Pass the new parameter to callback
function.
* graphds.h (skip_edge_callback): New function pointer type.
(graphds_dfs, graphds_scc): New function pointer parameter.
(graphds_edge_callback, for_each_edge): New parameter.

From-SVN: r248964
gcc/ChangeLog
gcc/graphds.c
gcc/graphds.h