From f6bcdb5e058773874be9c63386cdbc3b9ff1581e Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 30 Jul 2014 12:14:58 +0000 Subject: lto-streamer.h (lto_write_data): New function. 2014-07-30 Richard Biener * lto-streamer.h (lto_write_data): New function. * langhooks.c (lhd_append_data): Do not free block. * lto-section-out.c (lto_write_data): New function writing raw data to the current section. (lto_write_stream): Adjust for langhook semantic change. (lto_destroy_simple_output_block): Write header directly. * lto-opts.c (lto_write_options): Write options directly. * lto-streamer-out.c (produce_asm): Write heaeder directly. (lto_output_toplevel_asms): Likewise. (copy_function_or_variable): Copy data directly. (write_global_references): Output index table directly. (lto_output_decl_state_refs): Likewise. (write_symbol): Write data directly. (produce_symtab): Adjust. (produce_asm_for_decls): Output header and refs directly. lto/ * lto-object.c (lto_obj_append_data): Do not free block. From-SVN: r213253 --- gcc/langhooks.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gcc/langhooks.c') diff --git a/gcc/langhooks.c b/gcc/langhooks.c index add0856..aaf65d44 100644 --- a/gcc/langhooks.c +++ b/gcc/langhooks.c @@ -661,14 +661,13 @@ lhd_begin_section (const char *name) /* Write DATA of length LEN to the current LTO output section. This default - implementation just calls assemble_string and frees BLOCK. */ + implementation just calls assemble_string. */ void -lhd_append_data (const void *data, size_t len, void *block) +lhd_append_data (const void *data, size_t len, void *) { if (data) assemble_string ((const char *)data, len); - free (block); } -- cgit v1.1