From 207c68cd616b7739870933158e976881d1b2438e Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 8 Aug 2014 12:55:31 +0000 Subject: lto-streamer.h (struct lto_input_block): Make it a class with a constructor. 2014-08-08 Richard Biener * lto-streamer.h (struct lto_input_block): Make it a class with a constructor. (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove. (struct lto_function_header, struct lto_simple_header, struct lto_simple_header_with_strings, struct lto_decl_header, struct lto_function_header): Make a simple inheritance hieararchy. Remove unused fields. (struct lto_asm_header): Remove. * lto-streamer-out.c (produce_asm): Adjust. (lto_output_toplevel_asms): Likewise. (produce_asm_for_decls): Likewise. * lto-section-out.c (lto_destroy_simple_output_block): Likewise. * data-streamer-in.c (string_for_index): Likewise. * ipa-inline-analysis.c (inline_read_section): Likewise. * ipa-prop.c (ipa_prop_read_section): Likewise. (read_replacements_section): Likewise. * lto-cgraph.c (input_cgraph_opt_section): Likewise. * lto-section-in.c (lto_create_simple_input_block): Likewise. (lto_destroy_simple_input_block): Likewise. * lto-streamer-in.c (lto_read_body_or_constructor): Likewise. (lto_input_toplevel_asms): Likewise. lto/ * lto.c (lto_read_decls): Adjust for lto_input_block changes. From-SVN: r213759 --- gcc/lto/ChangeLog | 4 ++++ gcc/lto/lto.c | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'gcc/lto') diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index f1af679..18f483c 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,7 @@ +2014-08-08 Richard Biener + + * lto.c (lto_read_decls): Adjust for lto_input_block changes. + 2014-08-08 Bin Cheng PR lto/62032 diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index 6f864d9..d211c80 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -1844,14 +1844,13 @@ lto_read_decls (struct lto_file_decl_data *decl_data, const void *data, const int decl_offset = sizeof (struct lto_decl_header); const int main_offset = decl_offset + header->decl_state_size; const int string_offset = main_offset + header->main_size; - struct lto_input_block ib_main; struct data_in *data_in; unsigned int i; const uint32_t *data_ptr, *data_end; uint32_t num_decl_states; - LTO_INIT_INPUT_BLOCK (ib_main, (const char *) data + main_offset, 0, - header->main_size); + lto_input_block ib_main ((const char *) data + main_offset, + header->main_size); data_in = lto_data_in_create (decl_data, (const char *) data + string_offset, header->string_size, resolutions); -- cgit v1.1