]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cgraph.c (cgraph_varpool_n_nodes): Remove.
authorKazu Hirata <kazu@cs.umass.edu>
Sun, 23 Jan 2005 19:17:09 +0000 (19:17 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sun, 23 Jan 2005 19:17:09 +0000 (19:17 +0000)
* cgraph.c (cgraph_varpool_n_nodes): Remove.
(cgraph_varpool_node): Don't access cgraph_varpool_n_nodes.
* cgraph.h: Remove the corresponding declaration.

From-SVN: r94121

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

index 64247d7926fe002c77466d64b0c121369d45e5fc..1fcfbd2191034963cd13a8d05a5acf67791c6100 100644 (file)
@@ -9,6 +9,10 @@
        * c-opts.c (c_common_handle_option): Remove all write access
        to explicit_flag_signed_bitfields.
 
+       * cgraph.c (cgraph_varpool_n_nodes): Remove.
+       (cgraph_varpool_node): Don't access cgraph_varpool_n_nodes.
+       * cgraph.h: Remove the corresponding declaration.
+
 2005-01-23  Roger Sayle  <roger@eyesopen.com>
            Eric Botcazou  <ebotcazou@libertysurf.fr>
 
index a5c9b848ad97a0d12f8c04fa363edc1d2855df97..7d1cca20df186d7a0c1d76b6638c92d76916e408 100644 (file)
@@ -120,9 +120,6 @@ static GTY((param_is (struct cgraph_varpool_node))) htab_t cgraph_varpool_hash;
 /* Queue of cgraph nodes scheduled to be lowered and output.  */
 struct cgraph_varpool_node *cgraph_varpool_nodes_queue;
 
-/* Number of nodes in existence.  */
-int cgraph_varpool_n_nodes;
-
 /* The linked list of cgraph varpool nodes.  */
 static GTY(())  struct cgraph_varpool_node *cgraph_varpool_nodes;
 
@@ -584,7 +581,6 @@ cgraph_varpool_node (tree decl)
   node = ggc_alloc_cleared (sizeof (*node));
   node->decl = decl;
   node->next = cgraph_varpool_nodes;
-  cgraph_varpool_n_nodes++;
   cgraph_varpool_nodes = node;
   *slot = node;
   return node;
index d106f36e3ac24aac5ac8b59c552b1aa48c88b4bb..ae902b2ff6cd260abe5f9a52a87501e7217e38e6 100644 (file)
@@ -158,7 +158,6 @@ extern GTY(()) int cgraph_max_uid;
 extern bool cgraph_global_info_ready;
 extern GTY(()) struct cgraph_node *cgraph_nodes_queue;
 
-extern GTY(()) int cgraph_varpool_n_nodes;
 extern GTY(()) struct cgraph_varpool_node *cgraph_varpool_nodes_queue;
 
 /* In cgraph.c  */