From patchwork Tue Jun 11 14:57:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 250559 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 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 80E4A2C007B for ; Wed, 12 Jun 2013 00:57:53 +1000 (EST) 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:subject:from:to:date:content-type:mime-version; q= dns; s=default; b=bHum7owboTC22YqrChcptYenGwG1YjMnO3gBHlq4Vcp1Vj JAE8gSJC2mkwfIdfIawzVHVH/npLYDSnNQfiFV5QSflGesVH0d/MpezU3OOvDH5B zRvtoPKkN94tJ/oNkl0APGPl8d6QRwtDVjDoNgt5vU6TcH3PpSbWE3U6k6OCw= 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:subject:from:to:date:content-type:mime-version; s= default; bh=GGvzATerX+Eumhn1Ijh1jfPMBoI=; b=F9t2+Az8ZhZJ31EGWdpR G0dkxRod7RSQ1xrCzeqnQscKpqQftRmNltTlKE5q7L8+w4MdZ3iTyqRH2TcpUaMY EUGYmzEPCh/fWRMAWw+AUB4+yqun3YX7FN1umcrC7VJGWVqx/MaxspA5aXKRTosa qoaL+qWVLZ9YUS81lLs3W28= Received: (qmail 4536 invoked by alias); 11 Jun 2013 14:57:47 -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 4525 invoked by uid 89); 11 Jun 2013 14:57:47 -0000 X-Spam-SWARE-Status: No, score=-6.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_HOSTKARMA_W, RCVD_IN_HOSTKARMA_WL, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 11 Jun 2013 14:57:46 +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 r5BEvj3w031584 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 11 Jun 2013 10:57:45 -0400 Received: from [10.16.189.4] (dhcp-189-4.bos.redhat.com [10.16.189.4]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r5BEvjl7007778 for ; Tue, 11 Jun 2013 10:57:45 -0400 Message-ID: <1370962668.28429.7.camel@surprise> Subject: [PATCH] final.c: make debug_prefix_maps static From: David Malcolm To: gcc patches Date: Tue, 11 Jun 2013 10:57:48 -0400 Mime-Version: 1.0 X-Virus-Found: No Usage of "debug_prefix_maps" is hidden behind an API, with the only direct uses of the ptr being within final.c. Indeed the declaration of its type is local to that file. Hence it can be made static. Successfully bootstrapped on x86_64-unknown-linux-gnu OK for trunk? 2013-06-11 David Malcolm * final.c (debug_prefix_maps): Make static. Index: gcc/final.c =================================================================== --- gcc/final.c (revision 199957) +++ gcc/final.c (working copy) @@ -1471,7 +1471,7 @@ } debug_prefix_map; /* Linked list of such structures. */ -debug_prefix_map *debug_prefix_maps; +static debug_prefix_map *debug_prefix_maps; /* Record a debug file prefix mapping. ARG is the argument to