diff options
Diffstat (limited to 'gcc/tree-browser.c')
-rw-r--r-- | gcc/tree-browser.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/tree-browser.c b/gcc/tree-browser.c index dab7286..f05cbf7 100644 --- a/gcc/tree-browser.c +++ b/gcc/tree-browser.c @@ -103,7 +103,7 @@ void browse_tree (tree); /* Static variables. */ static htab_t TB_up_ht; -static VEC(tree,gc) *TB_history_stack; +static vec<tree, va_gc> *TB_history_stack; static int TB_verbose = 1; @@ -121,7 +121,7 @@ browse_tree (tree begin) fprintf (TB_OUT_FILE, "\nTree Browser\n"); #define TB_SET_HEAD(N) do { \ - VEC_safe_push (tree, gc, TB_history_stack, N); \ + vec_safe_push (TB_history_stack, N); \ head = N; \ if (TB_verbose) \ if (head) \ @@ -871,10 +871,10 @@ find_node_with_code (tree *tp, int *walk_subtrees ATTRIBUTE_UNUSED, static tree TB_history_prev (void) { - if (!VEC_empty (tree, TB_history_stack)) + if (!vec_safe_is_empty (TB_history_stack)) { - tree last = VEC_last (tree, TB_history_stack); - VEC_pop (tree, TB_history_stack); + tree last = TB_history_stack->last (); + TB_history_stack->pop (); return last; } return NULL_TREE; |