cgraph.h (add_new_static_var): Remove declaration.
authorMarek Polacek <polacek@redhat.com>
Mon, 16 Mar 2015 18:28:26 +0000 (18:28 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 16 Mar 2015 18:28:26 +0000 (18:28 +0000)
* cgraph.h (add_new_static_var): Remove declaration.
* varpool.c (add_new_static_var): Remove function.

From-SVN: r221462

gcc/ChangeLog
gcc/cgraph.h
gcc/varpool.c

index 528e8974727094862677ed3f74f7a88f5f746082..4fd53997c5a4e9300d6c82168960d8eb2c33905e 100644 (file)
@@ -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>
index 99af026d2d715d85984a5b55ccce91dcf8f0c698..52b15c5741733f35593b9bf468935b61df844b90 100644 (file)
@@ -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'.  */
index ce6427956d800d9be2577a3f22af20ff5d950cc5..f1439ca6ee3c1542c662c393a077df0713e95a54 100644 (file)
@@ -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.  */