OSDN Git Service

Add argument kind to lto_handle_option.
[pf3gnuchains/gcc-fork.git] / gcc / lto / ChangeLog
index 82b8bec..0ff5222 100644 (file)
@@ -1,3 +1,277 @@
+2010-05-06  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * lto-lang.c (lto_handle_option): Add argument kind.
+
+2010-05-05  Jan Hubicka  <jh@suse.cz>
+
+       * lto.c (lto_promote_cross_file_statics): Compute boundary based on refs.
+
+2010-05-05  Jan Hubicka  <jh@suse.cz>
+
+       * lto.c (lto_1_to_1_map): Partition only needed nodes.
+
+2010-04-30  Jan Hubicka  <jh@suse.cz>
+
+       * lto.c (get_filename_for_set): Look for cgraph node and if none found, use
+       default name.
+       (lto_wpa_write_files): Write any non-empty partition.
+
+2010-04-30  Jan Hubicka  <jh@suse.cz>
+
+       * lto.c: Do not attempt to make constant pool references global.
+
+2010-04-28  Jan Hubicka  <jh@suse.cz>
+
+       * lto/lto.c (lto_read_in_decl_state): Use GGC.
+       (lto_wpa_write_files): Announce what we are writting.
+       (all_file_decl_data): New.
+       (read_cgraph_and_symbols): Use GGC; correct timevars.
+       (do_whole_program_analysis): Collect.
+       * lto/Make-lang.in (lto.o): Fix dependency.
+       * Makefile.in (GTFILES): Add lto-streamer.h.
+       * varpool.c (varpool_analyze_pending_decls): Use TV_VARPOOL.
+       (varpool_assemble_pending_decls): Use VAROUT.
+       * lto-streamer.h (lto_tree_ref_table): Annotate.
+       (lto_in_decl_state): Annotate.
+       (lto_file_decl_data): Annotate.
+
+2010-04-28  Jan Hubicka  <jh@suse.cz>
+
+       * lto.c (lto_varpool_node_sets): New.
+       (lto_1_to_1_map): Partition varpool too.
+       (globalize_context_t, globalize_cross_file_statics,
+       lto_scan_statics_in_ref_table, lto_scan_statics_in_cgraph_node,
+       lto_scan_statics_in_remaining_global_vars): Remove.
+       (lto_promote_cross_file_statics): Rewrite.
+       (get_filename_for_set): Take vset argument.
+       (lto_wpa_write_files): Pass around vsets.
+
+2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
+
+       PR lto/42776
+       * Make-lang.in (LTO_OBJS): Use LTO_BINARY_READER instead of
+       hardcoding 'lto-elf.o'.
+       ($(LTO_EXE)): Use LTO_USE_LIBELF instead of hardcoding '-lelf'.
+
+       * lto-coff.h: New file.
+       * lto-coff.c: Likewise.
+
+2010-04-26  Richard Guenther  <rguenther@suse.de>
+
+       * lto.c (lto_fixup_type): Deal with non-type TYPE_CONTEXT.
+
+2010-04-26  Dave Korn  <dave.korn.cygwin@gmail.com>
+
+       * lto.h (lto_elf_file_open): Rename prototype from this ...
+       (lto_obj_file_open): ... to this.
+       (lto_elf_file_close): Likewise ...
+       (lto_obj_file_close): ... and likewise.
+       (lto_elf_build_section_table): Likewise ...
+       (lto_obj_build_section_table): ... and likewise.
+       (lto_elf_begin_section): Likewise ...
+       (lto_obj_begin_section): ... and likewise.
+       (lto_elf_append_data): Likewise ...
+       (lto_obj_append_data): ... and likewise.
+       (lto_elf_end_section): Likewise ...
+       (lto_obj_end_section): ... and likewise.
+       * lto.c (lto_file_read): Update references to the above.
+       (lto_wpa_write_files): Likewise.
+       (lto_read_all_file_options): Likewise.
+       (read_cgraph_and_symbols): Likewise.
+       * lto-lang.c (LANG_HOOKS_BEGIN_SECTION): Likewise.
+       (LANG_HOOKS_APPEND_DATA): Likewise.
+       (LANG_HOOKS_END_SECTION): Likewise.
+       * lto-elf.c (lto_elf_file_open): Rename from this ...
+       (lto_obj_file_open): ... to this, updating any references.
+       (lto_elf_file_close): Likewise ...
+       (lto_obj_file_close): ... and likewise.
+       (lto_elf_build_section_table): Likewise ...
+       (lto_obj_build_section_table): ... and likewise.
+       (lto_elf_begin_section): Likewise ...
+       (lto_obj_begin_section): ... and likewise.
+       (lto_elf_append_data): Likewise ...
+       (lto_obj_append_data): ... and likewise.
+       (lto_elf_end_section): Likewise ...
+       (lto_obj_end_section): ... and likewise.
+
+2010-04-21  Jan Hubicka  <jh@suse.cz>
+
+       * lto.c (lto_fixup_tree): Do not call wpa fixup.
+       (materialize_cgraph): Likewise.
+
+2010-04-21  Jan Hubicka  <jh@suse.cz>
+
+       * lto.c (lto_wpa_write_files): Update.
+       (read_cgraph_and_symbols): Be more verbose.
+       (materialize_cgraph): Likewise.
+       (do_whole_program_analysis): Likewise.
+
+2010-04-21  Jan Hubicka  <jh@suse.cz>
+
+       * lto.c (globalize_cross_file_statics): When function has address taken,
+       it needs to be public.
+
+2010-04-20  Jan Hubicka  <jh@suse.cz>
+
+       * lto.c (lto_add_inline_clones): Do not track inlined_decls.
+       (lto_add_all_inlinees): Likewise.
+       (lto_wpa_write_files): Likewise.
+
+2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * lto-lang.c (lto_init): Remove second argument in call to
+       build_common_tree_nodes.
+
+2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * lto-elf.c [!HAVE_ELF_GETSHDRSTRNDX] (elf_getshdrstrndx): New
+       function.
+
+2010-03-09  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR bootstrap/43276
+       * lto-elf.c: Define EM_* constants if not already defined.
+
+2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * lto-elf.c (is_compatible_architecture): New static function.
+       (DEFINE_VALIDATE_EHDR): Use it to validate the architecture.
+
+2010-02-11  Richard Guenther  <rguenther@suse.de>
+
+       PR driver/43021
+       * lto-elf.c (lto_elf_file_open): Handle file@offset case more
+       appropriately.
+
+2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
+
+       * lto.c (O_BINARY): Define.
+       (lto_read_section_data): Open file in binary mode.
+       * lto-elf.c (O_BINARY): Define.
+       (lto_elf_file_open): Open file in binary mode. 
+
+2010-01-08  Richard Guenther  <rguenther@suse.de>
+
+       PR lto/42528
+       * lto-lang.c (lto_handle_option): Handle -f[un]signed-char.
+       (lto_init): Do not init char_type_node in a standard way
+       but according to flag_signed_char.
+
+2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR lto/41564
+       * lto.c (DUMPBASE_SUFFIX): New.
+       (lto_execute_ltrans): Append a sequence number to -dumpbase
+       for LTRANS.
+
+2010-01-02  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR lto/42580
+       * lto-elf.c (lto_elf_file_open): Stop if the command line
+       option file is missing.
+
+2009-12-15  Richard Guenther  <rguenther@suse.de>
+
+       * lto.c (lto_fixup_field_decl): Fixup DECL_FIELD_OFFSET.
+       (lto_post_options): Do not disable debuginfo.
+
+2009-12-14  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
+
+       * Make-lang.in ($(LTO_EXE)): Use $(LINKER).
+
+2009-12-11  Richard Guenther  <rguenther@suse.de>
+
+       PR lto/42037
+       * lto.c (lto_resolution_read): Properly grow the vector.
+
+2009-12-11  Richard Guenther  <rguenther@suse.de>
+
+       PR lto/41915
+       * lto-lang.c (lto_init_options): Initialize flag_complex_method
+       to the C99 default.  Do not set flag_unit_at_a_time.
+
+2009-11-28  Jakub Jelinek  <jakub@redhat.com>
+
+       * lto-lang.c (handle_nonnull_attribute): Remove unused attr_arg_num
+       variable.
+
+2009-11-19  Rafael Avila de Espindola  <espindola@google.com>
+
+       PR bootstrap/42096
+       * lto-elf.c (lto_elf_file_open): Use lto_parse_hex.
+       * lto.c (lto_parse_hex): New.
+       (lto_resolution_read): Use lto_parse_hex.
+       * lto.h (lto_parse_hex): New.
+
+2009-11-17  Rafael Avila de Espindola  <espindola@google.com>
+
+       * lto-elf.c (lto_file_init): Add offset argument.
+       (lto_elf_file_open): Record the offset.
+       * lto.c (lto_resolution_read): Change file_name into a lto_file
+       argument. Check offsets.
+       (lto_file_read): Update call to lto_resolution_read.
+       * lto.h (lto_file_struct): Add the offset field.
+
+2009-11-16  Rafael Avila de Espindola  <espindola@google.com>
+
+       * lto-elf.c (lto_elf_file_open): Use strtoll to parse the offset.
+
+2009-11-14  Jan Hubicka  <jh@suse.cz>
+
+       * lto.c (read_cgraph_and_symbols): Set also ipa_transforms_to_apply.
+
+2009-11-12  Rafael Avila de Espindola  <espindola@google.com>
+
+       * lang.opt (fresolution): Renamed from resolution.
+       * lto-lang.c (lto_handle_option): Handle new option name.
+       * lto.c (lto_resolution_read): Add more checks. Discard rest of line.
+
+2009-11-04  Richard Guenther  <rguenther@suse.de>
+            Rafael Avila de Espindola  <espindola@google.com>
+
+       * lto-elf.c (lto_elf_build_section_table): Add the base offset.
+       (lto_elf_file_open): Handle offsets in arguments name@offest.
+
+2009-10-30  Richard Guenther  <rguenther@suse.de>
+
+       PR lto/41858
+       * lto.c (lto_file_read): Do not set file_data->fd.
+       (lto_read_section_data): Use a single-entry file-descriptor cache.
+       Do not check the result of xmalloc.
+       (free_section_data): Do not use file_data->fd.
+       (lto_read_all_file_options): Likewise.
+
+2009-10-22  Richard Guenther  <rguenther@suse.de>
+
+       * lto.c (lto_fixup_jump_functions): Remove.
+       (lto_fixup_decls): Do not fixup jump functions.
+       (read_cgraph_and_symbols): Schedule cgraph merging after
+       summary reading.  Schedule type and decl fixup before
+       summary reading.
+
+2009-10-22  Richard Guenther  <rguenther@suse.de>
+
+       * lto.c (lto_fixup_data_t): Remove free_list member.
+       (lto_fixup_tree): Do not insert into free_list.
+       (free_decl): Remove.
+       (lto_fixup_decls): Remove free-list handling.
+
+2009-10-22  Jan Hubicka  <jh@suse.cz>
+
+       * lto.c (lto_fixup_jump_functions): New function.
+       (lto_fixup_decls): Use it.
+
+2009-10-16  Richard Guenther  <rguenther@suse.de>
+
+       PR lto/41715
+       * lto.c (lto_fixup_tree): Revert last change.
+
+2009-10-14  Richard Guenther  <rguenther@suse.de>
+
+       * lto.c (lto_fixup_tree): In case the prevailing decl is not
+       compatible with the one we replace wrap it around a
+       VIEW_CONVERT_EXPR.
+
 2009-10-09  Richard Guenther  <rguenther@suse.de>
 
        PR lto/41635