diff options
author | Richard Guenther <rguenther@suse.de> | 2012-05-24 12:33:49 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2012-05-24 12:33:49 +0000 |
commit | 0faa05629e036ed79335e55c1473458c642278a8 (patch) | |
tree | 75e0e3fd63130e66ee5ef53fc1590ec6a8160b24 /gcc/tree-dfa.c | |
parent | 0d5a9e784849c3fe7ae59c4a328ccffa60b1d32f (diff) | |
download | gcc-0faa05629e036ed79335e55c1473458c642278a8.zip gcc-0faa05629e036ed79335e55c1473458c642278a8.tar.gz gcc-0faa05629e036ed79335e55c1473458c642278a8.tar.bz2 |
tree-flow.h (create_var_ann): Remove.
2012-05-24 Richard Guenther <rguenther@suse.de>
* tree-flow.h (create_var_ann): Remove.
* tree-dfa.c (create_var_ann): Remove and inline into its
single caller ...
(add_referenced_var_1): ... here.
* varpool.c (add_new_static_var): Do not call add_referenced_var
for global vars.
* gimple-fold.c (canonicalize_constructor_val): Likewise.
* tree-switch-conversion.c (build_one_array): Likewise.
* tree-profile.c (gimple_gen_ic_profiler): Likewise.
* tree-flow-inline.h (gimple_referenced_vars): Guard against
NULL fn argument.
* tree-inline.c (remap_gimple_op_r): Likewise. Check
gimple_referenced_vars instead of gimple_in_ssa_p.
(copy_tree_body_r): Likewise.
(setup_one_parameter): Likewise.
(declare_return_variable): Likewise.
(tree_function_versioning): Likewise.
From-SVN: r187829
Diffstat (limited to 'gcc/tree-dfa.c')
-rw-r--r-- | gcc/tree-dfa.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/gcc/tree-dfa.c b/gcc/tree-dfa.c index e9db01d..2c63933 100644 --- a/gcc/tree-dfa.c +++ b/gcc/tree-dfa.c @@ -118,27 +118,6 @@ struct gimple_opt_pass pass_referenced_vars = }; -/*--------------------------------------------------------------------------- - Manage annotations ----------------------------------------------------------------------------*/ -/* Create a new annotation for a _DECL node T. */ - -var_ann_t -create_var_ann (tree t) -{ - var_ann_t ann; - - gcc_assert (t); - gcc_assert (TREE_CODE (t) == VAR_DECL - || TREE_CODE (t) == PARM_DECL - || TREE_CODE (t) == RESULT_DECL); - - ann = ggc_alloc_cleared_var_ann_d (); - *DECL_VAR_ANN_PTR (t) = ann; - - return ann; -} - /* Renumber all of the gimple stmt uids. */ void @@ -587,7 +566,7 @@ add_referenced_var_1 (tree var, struct function *fn) return false; if (!*DECL_VAR_ANN_PTR (var)) - create_var_ann (var); + *DECL_VAR_ANN_PTR (var) = ggc_alloc_cleared_var_ann_d (); /* Insert VAR into the referenced_vars hash table if it isn't present. */ if (referenced_var_check_and_insert (var, fn)) |