aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-10-022009-10-03 Richard Guenther <rguenther@suse.de>ltoRichard Guenther
* gcc_update (lto-plugin/aclocal.m4): Remove rule. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152424 138bc75d-0d04-0410-961f-82ee72b054a4
2009-10-022009-10-02 Diego Novillo <dnovillo@google.com>Diego Novillo
* sourcebuild.texi: Document lto-plugin. * invoke.texi: Add documentation for -use-linker-plugin and complete documentation for -flto. * install.texi: Document --enable-gold. 2009-10-02 Richard Guenther <rguenther@suse.de> PR lto/41547 PR lto/41548 * tree.h (is_lang_specific): Include LANG_TYPE. * tree.c (find_decls_types_r): Manually add interesting parts of TYPE_FIELDS. Walk BINFO_VIRTUALS. Do not walk TYPE_METHODS. testsuite/ChangeLog.lto * g++.dg/lto/20091002-1_0.C: New testcase. * g++.dg/lto/20091002-2_0.C: Likewise.. * g++.dg/lto/20091002-3_0.C: Likewise.. 2009-10-02 Diego Novillo <dnovillo@google.com> * gcc.c-torture/execute/builtins/builtins.exp: Re-enable LTO testing. 2009-10-02 Diego Novillo <dnovillo@google.com> * lto-symtab.h: Update copyright boilerplate. * plugin-api.h: Likewise. 2009-10-02 Diego Novillo <dnovillo@google.com> * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64. * configure.ac: Add AC_SYS_LARGEFILE. * configure: Regenerate. * Makefile.in: Regenerate. * lto-plugin.c: Fix copyright boilerplate. 2009-10-02 Diego Novillo <dnovillo@google.com> * Makefile.am (ACLOCAL_AMFLAGS): Define. * aclocal.m4: Regenerate with aclocal-2.64 * acinclude.m4: Remove. * Makefile.in: Regenerate with automake-1.11 * configure.ac (AC_PREREQ): Update to 2.64. * configure: Regenerate. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152422 138bc75d-0d04-0410-961f-82ee72b054a4
2009-10-02Commit new ChangeLog.lto file.Diego Novillo
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152410 138bc75d-0d04-0410-961f-82ee72b054a4
2009-10-022009-10-02 Rafael Avila de Espindola <espindola@google.com>Rafael Espindola
* Make-lang.in (lto/lto-lang.o): Don't depend on lto/common.h. (lto-lang.c): Don't include lto/common.h. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152409 138bc75d-0d04-0410-961f-82ee72b054a4
2009-10-02really remove common.cRafael Espindola
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152402 138bc75d-0d04-0410-961f-82ee72b054a4
2009-10-022009-10-02 Rafael Avila de Espindola <espindola@google.com>Rafael Espindola
* Makefile.am (liblto_plugin_la_SOURCES): Remove $(top_srcdir)/../gcc/lto/common.c * Makefile.in: Regenerate. 2009-10-02 Rafael Avila de Espindola <espindola@google.com> * Make-lang.in (LTO_OBJS): Remove lto/common.o. (lto/common.o): Remove. * common.c: Remove. * common.h (lto_kind_str): Remove. (lto_visibility_str): Remove. (lto_resolution_str): Make it static. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152401 138bc75d-0d04-0410-961f-82ee72b054a4
2009-10-012009-10-01 Diego Novillo <dnovillo@google.com>Diego Novillo
gcc/ChangeLog.lto * tree.c (fld_worklist_push): Rename from PUSH. Convert to static inline function. Ignore language-specific nodes. Update all users. (find_decls_types_r): Do not traverse the subtrees of language-specific nodes. Do not traverse DECL_INITIAL for TYPE_DECLs. * tree.h (is_lang_specific): New. * langhooks.h (struct lang_hooks_for_decls): Remove may_need_assembler_name_p. Update all users. gcc/cp/ChangeLog.lto * tree.c (cxx_may_need_assembler_name_p): Remove. * cp-objcp-common.h (LANG_HOOKS_MAY_NEED_ASSEMBLER_NAME_P): Remove. * cp-tree.h (cxx_may_need_assembler_name_p): Remove. gcc/ChangeLog.lto * lto-compress.c: Include diagnostic.h, errors.h. Replace some calls to gcc_assert with internal_error. * lto-cgraph.c: Tidy formatting. Replace some calls to gcc_unreachable with internal_error and an explanation. * lto-streamer-out.c: Likewise. * lto-wrapper.c: Fix copyright dates. Include coretypes.h, tm.h and intl.h. (fatal): Surround CMSGID with _(). (fatal_perror): Likewise. (collect_wait): Make two calls to fatal(). (main): Call gcc_init_libintl. * gcc/lto-streamer-in.c (lto_tag_check_set): New. (lto_tag_check_range): New. (lto_tag_check): New. (input_string_internal): Call internal_error instead of gcc_assert. (input_string): Likewise. (lto_input_tree_ref): Call lto_tag_check_range. (lto_input_eh_catch_list): Likewise. (input_eh_lp): Likewise. (input_eh_regions): Likewise. (input_bb): Likewise. (input_function): Likewise. (input_gimple_stmt): Call internal_error instead of gcc_unreachable. (lto_read_body): Call lto_check_version. (lto_materialize_tree): Call lto_tag_check. (lto_input_tree_pointers): Call sorry instead of gcc_unreachable. (lto_get_pickled_tree): Call internal_error instead of gcc_assert. * lto-section-in.c (lto_input_1_unsigned): Call internal_error instead of gcc_assert. (lto_record_renamed_decl): Call XNEW instead of xmalloc. * Makefile.in (lto-wrapper): Add intl.o and $(LIBS) to the link command. (lto-wrapper.o): Add dependency on intl.h. (lto-compress.o): Add dependency on errors.h (lto-streamer-out.o): Likewise. (lto-streamer.o): Add dependency on TOPLEV_H. (lto_get_section_name): Call internal_error instead of gcc_unreachable. * lto-opts.c (lto_read_file_options): Tidy formatting. Call lto_check_version. * lto-streamer.c: Include toplev.h (lto_check_version): New. * lto-streamer.h (lto_check_version): Declare. (lto_is_streamable): Call is_lang_specific. gcc/lto/ChangeLog * lto.c (lto_read_decls): Add comment. Call internal_error instead of gcc_assert. (lto_resolution_read): Likewise. (lto_add_all_inlinees): Tidy. * Make-lang.in: Fix copyright boilerplate. (lto.pdf): New. (lto.install-pdf): New. * lto-tree.h: Fix copyright boilerplate. * lang-specs.h: Likewise. Remove ".lto" entry from compilers fragment. * lto-elf.c: Move inclusion of gelf.h after config.h. Tidy formatting everywhere. * lto.h: Fix copyright boilerplate. Tidy formatting everywhere. * common.c: Likewise. * config-lang.in: Likewise. * common.h: Likewise. * lto-lang.c: Likewise. gcc/testsuite/ChangeLog.lto * gcc.dg/lto/lto.exp: Fix copyright years. * g++.dg/lto/lto.exp: Likewise. * lib/lto.exp: Likewise. maintainer-scripts/ChangeLog.lto * maintainer-scripts/gcc_release (JAVA_DIRS): Remove zlib. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152381 138bc75d-0d04-0410-961f-82ee72b054a4
2009-10-012009-10-01 Richard Guenther <rguenther@suse.de>Richard Guenther
* lto.c (lto_read_section_data): Use plain lseek/read. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152376 138bc75d-0d04-0410-961f-82ee72b054a4
2009-10-012009-10-01 Richard Guenther <rguenther@suse.de>Richard Guenther
* lto.c (LTO_MMAP_IO): Define if we can mmap files and use sysconf to query the system page size. (lto_file_read): Implement fallback using stdio. (free_section_data): Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152374 138bc75d-0d04-0410-961f-82ee72b054a4
2009-10-012009-10-01 Rafael Avila de Espindola <espindola@google.com>Rafael Espindola
* gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass libgcc to the linker. 2009-10-01 Rafael Avila de Espindola <espindola@google.com> * lto-plugin.c (pass_through_items): New. (num_pass_through_items): New. (all_symbols_read_handler): Update to use the -pass-through option. (process_option): Replace -libgcc with -pass-through. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152372 138bc75d-0d04-0410-961f-82ee72b054a4
2009-10-012009-10-01 Richard Guenther <rguenther@suse.de>Richard Guenther
* gimple.c (type_pair_hash): Make symmetric. (type_pair_eq): Likewise. (lookup_type_pair): Increase initial hashtable size. (gimple_force_type_merge): Rely on type-pair symmetry. (visit): Remove excessive checking code. (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions. (gimple_register_type): Remove getenv calls, shrink initial hashtable size. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152371 138bc75d-0d04-0410-961f-82ee72b054a4
2009-10-012009-10-01 Rafael Avila de Espindola <espindola@google.com>Rafael Espindola
* lto-opts.c (lto_write_options): Update call to lto_begin_section. * lto-section-out.c (lto_begin_section): Add a compress argument. Update all callers. (produce_symtab): Don't compress. * lto-section-out.h (lto_begin_section): Add a compress argument. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152370 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-302009-09-30 Rafael Avila de Espindola <espindola@google.com>Rafael Espindola
* lto-plugin.c (onload): Return a ld_plugin_status. Don't require register_cleanup to be set. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152349 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-30really remove itRafael Espindola
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152335 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-302009-09-30 Rafael Avila de Espindola <espindola@google.com>Rafael Espindola
* Makefile.am: Remove all reference to ltosymtab. * Makefile.in: Regenerate. * lto-symtab.c: Remove. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152334 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-302009-09-30 Richard Guenther <rguenther@suse.de>Richard Guenther
PR middle-end/41502 * lto-cgraph.c (lto_output_node): Mark node as not analyzed if it is a boundary node. (input_edge): Remove assertion on extern inlines. * cgraphunit.c (ipa_passes): Do not free extern inline bodies. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152332 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-30ChangeLog.ltoDiego Novillo
* tree.c (need_assembler_name_p): Cleanup. Make sure that functions with cgraph nodes always get an assembler name. * Makefile.in (langhooks.o): Add dependency on output.h (varpool.o): Remove dependency on FLAGS_H. (ipa-reference.o): Add dependency on LTO_STREAMER_H. Remove duplicate entry. (ipa-pure-const.o): Remove dependency on LTO_SECTION_IN_H and LTO_SECTION_OUT_H. Add dependency on LTO_STREAMER_H. cp/ChangeLog.lto * cp/tree.c (cp_free_lang_data): Assert that DECL is a FUNCTION_DECL or a VAR_DECL. Call uses_template_params and check for DECL_TEMPLATE_INSTANTIATION or DECL_TEMPLATE_SPECIALIZATION. testsuite/ChangeLog.lto * gcc.dg/lto/README: Fix names of dg-* commands. * g++.dg/lto/README: Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152326 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-292009-09-29 Ian Lance Taylor <iant@google.com>Diego Novillo
Diego Novillo <dnovillo@google.com> * configure.ac (extra_host_libiberty_configure_flags): Set to --enable-shared. * Makefile.def: For libiberty, set extra_configure_flags to @extra_host_libiberty_configure_flags@. * configure: Regenerate. * Makefile.in: Regenerate. libiberty/ChangeLog.lto 2009-09-29 Diego Novillo <dnovillo@google.com> * configure.ac: Do not build with --enable-shared by default. * configure: Regenerate. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152293 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-29 * lto-lang.c (lto_init): Really fix call toDiego Novillo
build_common_builtin_nodes. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152290 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-29 * lto-lang.c (lto_init): Fix call toDiego Novillo
build_common_builtin_nodes. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152289 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-29 Mainline merge @152279.Diego Novillo
* configure.ac (ACX_PKGVERSION): Update revision merge string. * configure: Regenerate. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152283 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-292009-09-29 Richard Guenther <rguenther@suse.de>Richard Guenther
* g++.dg/20090107-1.C: Require LTO. * g++.dg/20090121-1.C: Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152279 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-292009-09-29 Richard Guenther <rguenther@suse.de>Richard Guenther
* gcc.dg/visibility-7.c: Revert changes. PR middle-end/41502 * cgraphunit.c (ipa_passes): Do not remove bodies of extern inline functions if not generating lto output. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152277 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-292009-09-29 Richard Guenther <rguenther@suse.de>Richard Guenther
PR lto/41467 * lto-symtab.c (lto_symtab_compatible): Fix typos. PR lto/40392 * langhooks.c (lhd_begin_section): Do not align the section. * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Handle LTO. PR lto/40754 * lto-elf.c (init_shdr##BITS): Properly specify alignment in bytes. (first_data_block): New static variable. (lto_elf_append_data): Align the first data block in each section. * lib/torture-options.exp: Do not append an empty option. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152274 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-282009-09-28 Diego Novillo <dnovillo@google.com>Diego Novillo
gcc/ChangeLog.lto * Makefile.in (enable_lto): New. (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO. * cgraph.h (build_cgraph_edges): Remove. * cgraphbuild.c (build_cgraph_edges): Declare static. * collect2.c: Tidy comments and formatting everywhere. Remove #if 0 code. * configure.ac: If enable_languages includes lto, set enable_lto to 'yes'. * dwarf2out.c (add_pure_or_virtual_attribute): Do not test DECL_CONTEXT. * except.c (output_ttype): Tidy comment. * gimple-low.c (gimple_try_catch_may_fallthru): Remove test for gsi_end_p. * ipa-inline.c (pass_inline_parameters): Remove TODO_dump_func. * langhooks-def.h (LANG_HOOKS_MAY_NEED_ASSEMBLER_NAME_P): Define. (LANG_HOOKS_DECLS): Add LANG_HOOKS_MAY_NEED_ASSEMBLER_NAME_P. * langhooks.h (struct lang_hooks_for_decls): Add field may_need_assembler_name_p. * lto-cgraph.c (input_node): Remove FIXME lto marker. * lto-streamer-in.c (unpack_ts_function_decl_value_fields): Call DECL_STATIC_CHAIN instead of DECL_NO_STATIC_CHAIN. * lto-streamer-out.c (pack_ts_function_decl_value_fields): Likewise. * lto-wrapper.c (run_gcc): Tidy. gcc/lto/ChangeLog * lto-lang.c: Tidy. Remove stale FIXME lto markers. * lto.c (strip_extension): New. (get_filename_for_set): Call it. Do not call make_cwd_temp_file. (lto_execute_ltrans): Tidy. Do not pass -fwpa nor -fltrans-* to LTRANS. * opts.c: Tidy formatting and remove stale FIXME lto markers. * tree.c (need_assembler_name_p): Call lang_hooks.decls.may_need_assembler_name_p if set. * varasm.c (default_binds_local_p_1): Remove check for flag_ltrans. * varpool.c (decide_is_variable_needed): Do not test for in_lto_p. gcc/cp/ChangeLog.lto * cp-objcp-common.h (LANG_HOOKS_MAY_NEED_ASSEMBLER_NAME_P): Define. * cp-tree.h (cxx_may_need_assembler_name_p): Declare. * mangle.c (decl_is_template_id): Remove FIXME lto marker. (write_template_arg): Likewise. * tree.c (cxx_may_need_assembler_name_p): New. gcc/testsuite/ChangeLog.lto * gcc.c-torture/execute/builtins/builtins.exp: Do not use LTO_TORTURE_OPTIONS. * gcc.misc-tests/dectest.exp: Likewise. * gcc.target/x86_64/abi/abi-x86_64.exp: Likewise. * gcc.target/x86_64/abi/avx/abi-avx.exp: Likewise. * lib/fortran-torture.exp: Likewise. * lib/gfortran-dg.exp: Likewise. * lib/c-torture.exp: Only use '-O2 -flto' and '-O2 -fwhopr' in LTO_TORTURE_OPTIONS. * lib/gcc-dg.exp: Likewise. * lib/target-supports.exp (check_effective_target_lto): Test if ENABLE_LTO is set instead of doing a compile test. include/ChangeLog.lto: * libiberty.h (make_cwd_temp_file): Remove. libiberty/ChangeLog.lto: Revert: 2008-10-30 Simon Baldwin <simonb@google.com> * make-temp-file.c (make_temp_file_common): Split out from original make_temp_file() function. * (make_temp_file): Call make_temp_file_common() with tmp dir. * (make_cwd_temp_file): New. Call make_temp_file_common() with "./". libstdc++-v3/ChangeLog.lto: * testsuite/lib/libstdc++.exp (v3-build_support): Do not test for LTO support. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152238 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-22 Mainline merge @152039.Diego Novillo
* configure.ac (ACX_PKGVERSION): Update revision merge string. * configure: Regenerate. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152048 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-222009-09-22 Richard Guenther <rguenther@suse.de>Richard Guenther
PR testsuite/41380 * lib/lto.exp (lto-execute): Remove executables. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@152020 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-222009-09-22 Richard Guenther <rguenther@suse.de>Richard Guenther
* ltrans-driver: Really remove. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151982 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-222009-09-22 Richard Guenther <rguenther@suse.de>Richard Guenther
PR lto/41379 * toplev.c (finalize): In WPA mode remove the asm file. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151974 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-222009-09-22 Richard Guenther <rguenther@suse.de>Richard Guenther
PR lto/39276 * doc/invoke.texi (-fltrans-driver): Remove. lto/ * lto.c (lto_execute_ltrans): Perform ltrans phase manually. * Make-lang.in: Remove ltrans-driver stuff. * config-lang.in: Likewise. * lang.opt (fltrans-driver): Remove. * lto-lang.c (lto_init_options): Remove code initializing ltrans_driver. * ltrans-driver: Remove. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151973 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-21 Mainline merge @151721.Diego Novillo
* configure.ac (ACX_PKGVERSION): Update revision merge string. * configure: Regenerate. * gimple.h (gimple_eh_must_not_throw_set_fndecl): New. * gimple.c (gimple_build_eh_must_not_throw): Call it. * lto-streamer-in.c (input_bitmap): Remove. (get_label_decl): Remove. (input_type_ref): Remove. (input_labels): Remove. (lto_input_tree_ref): Handle LTO_label_decl_ref like any other decl ref. (lto_input_eh_catch_list): New. (input_eh_region): Rewrite to handle new EH data structures. (input_eh_lp): New. (fixup_eh_region_pointers): Rewrite to handle new EH data structures. (FIXUP_EH_REGION): Rename from fixup_eh_region. (FIXUP_EH_LP): Define. (input_eh_regions): Rewrite to handle new EH data structures. (lto_input_location): Move earlier in the file. (input_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW and GIMPLE_EH_DISPATCH. (input_bb): Do not expect REGION to be a valid index into the EH region array. (unpack_ts_decl_common_value_fields): Decode EH_LANDING_PAD_NR. * lto-streamer-out.c (eq_label_slot_node): Remove. (hash_label_slot_node): Remove. (output_bitmap): Remove. (output_label_ref): Remove. (pack_ts_decl_common_value_fields): Encode EH_LANDING_PAD_NR. (lto_output_tree_ref): Handle LABEL_DECL like any other decl. (output_eh_try_list): New. (output_eh_region): Rewrite to handle new EH data structures. (output_eh_lp): New. (output_eh_regions): Rewrite to handle new EH data structures. (output_named_labels): Remove. (output_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW and GIMPLE_EH_DISPATCH. (output_bb): Call lookup_stmt_eh_lp_fn instead of lookup_stmt_eh_region_fn. Do not expect its return value to be positive. * lto-streamer.h (enum LTO_tags): Remove values LTO_eh_table_cleanup0, LTO_eh_table_cleanup1, LTO_eh_table_try0, LTO_eh_table_try1, LTO_eh_table_catch0, LTO_eh_table_catch1, LTO_eh_table_allowed0, LTO_eh_table_allowed1, LTO_eh_table_must_not_throw0, LTO_eh_table_must_not_throw1, LTO_eh_table_throw0, LTO_eh_table_throw1 and LTO_eh_table_shared_region. Add values LTO_ert_cleanup, LTO_ert_try, LTO_ert_allowed_exceptions, LTO_ert_must_not_throw, LTO_eh_landing_pad, and LTO_eh_catch. Remove value LTO_local_label_decl and LTO_global_label_decl. Add value LTO_label_decl_ref. Update all users. (struct output_block): Remove fields named_label_stream, label_hash_table, next_named_label_index, next_unnamed_label_index and named_labels. Update all users. * lto-wpa-fixup.c (lto_fixup_nothrow_decls): Call lookup_stmt_eh_lp_fn instead of lookup_stmt_eh_region_fn. Call remove_stmt_from_eh_lp_fn instead of remove_stmt_from_eh_region_fn . lto/ChangeLog * lto-lang.c (lto_define_builtins): Remove superfluous calls to targetm.init_builtins and build_common_builtin_nodes. (lto_init): Add targetm.arm_eabi_unwinder as parameter to build_common_builtin_nodes. * lto.c (lto_materialize_function): Do nothing if NODE is a clone. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151921 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-152009-09-15 Richard Guenther <rguenther@suse.de>Richard Guenther
* tree.c (make_node_stat): Remove setting of DECL_FUNCTION_PERSONALITY. * tree.h (eh_personality_decl): Remove. * toplev.c (eh_personality_decl): Likewise. * dwarf2out.c (dwarf2out_do_cfi_asm): Remove obsolete check. (dwarf2out_begin_prologue): Remove write-only variable. * gimple.h (mark_addressable): Remove duplicate prototype. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151719 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-15 * configure.ac: Add link test to check for some of theDiego Novillo
libelf functions used. Tidy some formatting. * configure: Regenerate. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151718 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-152009-09-15 Richard Guenther <rguenther@suse.de>Richard Guenther
PR lto/41230 * lto-streamer-in.c (input_bb): Drop debug stmts on-the-fly if we can't deal with them. * gcc.dg/lto/20090914_0.c: New testcase. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151714 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-142009-09-14 Richard Guenther <rguenther@suse.de>Richard Guenther
* gcc.misc-tests/i386-prefetch.exp: Revert to trunk state. * gcc.dg/exceptions.c: Remove. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151689 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-142009-09-14 Richard Guenther <rguenther@suse.de>Richard Guenther
Mainline merge @151681. * configure.ac (ACX_PKGVERSION): Update revision merge string. * configure: Regenerate. * lto-streamer-in.c (lto_eh_runtime_type): Remove. (lto_init_eh): Do not set lang_eh_runtime_type. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151688 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-112009-09-11 Diego Novillo <dnovillo@google.com>Diego Novillo
Mainline merge @151592. * configure.ac (ACX_PKGVERSION): Update revision merge string. * configure: Regenerate. 2009-09-11 Diego Novillo <dnovillo@google.com> * cgraph.c (cgraph_clone_input_node): Remove. Update all users to call cgraph_clone_node instead. (cgraph_is_clone_node): Remove unused function. * ipa.c (cgraph_remove_unreachable_nodes): Do not set disregard_inline_limits to false. (gate_ipa_fun_and_var_visibility): Remove. Update pass_ipa_function_and_variable_visibility. * lto-cgraph.c (lto_output_node): Output field count. Reorganize packing of node bitflags to follow the same order that they're declared. Add fields address_taken, abstract_and_needed, reachable, process, alias and finalized_by_frontend. (input_overwrite_node): Corresponding changes. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151637 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-082009-09-08 Richard Guenther <rguenther@suse.de>Richard Guenther
* tree.c (free_lang_data_in_type): Restore not freeing the main variant chains. (free_lang_data): Restore re-setting char_type_node. (gate_free_lang_data): Do not re-run free-lang-data from lto1. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151517 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-072009-09-07 Diego Novillo <dnovillo@google.com>Diego Novillo
Mainline merge @151374. * configure.ac (ACX_PKGVERSION): Update revision merge string. * configure: Regenerate. 2009-09-07 Richard Guenther <rguenther@google.com> * lto-streamer-in.c (lto_register_deferred_decls_in_symtab): New. (deferred_global_decls): New file local. (lto_register_var_decl_in_symtab): Remove arguments DATA_IN and IX. Update all callers. If DECL is TREE_PUBLIC, add it to deferred_global_decls. (lto_register_function_decl_in_symtab): Remove argument IX. If DECL is TREE_PUBLIC, add it to deferred_global_decls. Update all callers. * lto-streamer.h (lto_register_deferred_decls_in_symtab): Declare. * lto.c (lto_read_decls): Call it after reading all decls. 2009-09-07 Diego Novillo <dnovillo@google.com> * builtins.c (is_builtin_fn): New. (is_builtin_name): Add comment. * c-opts.c (c_common_post_options): Disable var tracking when LTO is enabled. * gimple.c (gimple_force_type_merge): Move below lookup_type_pair and call it. (gimple_decl_printable_name): Do not use DMGL_TYPES in call to cplus_demangle_v3. * lto-streamer-in.c (lto_materialize_tree): Do not read expected tree node size. (lto_input_ts_binfo_tree_pointers): Read BINFO_BASE_BINFOS as a zero-terminated list. * lto-streamer-out.c (lto_output_tree_ref): Do not expect DECL_CONTEXT for CONST_DECLs to be NULL. (lto_output_ts_binfo_tree_pointers): Output BINFO_BASE_BINFOS as a zero-terminated list. (lto_output_tree_header): Do not emit size of EXPR. (write_symbol_vec): Call is_builtin_fn. * lto-streamer.c (lto_orig_address_map, lto_orig_address_get, lto_orig_address_remove): Enable only with LTO_STREAMER_DEBUG. * lto-streamer.h (LTO_STREAMER_DEBUG): Add with comment and undefined by default. (lto_orig_address_map, lto_orig_address_get, lto_orig_address_remove): Declare only with LTO_STREAMER_DEBUG. * lto-symtab.c (lto_symtab_prevailing_decl): Call is_builtin_fn. (lto_symtab_get_resolution): Likewise. * tree-parloops.c (try_create_reduction_list): Fix for 32bit hosts. * tree.c (free_lang_data_in_binfo): Factor out of ... (free_lang_data_in_type): ... here. (need_assembler_name_p): Return false for non-public functions. (free_lang_data_in_decl): Do not remove DECL_CONTEXT from CONST_DECLs. (find_decls_types_r): Walk TYPE_BINFO for records and unions. * tree.h (RECORD_OR_UNION_TYPE_P): Declare. Update all users of the predicate. (AGGREGATE_TYPE_P): Call it. (is_builtin_fn): Declare. cp/ChangeLog.lto 2009-09-07 Diego Novillo <dnovillo@google.com> * mangle.c (decl_is_template_id): Protect calls to PRIMARY_TEMPLATE_P from IDENTIFIER_NODE and OVERLOAD. (write_template_arg): Do not call write_template_arg_literal if NODE is a CONST_DECL without a tcc_constant initializer. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151483 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-04 * lto-elf.c (validate_file): Replace call toDiego Novillo
elf_getshstrndx with call to elf_getshdrstrndx. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151422 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-022009-09-02 Richard Guenther <rguenther@suse.de>Richard Guenther
Mainline merge @151318. * configure.ac (ACX_PKGVERSION): Update revision merge string. * configure: Regenerate. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151325 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-012009-09-01 Richard Guenther <rguenther@suse.de>Richard Guenther
* tree.c (free_lang_data): Reset fold_obj_type_ref langhook. cp/ * cp-lang.c (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Define again. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151268 138bc75d-0d04-0410-961f-82ee72b054a4
2009-09-012009-09-01 Richard Guenther <rguenther@suse.de>Richard Guenther
PR lto/41199 * gcc.dg/20081223-1.c: Conditionalize -fwhopr on target lto. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151265 138bc75d-0d04-0410-961f-82ee72b054a4
2009-08-292009-08-28 Richard Guenther <rguenther@suse.de>Richard Guenther
Mainline merge @151178. * configure.ac (ACX_PKGVERSION): Update revision merge string. * configure: Regenerate. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151200 138bc75d-0d04-0410-961f-82ee72b054a4
2009-08-272009-08-27 Richard Guenther <rguenther@suse.de>Richard Guenther
PR lto/41092 * lto-streamer-out.c (output_eh_regions): Always output a eh region if exceptions are enabled. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151143 138bc75d-0d04-0410-961f-82ee72b054a4
2009-08-262009-08-26 Richard Guenther <rguenther@suse.de>Richard Guenther
* tree-data-ref.h: Revert changes. * gimplify.c: Likewise. * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise. * tree-ssa-pre.c (create_expression_by_pieces): Likewise. * tree-cfg.c (gimple_dump_cfg): Likewise. * tree-flow.h (mark_addressable): Remove duplicate prototype. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151123 138bc75d-0d04-0410-961f-82ee72b054a4
2009-08-262009-08-26 Richard Guenther <rguenther@suse.de>Richard Guenther
* tree-into-ssa.c (dump_tree_ssa): Revert change to use get_name instead of the decl_printable_name langhook. * tree-stdarg.c (execute_optimize_stdarg): Likewise. * tree-dfa.c (dump_dfa_stats): Likewise. * tree-cfg.c (gimple_dump_cfg): Likewise. (dump_cfg_stats): Likewise. (gimple_cfg2vcg): Likewise. (dump_function_to_file): Likewise. * passes.c (pass_init_dump_file): Likewise. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151118 138bc75d-0d04-0410-961f-82ee72b054a4
2009-08-252009-08-25 Richard Guenther <rguenther@suse.de>Richard Guenther
* tree-eh.c (inlinable_call_p): Assume calls might be inlined when building with -flto or -fwhopr. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151083 138bc75d-0d04-0410-961f-82ee72b054a4
2009-08-242009-08-24 Richard Guenther <rguenther@suse.de>Richard Guenther
PR lto/41079 * lto-streamer-out.c (output_gimple_stmt): Only stream needed fields. Do not stream pointer garbage. * lto-streamer-in.c (output_gimple_stmt): Adjust accordingly. Structure like output_gimple_stmt. Do not needlessly zero fields. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151057 138bc75d-0d04-0410-961f-82ee72b054a4
2009-08-242009-08-24 Richard Guenther <rguenther@suse.de>Richard Guenther
Mainline merge @151053. * configure.ac (ACX_PKGVERSION): Update revision merge string. * configure: Regenerate. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/lto@151056 138bc75d-0d04-0410-961f-82ee72b054a4