aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-streamer.h
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2011-09-30 14:56:01 +0000
committerJan Beulich <jbeulich@gcc.gnu.org>2011-09-30 14:56:01 +0000
commit49f836ba6fdf80354f675af50837fbdb7144e081 (patch)
tree088e41e292b4cc3059b11b7ac23f10733b2a3912 /gcc/tree-streamer.h
parent7043b893da32a14fc2000b00315437bb9b1e80d6 (diff)
downloadgcc-49f836ba6fdf80354f675af50837fbdb7144e081.zip
gcc-49f836ba6fdf80354f675af50837fbdb7144e081.tar.gz
gcc-49f836ba6fdf80354f675af50837fbdb7144e081.tar.bz2
Split out LTO's writing of top level asm nodes in preparation of extending what...
Split out LTO's writing of top level asm nodes in preparation of extending what needs to be written out when top level asm-s get enhanced to accept a limited set of input operands. gcc/ 2011-09-30 Jan Beulich <jbeulich@suse.com> * lto-cgraph.c (output_cgraph): Remove processing of 'cgraph_asm_nodes', call lto_output_toplevel_asms() instead. (input_cgraph_1): Remove loop calling cgraph_add_asm_node(), call lto_input_toplevel_asms() instead. * lto-section-in.c (lto_section_name): Add "asm" entry. * lto-streamer-in.c (lto_input_toplevel_asms): New. * lto-streamer-out.c (lto_output_toplevel_asms): New. * lto-streamer.h (LTO_minor_version): Bump. (enum lto_section_type): Add LTO_section_asm. (struct lto_asm_header): New. (lto_input_toplevel_asms, lto_output_toplevel_asms): Declare. * tree-streamer.h (streamer_write_string_cst): Declare. * tree-streamer-out.c (write_string_cst): Rename to streamer_write_string_cst and make global. Handle incoming string being NULL. (streamer_write_tree_header): Adjust call to renamed function. From-SVN: r179386
Diffstat (limited to 'gcc/tree-streamer.h')
-rw-r--r--gcc/tree-streamer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-streamer.h b/gcc/tree-streamer.h
index b8f2d1f..0631330 100644
--- a/gcc/tree-streamer.h
+++ b/gcc/tree-streamer.h
@@ -75,6 +75,8 @@ tree streamer_read_integer_cst (struct lto_input_block *, struct data_in *);
struct bitpack_d streamer_read_tree_bitfields (struct lto_input_block *, tree);
/* In tree-streamer-out.c. */
+void streamer_write_string_cst (struct output_block *,
+ struct lto_output_stream *, tree);
void streamer_write_chain (struct output_block *, tree, bool);
void streamer_write_tree_header (struct output_block *, tree);
void streamer_pack_tree_bitfields (struct bitpack_d *, tree);