From patchwork Mon Mar 16 13:36:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Polacek X-Patchwork-Id: 450557 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 520E5140083 for ; Tue, 17 Mar 2015 00:36:47 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=k/PLAjzV; dkim-adsp=none (unprotected policy); dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=ZNiU+9+z7mWwoNj66qK3wMxJ2fWz78eOp2dm7ReHkcryMSpQKxT/9 9JnQYG2hxyCxmXGD0ta6zPqb45dsT79KmV8+ZQ38hN6IhGfF2RgTFogTkcJHSz11 TaUnluEy7j9bbDG2w2J9jT182Lat283ePNQwI+pUp22DAsFL+3k+PI= 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:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=dLNZbp3Z2YJkdCfKXEBCy+Hd1W8=; b=k/PLAjzVhv4WTcRKJmaN myD3ZxUMNQnvV0aeQuwcLbXs2J/b+uaoYOBkUDw52ZrIM/8V0QijkpTykrR7TUJ1 GA5dHKz99fFSPTkbVc+XFAbdSHizP2jLBr8ifa4dCp3DQdoM79VGbfOx/Avfjf8Z tQ0IkH1Vetl5mIKHFWYKCNE= Received: (qmail 22005 invoked by alias); 16 Mar 2015 13:36:39 -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 21995 invoked by uid 89); 16 Mar 2015 13:36:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 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; Mon, 16 Mar 2015 13:36:37 +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 t2GDaZUN017614 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 16 Mar 2015 09:36:36 -0400 Received: from redhat.com ([10.40.204.16]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t2GDaWxf005297 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Mon, 16 Mar 2015 09:36:35 -0400 Date: Mon, 16 Mar 2015 14:36:30 +0100 From: Marek Polacek To: GCC Patches Subject: [PATCH] Remove unused function Message-ID: <20150316133630.GC5698@redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) This function is unused since matrix-reorg.c removal back in 2012. I think there's no point in keeping it around. Bootstrapped/regtested on x86_64-linux, ok for trunk? 2015-03-16 Marek Polacek * cgraph.h (add_new_static_var): Remove declaration. * varpool.c (add_new_static_var): Remove function. Marek diff --git gcc/cgraph.h gcc/cgraph.h index 99af026..52b15c5 100644 --- gcc/cgraph.h +++ gcc/cgraph.h @@ -2717,9 +2717,6 @@ cgraph_node::has_gimple_body_p (void) for ((node) = symtab->first_function_with_gimple_body (); (node); \ (node) = symtab->next_function_with_gimple_body (node)) -/* Create a new static variable of type TYPE. */ -tree add_new_static_var (tree type); - /* Uniquize all constants that appear in memory. Each constant in memory thus far output is recorded in `const_desc_table'. */ diff --git gcc/varpool.c gcc/varpool.c index ce64279..f1439ca 100644 --- gcc/varpool.c +++ gcc/varpool.c @@ -760,27 +760,6 @@ symbol_table::output_variables (void) return changed; } -/* Create a new global variable of type TYPE. */ -tree -add_new_static_var (tree type) -{ - tree new_decl; - varpool_node *new_node; - - new_decl = create_tmp_var_raw (type); - DECL_NAME (new_decl) = create_tmp_var_name (NULL); - TREE_READONLY (new_decl) = 0; - TREE_STATIC (new_decl) = 1; - TREE_USED (new_decl) = 1; - DECL_CONTEXT (new_decl) = NULL_TREE; - DECL_ABSTRACT_P (new_decl) = false; - lang_hooks.dup_lang_specific_decl (new_decl); - new_node = varpool_node::get_create (new_decl); - varpool_node::finalize_decl (new_decl); - - return new_node->decl; -} - /* Attempt to mark ALIAS as an alias to DECL. Return TRUE if successful. Extra name aliases are output whenever DECL is output. */