diff options
author | Richard Biener <rguenther@suse.de> | 2014-07-30 12:14:58 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2014-07-30 12:14:58 +0000 |
commit | f6bcdb5e058773874be9c63386cdbc3b9ff1581e (patch) | |
tree | 17ed7ba165f1d2672b9045df3792853564446f62 /gcc/lto | |
parent | 93a87598b928f58f9e467bea8c718c5e2c91e498 (diff) | |
download | gcc-f6bcdb5e058773874be9c63386cdbc3b9ff1581e.zip gcc-f6bcdb5e058773874be9c63386cdbc3b9ff1581e.tar.gz gcc-f6bcdb5e058773874be9c63386cdbc3b9ff1581e.tar.bz2 |
lto-streamer.h (lto_write_data): New function.
2014-07-30 Richard Biener <rguenther@suse.de>
* 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
Diffstat (limited to 'gcc/lto')
-rw-r--r-- | gcc/lto/ChangeLog | 18 | ||||
-rw-r--r-- | gcc/lto/lto-object.c | 4 |
2 files changed, 19 insertions, 3 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 8309ab9..a0a21b8 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,21 @@ +2014-07-30 Richard Biener <rguenther@suse.de> + + * 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. + 2014-07-25 Andi Kleen <ak@linux.intel.com> * lto.c (hash_canonical_type): Call iterative_hstate_expr. diff --git a/gcc/lto/lto-object.c b/gcc/lto/lto-object.c index c406efb..323f7b2 100644 --- a/gcc/lto/lto-object.c +++ b/gcc/lto/lto-object.c @@ -354,7 +354,7 @@ lto_obj_begin_section (const char *name) DATA. */ void -lto_obj_append_data (const void *data, size_t len, void *block) +lto_obj_append_data (const void *data, size_t len, void *) { struct lto_simple_object *lo; const char *errmsg; @@ -372,8 +372,6 @@ lto_obj_append_data (const void *data, size_t len, void *block) else fatal_error ("%s: %s", errmsg, xstrerror (errno)); } - - free (block); } /* Stop writing to the current output section. */ |