public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* make streaming routines for widest_int non-static
@ 2016-08-04 20:02 Prathamesh Kulkarni
  2016-08-05  8:23 ` Richard Biener
  0 siblings, 1 reply; 3+ messages in thread
From: Prathamesh Kulkarni @ 2016-08-04 20:02 UTC (permalink / raw)
  To: Richard Biener, Jan Hubicka, gcc Patches

[-- Attachment #1: Type: text/plain, Size: 284 bytes --]

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

[-- Attachment #2: widest_int_nonstatic.txt --]
[-- Type: text/plain, Size: 1462 bytes --]

2016-08-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

	* 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  */

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: make streaming routines for widest_int non-static
  2016-08-04 20:02 make streaming routines for widest_int non-static Prathamesh Kulkarni
@ 2016-08-05  8:23 ` Richard Biener
  2016-08-05  9:06   ` kugan
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Biener @ 2016-08-05  8:23 UTC (permalink / raw)
  To: Prathamesh Kulkarni; +Cc: Jan Hubicka, gcc Patches

On Fri, 5 Aug 2016, Prathamesh Kulkarni wrote:

> 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 ?

I think I approved a better patch from Kugan.

Richard.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: make streaming routines for widest_int non-static
  2016-08-05  8:23 ` Richard Biener
@ 2016-08-05  9:06   ` kugan
  0 siblings, 0 replies; 3+ messages in thread
From: kugan @ 2016-08-05  9:06 UTC (permalink / raw)
  To: Richard Biener, Prathamesh Kulkarni; +Cc: Jan Hubicka, gcc Patches

Hi Richard and Prathamesh,

On 05/08/16 18:23, Richard Biener wrote:
> On Fri, 5 Aug 2016, Prathamesh Kulkarni wrote:
>
>> 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 ?
>
> I think I approved a better patch from Kugan.

Sorry, I was waiting for the other patches to get approved. Since this 
is needed for Prathamesh too, I will commit after testing this patch alone.

Thanks.
Kugan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-05  9:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-04 20:02 make streaming routines for widest_int non-static Prathamesh Kulkarni
2016-08-05  8:23 ` Richard Biener
2016-08-05  9:06   ` kugan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).