diff options
author | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-18 15:51:37 +0000 |
---|---|---|
committer | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-18 15:51:37 +0000 |
commit | aef48c9a82fae9bcda3e3da058f9a4447d293301 (patch) | |
tree | 099f2565c44bc86efadd0114c6699753ab14efa5 /gcc/function.c | |
parent | 364ba361d5a653953f2ba9fda4b5e5fdf276903f (diff) | |
download | gcc-aef48c9a82fae9bcda3e3da058f9a4447d293301.tar.gz |
gcc/
* function.h (types_used_by_cur_var_decl): Change type to a VEC.
* function.c (types_used_by_cur_var_decl): Likewise.
(used_types_insert): Adjust for new type of
types_used_by_cur_var_decl.
gcc/c-family/
* c-common.c (record_types_used_by_current_var_decl): Adjust for
new type of types_used_by_cur_var_decl.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161001 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/function.c b/gcc/function.c index c5b80b0e153..5c31955380a 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -132,7 +132,7 @@ static GTY((if_marked ("ggc_marked_p"), param_is (struct rtx_def))) htab_t types_used_by_vars_hash = NULL; -tree types_used_by_cur_var_decl = NULL; +VEC(tree,gc) *types_used_by_cur_var_decl; /* Forward declarations. */ @@ -5562,9 +5562,7 @@ used_types_insert (tree t) /* So this might be a type referenced by a global variable. Record that type so that we can later decide to emit its debug information. */ - types_used_by_cur_var_decl = - tree_cons (t, NULL, types_used_by_cur_var_decl); - + VEC_safe_push (tree, gc, types_used_by_cur_var_decl, t); } } |