From patchwork Fri Jan 30 19:01:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aldy Hernandez X-Patchwork-Id: 434993 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id A55161402A2 for ; Sat, 31 Jan 2015 06:03:14 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=FjODNcpnmDg6Zu0lHazLIkLDjfIyPVqAbK8tFaot5ICnMb UN/9oC9nVV1hrXPWrN+JODoOcOrrSjpPlkRVEEO+O1HbYGnS66GuUwGTKPXwzn9+ VQHj6BX6VMght9ixteMFch0JTuwEhYzoWKL+r7IK40vEBlUd93Bs2JW3U6xYI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=LrZ3iFvkPgZPcbOGJYXrjOvAPng=; b=ZPyOnRzywJ1yZiPle4Cf ZOXqroKqLRFVZRELXq6FbsPR4qz8v31flghLkEruPB3uaT2V4XG2zRYKlRJj9RjC LsKXXe2ufXCV0KFne3fdKTAH/qyqVa1aiK6YlHuCfapVe07XYJDTqsFiNyc2eoCj ycGMpJnGzdXXC3hv+rRPMdw= Received: (qmail 12600 invoked by alias); 30 Jan 2015 19:01:28 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 12559 invoked by uid 89); 30 Jan 2015 19:01:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 30 Jan 2015 19:01:24 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t0UJ1LMZ002904 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 30 Jan 2015 14:01:22 -0500 Received: from reynosa.quesejoda.com (vpn-60-25.rdu2.redhat.com [10.10.60.25]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t0UJ1KLX003464 for ; Fri, 30 Jan 2015 14:01:21 -0500 Message-ID: <54CBD4FF.1000809@redhat.com> Date: Fri, 30 Jan 2015 11:01:19 -0800 From: Aldy Hernandez User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: gcc-patches Subject: [debug-early] remove file_table_last_lookup We haven't been using this for a looong time. It never even gets defined. Removed and committed to branch. Aldy commit a8076b015cad17538e369c153f8c7cf888433840 Author: Aldy Hernandez Date: Tue Jan 27 11:24:53 2015 -0800 * dwarf2out.c (file_table_last_lookup): Remove unset variable. (lookup_filename): Remove file_table_last_lookup use. (dwarf2out_c_finalize): Same. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index e3ccda2..188710e 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -3008,9 +3008,6 @@ static GTY(()) struct dwarf_file_data * last_emitted_file; /* Number of internal labels generated by gen_internal_sym(). */ static GTY(()) int label_num; -/* Cached result of previous call to lookup_filename. */ -static GTY(()) struct dwarf_file_data * file_table_last_lookup; - static GTY(()) vec *tmpl_value_parm_die_table; /* Instances of generic types for which we need to generate debug @@ -21729,9 +21726,7 @@ dwarf_file_hasher::hash (dwarf_file_data *p) section) and references to those files numbers (in the .debug_srcinfo and.debug_macinfo sections). If the filename given as an argument is not found in our current list, add it to the list and assign it the next - available unique index number. In order to speed up searches, we remember - the index of the filename was looked up last. This handles the majority of - all searches. */ + available unique index number. */ static struct dwarf_file_data * lookup_filename (const char *file_name) @@ -25199,7 +25194,6 @@ dwarf2out_c_finalize (void) poc_label_num = 0; last_emitted_file = NULL; label_num = 0; - file_table_last_lookup = NULL; tmpl_value_parm_die_table = NULL; generic_type_instances = NULL; frame_pointer_fb_offset = 0;