From patchwork Thu Aug 4 20:02:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prathamesh Kulkarni X-Patchwork-Id: 73312 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1571954qga; Thu, 4 Aug 2016 13:02:30 -0700 (PDT) X-Received: by 10.66.237.7 with SMTP id uy7mr93618305pac.152.1470340950224; Thu, 04 Aug 2016 13:02:30 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id dz8si16076245pab.269.2016.08.04.13.02.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Aug 2016 13:02:30 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-433264-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-433264-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-433264-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=Zvx+e3cs+JJXCim3FnkLy3v/KkitHXGKon/s3e8Ltv7YZC lzABhzOHjYuVa+qlwf24HrRRKPrcUW+QD951vjciHdKvD5yZTN9XcbDII28tVlHj TR+xQRR/WJu2YgzSsrQwgsEkh/1KlOu7hX2lV/u6ODFEJUMyEm5Vda4MXGR2A= 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 :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=oMIsXB2gkbY/F+zwppxv5kmZ+aw=; b=nSLa/RnURMCEx3tiTM0X +hjBx5VcXWeysArJgEmjJO+XOZ16cKbF8fZFzF+IBp6N2HSV5204BMZzKwgH3x/5 7lLHQmxtaojFPFAFRLUPgqMyI+C2Pxqr1ZcmfRBk2MHyesh72C3JbFQ9601yravn 34wmHLXrbKO+Up/gvisHcWU= Received: (qmail 32346 invoked by alias); 4 Aug 2016 20:02:14 -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 32328 invoked by uid 89); 4 Aug 2016 20:02:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1770, 2016-08-05, 20160805 X-HELO: mail-io0-f181.google.com Received: from mail-io0-f181.google.com (HELO mail-io0-f181.google.com) (209.85.223.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 04 Aug 2016 20:02:04 +0000 Received: by mail-io0-f181.google.com with SMTP id m101so280796183ioi.2 for ; Thu, 04 Aug 2016 13:02:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=5UkbMHRL32qZ9tKD9q2+LmoWacB+9LNmgEk5XAg5XmE=; b=RmS6XuyeSAYKingNP2S6UbCAdDdee2U7cTx/hK7v+eYfnOm6TnVRXKOsR/jB1iIA+x 6G4H5skjhb7cpjzyJxH2D9ua2HTMaEr5/EXMPIaSAhKXXDAvR6+zSVGfgpz3GWjPerko ojkLeYBGrdp2ncfcNlNxox7Er8yNFwx2GGRdxEuhBOgMUWtpbvgvom/bFLxNh7r1ELUB CCSXpKhPhjycAIonI6hrDUtqRLzKJ3gTFUOI/JR7ndkDqWLBXy6tsyc+cH47ktHjkUGm orXwgtFPJUKnwIDEPkdwuR6UAnAwHD/3x8uvdca3ZPwpG1jgQS30EA0iveQF2l57es/0 X0FA== X-Gm-Message-State: AEkooutOFChqZqc3hqTAnaYuO5bqhDIWLPpEJ5OyifxXtqgjZNCVhbP70Unplda10aeRhjH0WQpA+phCuuInTpGc X-Received: by 10.107.159.147 with SMTP id i141mr73041750ioe.29.1470340922126; Thu, 04 Aug 2016 13:02:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.208.18 with HTTP; Thu, 4 Aug 2016 13:02:01 -0700 (PDT) From: Prathamesh Kulkarni Date: Fri, 5 Aug 2016 01:32:01 +0530 Message-ID: Subject: make streaming routines for widest_int non-static To: Richard Biener , Jan Hubicka , gcc Patches X-IsSubscribed: yes Hi, This patch makes streamer_read_wi and streamer_write_wi non-static, and exports them from lto-streamer.h. I suppose this hunk could be committed independently of the ipa-bitwise-cp patch ? Bootstrap+test in progress on x86_64-unknown-linux-gnu. OK for trunk ? Thanks, Prathamesh 2016-08-05 Prathamesh Kulkarni * lto-streamer-in.c (streamer_read_wi): Make function non-static. * lto-streamer-out.c (streamer_write_wi): Likewise. * lto-streamer.h: Export streamer_read_wi and streamer_write_wi. diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c index 1d56d21..01462e2 100644 --- a/gcc/lto-streamer-in.c +++ b/gcc/lto-streamer-in.c @@ -712,7 +712,7 @@ make_new_block (struct function *fn, unsigned int index) /* Read a wide-int. */ -static widest_int +widest_int streamer_read_wi (struct lto_input_block *ib) { HOST_WIDE_INT a[WIDE_INT_MAX_ELTS]; diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c index aa6b589..8fbd882 100644 --- a/gcc/lto-streamer-out.c +++ b/gcc/lto-streamer-out.c @@ -1830,7 +1830,7 @@ output_ssa_names (struct output_block *ob, struct function *fn) /* Output a wide-int. */ -static void +void streamer_write_wi (struct output_block *ob, const widest_int &w) { diff --git a/gcc/lto-streamer.h b/gcc/lto-streamer.h index ecc1e5d..4da89d0 100644 --- a/gcc/lto-streamer.h +++ b/gcc/lto-streamer.h @@ -1225,4 +1225,7 @@ DEFINE_DECL_STREAM_FUNCS (TYPE_DECL, type_decl) DEFINE_DECL_STREAM_FUNCS (NAMESPACE_DECL, namespace_decl) DEFINE_DECL_STREAM_FUNCS (LABEL_DECL, label_decl) +widest_int streamer_read_wi (struct lto_input_block *); +void streamer_write_wi (struct output_block *, const widest_int &); + #endif /* GCC_LTO_STREAMER_H */