From patchwork Mon Mar 30 01:56:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honggyu Kim X-Patchwork-Id: 455960 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 9B1A21400A0 for ; Mon, 30 Mar 2015 12:56:24 +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=xB3nGKee; 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:from :to:cc:subject:date:message-id; q=dns; s=default; b=fhQZRRtm4Tsv 9nGALBQOxCtWq7HK2M5ms2OM5kiGI7IbN5QNWnmbiH1q4KaeYn7JirdXbQtWivC7 G8nfZZ2dSBdCx2yYUUA82e1zIMshUkqxgbCgAQ/64kEqHy2wJxED+MIbi1AXIQDg VXVGchRdxuYZc6Us+pH7cRzoOOYn/2g= 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:from :to:cc:subject:date:message-id; s=default; bh=YUPrsiS3zsR1NzwpM2 ZZSe0jor0=; b=xB3nGKee4hxo2E4m4WqJAzis/AmG90bDhS2xgGXzCF7GsB+LV8 /2F6D5Xrl7OBtT97inoGkiZX2AkLDWUxIxA92KET1TOQeD+KgLzP+hLn3KprtAg/ nlvWSN/zJ0ZVoB1gm22srJD6WIJ98SEcYkLHxJoSSOTwGE4fDL16szu6E= Received: (qmail 59363 invoked by alias); 30 Mar 2015 01:56:17 -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 59214 invoked by uid 89); 30 Mar 2015 01:56:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL, BAYES_00, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: lgeamrelo04.lge.com Received: from lgeamrelo04.lge.com (HELO lgeamrelo04.lge.com) (156.147.1.127) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 30 Mar 2015 01:56:15 +0000 Received: from unknown (HELO ls3.156.147.135.180) (10.186.119.203) by 156.147.1.127 with ESMTP; 30 Mar 2015 10:56:11 +0900 X-Original-SENDERIP: 10.186.119.203 X-Original-MAILFROM: hong.gyu.kim@lge.com From: Honggyu Kim To: gcc-patches@gcc.gnu.org Cc: Honggyu Kim Subject: [PATCH] Make maybe_cast_to_ptrmode function as static Date: Mon, 30 Mar 2015 10:56:32 +0900 Message-Id: <1427680593-30995-1-git-send-email-hong.gyu.kim@lge.com> X-IsSubscribed: yes Hi, This patch makes maybe_cast_to_ptrmode function in asan.c as static because the function is not called outside of the file. Is it okay for trunk? Honggyu 2015-03-30 Honggyu Kim * asan.c (maybe_cast_to_ptrmode): Make static. --- gcc/asan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/asan.c b/gcc/asan.c index 9e4a629..c9c8773 100644 --- a/gcc/asan.c +++ b/gcc/asan.c @@ -1650,7 +1650,7 @@ maybe_create_ssa_name (location_t loc, tree base, gimple_stmt_iterator *iter, /* LEN can already have necessary size and precision; in that case, do not create a new variable. */ -tree +static tree maybe_cast_to_ptrmode (location_t loc, tree len, gimple_stmt_iterator *iter, bool before_p) {