summaryrefslogtreecommitdiff
path: root/gcc/varpool.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-24 12:33:49 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-24 12:33:49 +0000
commit1b55a29e6f18009cb3cd698e03be48d770398679 (patch)
tree75e0e3fd63130e66ee5ef53fc1590ec6a8160b24 /gcc/varpool.c
parenta2623f6b69da259d9fd23be2a789aa271f5ba6c7 (diff)
downloadgcc-1b55a29e6f18009cb3cd698e03be48d770398679.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187829 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varpool.c')
-rw-r--r--gcc/varpool.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/varpool.c b/gcc/varpool.c
index 45cc4ccaf8d..487413ded6d 100644
--- a/gcc/varpool.c
+++ b/gcc/varpool.c
@@ -458,7 +458,6 @@ add_new_static_var (tree type)
DECL_ABSTRACT (new_decl) = 0;
lang_hooks.dup_lang_specific_decl (new_decl);
new_node = varpool_node (new_decl);
- add_referenced_var (new_decl);
varpool_finalize_decl (new_decl);
return new_node->symbol.decl;