aboutsummaryrefslogtreecommitdiff
path: root/gcc/graphds.h
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2013-05-02 13:59:38 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2013-05-02 13:59:38 +0000
commit2c41c19d5dfc3de0c0b149dc0846c08422c5dded (patch)
tree849d92074f65867ad3f1ba5437908e05b47c65e5 /gcc/graphds.h
parent8b47039cde38d852471193033965e9d3e40e97bc (diff)
downloadgcc-2c41c19d5dfc3de0c0b149dc0846c08422c5dded.zip
gcc-2c41c19d5dfc3de0c0b149dc0846c08422c5dded.tar.gz
gcc-2c41c19d5dfc3de0c0b149dc0846c08422c5dded.tar.bz2
graphds.h (struct graph): Add obstack member.
2013-05-02 Richard Biener <rguenther@suse.de> * graphds.h (struct graph): Add obstack member. * graphds.c (new_graph): Initialize obstack and allocate vertices from it. (add_edge): Allocate edge from the obstack. (free_graph): Free the obstack instead of all edges and vertices. From-SVN: r198539
Diffstat (limited to 'gcc/graphds.h')
-rw-r--r--gcc/graphds.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/graphds.h b/gcc/graphds.h
index f6d9c36..d9de5ae 100644
--- a/gcc/graphds.h
+++ b/gcc/graphds.h
@@ -43,9 +43,9 @@ struct vertex
struct graph
{
- int n_vertices; /* Number of vertices. */
- struct vertex *vertices;
- /* The vertices. */
+ int n_vertices; /* Number of vertices. */
+ struct vertex *vertices; /* The vertices. */
+ struct obstack ob; /* Obstack for vertex and edge allocation. */
};
struct graph *new_graph (int);