diff options
author | Nathan Froyd <froydnj@codesourcery.com> | 2010-06-18 15:51:37 +0000 |
---|---|---|
committer | Nathan Froyd <froydnj@gcc.gnu.org> | 2010-06-18 15:51:37 +0000 |
commit | bc87224e9341b186905d8ac849aeb59463ae4f6b (patch) | |
tree | 099f2565c44bc86efadd0114c6699753ab14efa5 /gcc/function.c | |
parent | 76d971ccfb886e192d3d21705b1d9327d61f8827 (diff) | |
download | gcc-bc87224e9341b186905d8ac849aeb59463ae4f6b.zip gcc-bc87224e9341b186905d8ac849aeb59463ae4f6b.tar.gz gcc-bc87224e9341b186905d8ac849aeb59463ae4f6b.tar.bz2 |
function.h (types_used_by_cur_var_decl): Change type to a VEC.
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.
From-SVN: r161001
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 c5b80b0..5c31955 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); } } |