diff mbox

[obv] remove unused variable from coverage.c

Message ID 20100810192729.GV4130@codesourcery.com
State New
Headers show

Commit Message

Nathan Froyd Aug. 10, 2010, 7:27 p.m. UTC
I noticed this while attempting to make Bernd's rtl-on-obstacks patch
bootstrap.  That patch removed the GTY annotation from ctr_labels, which
made the variable not be referenced from gt*.h, which removed the only
use of the variable, which caused warnings/errors.  I love the garbage
collector, don't you?

Tested on x86_64-unknown-linux-gnu.  Committed as obvious.

	* coverage.c (ctr_labels): Delete.
diff mbox

Patch

Index: coverage.c
===================================================================
--- coverage.c	(revision 163077)
+++ coverage.c	(working copy)
@@ -104,10 +104,6 @@  static htab_t counts_hash = NULL;
 /* Trees representing the counter table arrays.  */
 static GTY(()) tree tree_ctr_tables[GCOV_COUNTERS];
 
-/* The names of the counter tables.  Not used if we're
-   generating counters at tree level.  */
-static GTY(()) rtx ctr_labels[GCOV_COUNTERS];
-
 /* The names of merge functions for counters.  */
 static const char *const ctr_merge_functions[GCOV_COUNTERS] = GCOV_MERGE_FUNCTIONS;
 static const char *const ctr_names[GCOV_COUNTERS] = GCOV_COUNTER_NAMES;