From patchwork Tue Aug 26 21:32:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aldy Hernandez X-Patchwork-Id: 383217 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 06B331400E4 for ; Wed, 27 Aug 2014 07:32: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:date:from:mime-version:to:cc:subject:content-type; q=dns; s=default; b=YBsZQjvuT1mrQGkN6d88Cs6qNdBDSZCixmC1ZTCEEhb NIvkV5ZO0WrKC6xi+jqTwyl2T50n5g0vw/YlhO6WX0xla5LzuOgWORAKh9dpawJ7 o06wYkjphx5fOugMliTpyDbWSHeKFD73Wltdii0yWEvgL7gaplVGZeFlgxW+5Ie4 = 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:cc:subject:content-type; s=default; bh=dWabeLL2aa5gdU+MEWQQ2iguBRo=; b=X6vHQoJY3hFGpeHlj 1TGmj7yXRHSE5l1E2+mKufA1WrpcS9vigF/pqOhF8Hf/PDxWKi0o2or4DcOTgj0h 0LjSi59Ujeahz68n6hL5gr7LY7NssanjL2kMRlyrIZjCdZ/VAaQuUVdrKQYSt96g Vo6c/cfhyw7EaUkPxwgOQKl4KE= Received: (qmail 18754 invoked by alias); 26 Aug 2014 21:32: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 18739 invoked by uid 89); 26 Aug 2014 21:32:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS 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; Tue, 26 Aug 2014 21:32:46 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7QLWiEc025732 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 26 Aug 2014 17:32:44 -0400 Received: from reynosa.quesejoda.com (vpn-63-167.rdu2.redhat.com [10.10.63.167]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s7QLWh0v015806; Tue, 26 Aug 2014 17:32:44 -0400 Message-ID: <53FCFCFA.3060809@redhat.com> Date: Tue, 26 Aug 2014 14:32:42 -0700 From: Aldy Hernandez User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: jason merrill CC: gcc-patches Subject: [patch] make dwarf2out_decl static This doesn't seem to be used anywhere but in dwarf2out.c. OK for mainline? commit 8a48cdd576442cee103399ab4f1f67ee215ee6b8 Author: Aldy Hernandez Date: Tue Aug 26 14:30:22 2014 -0700 * dwarf2out.h (dwarf2out_decl): Remove prototype. * dwarf2out.c (dwarf2out_decl): Make static. 2014-08-26 David Malcolm * cselib.h (struct elt_loc_list): Strengthen field "setting_insn" diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 1a9e50a..fb01732 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -102,6 +102,7 @@ along with GCC; see the file COPYING3. If not see static void dwarf2out_source_line (unsigned int, const char *, int, bool); static rtx_insn *last_var_location_insn; static rtx_insn *cached_next_real_insn; +static void dwarf2out_decl (tree); #ifdef VMS_DEBUGGING_INFO int vms_file_stats_name (const char *, long long *, long *, char *, int *); @@ -20881,7 +20882,7 @@ gen_namelist_decl (tree name, dw_die_ref scope_die, tree item_decls) /* Write the debugging output for DECL. */ -void +static void dwarf2out_decl (tree decl) { dw_die_ref context_die = comp_unit_die (); diff --git a/gcc/dwarf2out.h b/gcc/dwarf2out.h index bac5077..7843e0a 100644 --- a/gcc/dwarf2out.h +++ b/gcc/dwarf2out.h @@ -249,7 +249,6 @@ extern enum dw_cfi_oprnd_type dw_cfi_oprnd2_desc extern void output_cfi_directive (FILE *f, struct dw_cfi_node *cfi); -extern void dwarf2out_decl (tree); extern void dwarf2out_emit_cfi (dw_cfi_ref cfi); extern void debug_dwarf (void);