Message ID | CAAgBjM=ewukaTtdtfJY2J-mYtPgbavjnsnQj6YCXP6+49R=OPA@mail.gmail.com |
---|---|
State | New |
Headers | show |
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
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 */