2010-09-16 Richard Guenther <rguenther@suse.de> * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL is TS_TRANSLATION_UNIT_DECL. (initialize_tree_contains_struct): Adjust. (all_translation_units): New global vector. (build_translation_unit_decl): New function. * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro. (struct tree_translation_unit_decl): New. (all_translation_units): Declare. (union tree_node): Add translation_unit_decl member. (build_translation_unit_decl): Declare. * treestruct.def (TS_TRANSLATION_UNIT_DECL): New. * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields): New function. (pack_value_fields): Call it. (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL. (lto_output_ts_translation_unit_decl_tree_pointers): New function. (lto_output_tree_pointers): Call it. * lto-streamer-in.c (lto_input_tree_ref): Handle references to TRANSLATION_UNIT_DECL. (unpack_ts_translation_unit_decl_value_fields): New function. (unpack_value_fields): Call it. (lto_input_ts_translation_unit_decl_tree_pointers): New function. (lto_input_tree_pointers): Call it. * lto-streamer.c (check_handled_ts_structures): Adjust. * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref. * c-decl.c (all_translation_units): Remove. (pop_scope): Use build_translation_unit_decl. (collect_all_refs): Adjust. (for_each_global_decl): Likewise. (c_write_global_declarations): Likewise. java/ * jcf-parse.c (current_file_list): Remove. (java_parse_file): Use build_translation_unit_decl. Adjust. From-SVN: r164331
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
ChangeLog | Loading commit data... | |
ChangeLog.ptr | Loading commit data... | |
ChangeLog.tree-ssa | Loading commit data... | |
Make-lang.in | Loading commit data... | |
boehm.c | Loading commit data... | |
builtins.c | Loading commit data... | |
class.c | Loading commit data... | |
config-lang.in | Loading commit data... | |
constants.c | Loading commit data... | |
decl.c | Loading commit data... | |
except.c | Loading commit data... | |
expr.c | Loading commit data... | |
gcj.texi | Loading commit data... | |
java-except.h | Loading commit data... | |
java-gimplify.c | Loading commit data... | |
java-opcodes.h | Loading commit data... | |
java-tree.def | Loading commit data... | |
java-tree.h | Loading commit data... | |
javaop.def | Loading commit data... | |
javaop.h | Loading commit data... | |
jcf-depend.c | Loading commit data... | |
jcf-dump.c | Loading commit data... | |
jcf-io.c | Loading commit data... | |
jcf-parse.c | Loading commit data... | |
jcf-path.c | Loading commit data... | |
jcf-reader.c | Loading commit data... | |
jcf.h | Loading commit data... | |
jvgenmain.c | Loading commit data... | |
jvspec.c | Loading commit data... | |
lang-specs.h | Loading commit data... | |
lang.c | Loading commit data... | |
lang.opt | Loading commit data... | |
mangle.c | Loading commit data... | |
mangle_name.c | Loading commit data... | |
parse.h | Loading commit data... | |
resource.c | Loading commit data... | |
typeck.c | Loading commit data... | |
verify-glue.c | Loading commit data... | |
verify-impl.c | Loading commit data... | |
verify.h | Loading commit data... | |
win32-host.c | Loading commit data... | |
zextract.c | Loading commit data... | |
zipfile.h | Loading commit data... |