From patchwork Fri Jan 30 19:23:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aldy Hernandez X-Patchwork-Id: 435003 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 2DA3514017C for ; Sat, 31 Jan 2015 06:24:26 +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:references :in-reply-to:content-type; q=dns; s=default; b=Bdp7MTCXXGMSJl3ky aKVYluhFqVDi+BtVlHjheNuwZTIT/Hi3wlLJLcoODknzjXNsspdAUatCsmoKSBpD Hcdfpbpa8yq7okb+MFQ5q6qCkMf8AQCs0qGaoRvcUAiTfIcMdjHDUCNT4PadsZ4b 5SczZK/at4BpFBhadmlUjU77zE= 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:references :in-reply-to:content-type; s=default; bh=IeE3F6Pu4BKt6CPWlwGxbO2 KihM=; b=TIHfC/Lz97skj3tR6XaVgoJmlj9d1OCBGt1IkdHSbpWOW6Zq3gVYnpu KRKXskHcq1EyBjzrfGJchKu5RtwchEtJTGdMGxVDo8Jz9YeMFt/SyfvaqY+NnO40 rXBwMw1iX53wIQ2jhrO8GkbPJP6VoxJFFUbq1B3KDcPGDliu6tWE= Received: (qmail 4625 invoked by alias); 30 Jan 2015 19:23:53 -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 4615 invoked by uid 89); 30 Jan 2015 19:23:51 -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, 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:23:50 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t0UJNlYq011115 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 30 Jan 2015 14:23:48 -0500 Received: from reynosa.quesejoda.com (vpn-60-25.rdu2.redhat.com [10.10.60.25]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t0UJNkkn019276 for ; Fri, 30 Jan 2015 14:23:47 -0500 Message-ID: <54CBDA42.9040109@redhat.com> Date: Fri, 30 Jan 2015 11:23:46 -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: Re: [debug-early] remove file_table_last_lookup References: <54CBD4FF.1000809@redhat.com> In-Reply-To: <54CBD4FF.1000809@redhat.com> On 01/30/2015 11:01 AM, Aldy Hernandez wrote: > We haven't been using this for a looong time. It never even gets defined. > > Removed and committed to branch. > > Aldy Ughh, I'm having git rebase issues. I was missing part of the patch. Here's the rest. Committed to branch. Aldy diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 188710e..33738d9 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -21733,14 +21733,6 @@ lookup_filename (const char *file_name) { struct dwarf_file_data * created; - /* Check to see if the file name that was searched on the previous - call matches this file name. If so, return the index. */ - if (file_table_last_lookup - && (file_name == file_table_last_lookup->filename - || filename_cmp (file_table_last_lookup->filename, file_name) == 0)) - return file_table_last_lookup; - - /* Didn't match the previous lookup, search the table. */ dwarf_file_data **slot = file_table->find_slot_with_hash (file_name, htab_hash_string (file_name), INSERT);