diff options
author | Marek Polacek <polacek@redhat.com> | 2015-03-16 18:28:26 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2015-03-16 18:28:26 +0000 |
commit | de6d3593367a76ee33fe4c27c00daac1558ebf73 (patch) | |
tree | 44cbe43210e8984133ff108e95aff0a04bb0d65c /gcc | |
parent | 9410d9b20aae8c15ac96d85bc3b8873fedde527a (diff) | |
download | gcc-de6d3593367a76ee33fe4c27c00daac1558ebf73.zip gcc-de6d3593367a76ee33fe4c27c00daac1558ebf73.tar.gz gcc-de6d3593367a76ee33fe4c27c00daac1558ebf73.tar.bz2 |
cgraph.h (add_new_static_var): Remove declaration.
* cgraph.h (add_new_static_var): Remove declaration.
* varpool.c (add_new_static_var): Remove function.
From-SVN: r221462
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cgraph.h | 3 | ||||
-rw-r--r-- | gcc/varpool.c | 21 |
3 files changed, 5 insertions, 24 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 528e897..4fd5399 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-03-16 Marek Polacek <polacek@redhat.com> + + * cgraph.h (add_new_static_var): Remove declaration. + * varpool.c (add_new_static_var): Remove function. + 2015-03-16 Jakub Jelinek <jakub@redhat.com> * omp-low.c (expand_omp_target): Use auto_vec<tree, 11> diff --git a/gcc/cgraph.h b/gcc/cgraph.h index 99af026..52b15c5 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -2717,9 +2717,6 @@ cgraph_node::has_gimple_body_p (void) for ((node) = symtab->first_function_with_gimple_body (); (node); \ (node) = symtab->next_function_with_gimple_body (node)) -/* Create a new static variable of type TYPE. */ -tree add_new_static_var (tree type); - /* Uniquize all constants that appear in memory. Each constant in memory thus far output is recorded in `const_desc_table'. */ diff --git a/gcc/varpool.c b/gcc/varpool.c index ce64279..f1439ca 100644 --- a/gcc/varpool.c +++ b/gcc/varpool.c @@ -760,27 +760,6 @@ symbol_table::output_variables (void) return changed; } -/* Create a new global variable of type TYPE. */ -tree -add_new_static_var (tree type) -{ - tree new_decl; - varpool_node *new_node; - - new_decl = create_tmp_var_raw (type); - DECL_NAME (new_decl) = create_tmp_var_name (NULL); - TREE_READONLY (new_decl) = 0; - TREE_STATIC (new_decl) = 1; - TREE_USED (new_decl) = 1; - DECL_CONTEXT (new_decl) = NULL_TREE; - DECL_ABSTRACT_P (new_decl) = false; - lang_hooks.dup_lang_specific_decl (new_decl); - new_node = varpool_node::get_create (new_decl); - varpool_node::finalize_decl (new_decl); - - return new_node->decl; -} - /* Attempt to mark ALIAS as an alias to DECL. Return TRUE if successful. Extra name aliases are output whenever DECL is output. */ |