From patchwork Tue Aug 10 19:27:29 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [obv] remove unused variable from coverage.c From: Nathan Froyd X-Patchwork-Id: 61405 Message-Id: <20100810192729.GV4130@codesourcery.com> To: gcc-patches@gcc.gnu.org Date: Tue, 10 Aug 2010 12:27:29 -0700 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. 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;