gcc.git
12 years ago2009-10-03 Richard Guenther <rguenther@suse.de>heads/lto
rguenth [Fri, 2 Oct 2009 22:14:38 +0000 (2 22:14 +0000)]
2009-10-03  Richard Guenther  <rguenther@suse.de>

* gcc_update (lto-plugin/aclocal.m4): Remove rule.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152424 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-10-02 Diego Novillo <dnovillo@google.com>
dnovillo [Fri, 2 Oct 2009 21:31:43 +0000 (2 21:31 +0000)]
2009-10-02  Diego Novillo  <dnovillo@google.com>

* 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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152422 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoCommit new ChangeLog.lto file.
dnovillo [Fri, 2 Oct 2009 16:43:47 +0000 (2 16:43 +0000)]
Commit new ChangeLog.lto file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152410 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-10-02 Rafael Avila de Espindola <espindola@google.com>
espindola [Fri, 2 Oct 2009 16:42:00 +0000 (2 16:42 +0000)]
2009-10-02  Rafael Avila de Espindola  <espindola@google.com>

* 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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152409 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoreally remove common.c
espindola [Fri, 2 Oct 2009 14:06:24 +0000 (2 14:06 +0000)]
really remove common.c

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152402 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-10-02 Rafael Avila de Espindola <espindola@google.com>
espindola [Fri, 2 Oct 2009 14:05:43 +0000 (2 14:05 +0000)]
2009-10-02  Rafael Avila de Espindola  <espindola@google.com>

* 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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152401 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-10-01 Diego Novillo <dnovillo@google.com>
dnovillo [Thu, 1 Oct 2009 19:24:49 +0000 (1 19:24 +0000)]
2009-10-01  Diego Novillo  <dnovillo@google.com>

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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152381 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-10-01 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 1 Oct 2009 15:32:01 +0000 (1 15:32 +0000)]
2009-10-01  Richard Guenther  <rguenther@suse.de>

* lto.c (lto_read_section_data): Use plain lseek/read.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152376 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-10-01 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 1 Oct 2009 14:55:55 +0000 (1 14:55 +0000)]
2009-10-01  Richard Guenther  <rguenther@suse.de>

* 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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152374 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-10-01 Rafael Avila de Espindola <espindola@google.com>
espindola [Thu, 1 Oct 2009 14:16:07 +0000 (1 14:16 +0000)]
2009-10-01  Rafael Avila de Espindola  <espindola@google.com>

* 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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152372 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-10-01 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 1 Oct 2009 13:59:31 +0000 (1 13:59 +0000)]
2009-10-01  Richard Guenther  <rguenther@suse.de>

* 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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152371 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-10-01 Rafael Avila de Espindola <espindola@google.com>
espindola [Thu, 1 Oct 2009 13:21:49 +0000 (1 13:21 +0000)]
2009-10-01  Rafael Avila de Espindola  <espindola@google.com>

* 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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152370 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-09-30 Rafael Avila de Espindola <espindola@google.com>
espindola [Wed, 30 Sep 2009 22:36:06 +0000 (30 22:36 +0000)]
2009-09-30  Rafael Avila de Espindola  <espindola@google.com>

* lto-plugin.c (onload): Return a ld_plugin_status. Don't require register_cleanup to be set.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152349 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoreally remove it
espindola [Wed, 30 Sep 2009 16:23:38 +0000 (30 16:23 +0000)]
really remove it

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152335 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-09-30 Rafael Avila de Espindola <espindola@google.com>
espindola [Wed, 30 Sep 2009 16:19:30 +0000 (30 16:19 +0000)]
2009-09-30  Rafael Avila de Espindola  <espindola@google.com>

* Makefile.am: Remove all reference to ltosymtab.
* Makefile.in: Regenerate.
* lto-symtab.c: Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152334 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-09-30 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 30 Sep 2009 16:00:07 +0000 (30 16:00 +0000)]
2009-09-30  Richard Guenther  <rguenther@suse.de>

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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152332 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agoChangeLog.lto
dnovillo [Wed, 30 Sep 2009 13:36:45 +0000 (30 13:36 +0000)]
ChangeLog.lto

* 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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152326 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-09-29 Ian Lance Taylor <iant@google.com>
dnovillo [Tue, 29 Sep 2009 20:42:08 +0000 (29 20:42 +0000)]
2009-09-29  Ian Lance Taylor  <iant@google.com>
    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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152293 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * lto-lang.c (lto_init): Really fix call to
dnovillo [Tue, 29 Sep 2009 18:58:19 +0000 (29 18:58 +0000)]
* lto-lang.c (lto_init): Really fix call to
build_common_builtin_nodes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152290 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * lto-lang.c (lto_init): Fix call to
dnovillo [Tue, 29 Sep 2009 18:53:08 +0000 (29 18:53 +0000)]
* lto-lang.c (lto_init): Fix call to
build_common_builtin_nodes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152289 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago Mainline merge @152279.
dnovillo [Tue, 29 Sep 2009 17:36:23 +0000 (29 17:36 +0000)]
Mainline merge @152279.

* configure.ac (ACX_PKGVERSION): Update revision merge string.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152283 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-09-29 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 29 Sep 2009 14:52:03 +0000 (29 14:52 +0000)]
2009-09-29  Richard Guenther  <rguenther@suse.de>

* g++.dg/20090107-1.C: Require LTO.
* g++.dg/20090121-1.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152279 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-09-29 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 29 Sep 2009 14:20:37 +0000 (29 14:20 +0000)]
2009-09-29  Richard Guenther  <rguenther@suse.de>

        * 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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152277 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-09-29 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 29 Sep 2009 12:56:29 +0000 (29 12:56 +0000)]
2009-09-29  Richard Guenther  <rguenther@suse.de>

        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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152274 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-09-28 Diego Novillo <dnovillo@google.com>
dnovillo [Mon, 28 Sep 2009 15:40:44 +0000 (28 15:40 +0000)]
2009-09-28  Diego Novillo  <dnovillo@google.com>

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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152238 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago Mainline merge @152039.
dnovillo [Tue, 22 Sep 2009 21:31:32 +0000 (22 21:31 +0000)]
Mainline merge @152039.

* configure.ac (ACX_PKGVERSION): Update revision merge string.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152048 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-09-22 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 22 Sep 2009 15:48:39 +0000 (22 15:48 +0000)]
2009-09-22  Richard Guenther  <rguenther@suse.de>

PR testsuite/41380
* lib/lto.exp (lto-execute): Remove executables.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@152020 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-09-22 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 22 Sep 2009 15:10:31 +0000 (22 15:10 +0000)]
2009-09-22  Richard Guenther  <rguenther@suse.de>

        * ltrans-driver: Really remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@151982 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-09-22 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 22 Sep 2009 11:29:10 +0000 (22 11:29 +0000)]
2009-09-22  Richard Guenther  <rguenther@suse.de>

PR lto/41379
* toplev.c (finalize): In WPA mode remove the asm file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@151974 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-09-22 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 22 Sep 2009 11:28:14 +0000 (22 11:28 +0000)]
2009-09-22  Richard Guenther  <rguenther@suse.de>

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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@151973 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago Mainline merge @151721.
dnovillo [Mon, 21 Sep 2009 14:31:41 +0000 (21 14:31 +0000)]
Mainline merge @151721.

* 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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@151921 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-09-15 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 15 Sep 2009 12:54:06 +0000 (15 12:54 +0000)]
2009-09-15  Richard Guenther  <rguenther@suse.de>

* 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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@151719 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * configure.ac: Add link test to check for some of the
dnovillo [Tue, 15 Sep 2009 12:49:34 +0000 (15 12:49 +0000)]
* configure.ac: Add link test to check for some of the
libelf functions used.
Tidy some formatting.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@151718 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-09-15 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 15 Sep 2009 10:14:29 +0000 (15 10:14 +0000)]
2009-09-15  Richard Guenther  <rguenther@suse.de>

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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@151714 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-09-14 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 14 Sep 2009 14:33:58 +0000 (14 14:33 +0000)]
2009-09-14  Richard Guenther  <rguenther@suse.de>

* gcc.misc-tests/i386-prefetch.exp: Revert to trunk state.
* gcc.dg/exceptions.c: Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@151689 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-09-14 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 14 Sep 2009 14:21:40 +0000 (14 14:21 +0000)]
2009-09-14  Richard Guenther  <rguenther@suse.de>

        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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@151688 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-09-11 Diego Novillo <dnovillo@google.com>
dnovillo [Fri, 11 Sep 2009 15:33:07 +0000 (11 15:33 +0000)]
2009-09-11  Diego Novillo  <dnovillo@google.com>

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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@151637 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-09-08 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 8 Sep 2009 16:25:45 +0000 (8 16:25 +0000)]
2009-09-08  Richard Guenther  <rguenther@suse.de>

* 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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@151517 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-09-07 Diego Novillo <dnovillo@google.com>
dnovillo [Mon, 7 Sep 2009 16:15:52 +0000 (7 16:15 +0000)]
2009-09-07  Diego Novillo  <dnovillo@google.com>

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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@151483 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * lto-elf.c (validate_file): Replace call to
dnovillo [Fri, 4 Sep 2009 14:26:12 +0000 (4 14:26 +0000)]
* lto-elf.c (validate_file): Replace call to
elf_getshstrndx with call to elf_getshdrstrndx.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@151422 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-09-02 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 2 Sep 2009 12:37:56 +0000 (2 12:37 +0000)]
2009-09-02  Richard Guenther  <rguenther@suse.de>

        Mainline merge @151318.

        * configure.ac (ACX_PKGVERSION): Update revision merge string.
        * configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@151325 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-09-01 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 1 Sep 2009 11:24:43 +0000 (1 11:24 +0000)]
2009-09-01  Richard Guenther  <rguenther@suse.de>

* 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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@151268 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-09-01 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 1 Sep 2009 10:34:17 +0000 (1 10:34 +0000)]
2009-09-01  Richard Guenther  <rguenther@suse.de>

PR lto/41199
* gcc.dg/20081223-1.c: Conditionalize -fwhopr on target lto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@151265 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-08-28 Richard Guenther <rguenther@suse.de>
rguenth [Sat, 29 Aug 2009 10:27:57 +0000 (29 10:27 +0000)]
2009-08-28  Richard Guenther  <rguenther@suse.de>

        Mainline merge @151178.

        * configure.ac (ACX_PKGVERSION): Update revision merge string.
        * configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@151200 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-08-27 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 27 Aug 2009 16:10:15 +0000 (27 16:10 +0000)]
2009-08-27  Richard Guenther  <rguenther@suse.de>

PR lto/41092
* lto-streamer-out.c (output_eh_regions): Always output a
eh region if exceptions are enabled.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@151143 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-08-26 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 26 Aug 2009 14:28:04 +0000 (26 14:28 +0000)]
2009-08-26  Richard Guenther  <rguenther@suse.de>

* 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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@151123 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-08-26 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 26 Aug 2009 09:10:42 +0000 (26 09:10 +0000)]
2009-08-26  Richard Guenther  <rguenther@suse.de>

* 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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@151118 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-08-25 Richard Guenther <rguenther@suse.de>
rguenth [Tue, 25 Aug 2009 15:59:08 +0000 (25 15:59 +0000)]
2009-08-25  Richard Guenther  <rguenther@suse.de>

* tree-eh.c (inlinable_call_p): Assume calls might be inlined
when building with -flto or -fwhopr.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@151083 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-08-24 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 24 Aug 2009 15:33:35 +0000 (24 15:33 +0000)]
2009-08-24  Richard Guenther  <rguenther@suse.de>

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: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@151057 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-08-24 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 24 Aug 2009 14:32:17 +0000 (24 14:32 +0000)]
2009-08-24  Richard Guenther  <rguenther@suse.de>

        Mainline merge @151053.

        * configure.ac (ACX_PKGVERSION): Update revision merge string.
        * configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@151056 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-08-20 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 20 Aug 2009 20:58:42 +0000 (20 20:58 +0000)]
2009-08-20  Richard Guenther  <rguenther@suse.de>

* lto-streamer-out.c (lto_output_tree_header): Wrap streamer
debugging code inside LTO_STREAMER_DEBUG.
* lto-streamer-in.c (lto_materialize_tree): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@150976 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-08-19 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 19 Aug 2009 19:40:28 +0000 (19 19:40 +0000)]
2009-08-19  Richard Guenther  <rguenther@suse.de>

* lto-streamer.c (lto_get_common_nodes): Skip itk_char.
* tree.c (free_lang_data): Merge char_type_node with the
appropriately signed variant.

lto/
* lto-lang.c (lto_init): Merge char_type_node with the
appropriately signed variant.

2009-08-19  Richard Guenther  <rguenther@suse.de>

PR lto/41071
* gimple.c (gimple_get_alias_set): Pointers to CV qualified variants
have the same alias-set as unqualified variants.

2009-08-19  Richard Guenther  <rguenther@suse.de>

PR lto/41071
* gimple.c (gimple_register_type): Unlink a pointer from its
pointer chain if we will use a different type for it.
* lto-streamer-out.c (lto_output_ts_type_tree_pointers):
Do not output TYPE_POINTER_TO, TYPE_REFERENCE_TO and
TYPE_NEXT_PTR/REF_TO.
* lto-streamer-in.c (lto_input_ts_type_tree_pointers):
Do not input TYPE_POINTER_TO, TYPE_REFERENCE_TO and
TYPE_NEXT_PTR/REF_TO.

lto/
* lto.c (lto_fixup_common): Re-build the pointer-to chain part one.
(lto_fixup_type): Re-build the pointer-to chain part two.

2009-08-19  Richard Guenther  <rguenther@suse.de>

PR lto/41071
* gimple.c (gimple_register_type): Unlink a non-main-variant from its
variant chain if we will use a different type for it.
* tree.c (free_lang_data_in_type): Do not free the variant chains.
* lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
not output TYPE_NEXT_VARIANT.
* lto-streamer-in.c (lto_input_ts_type_tree_pointers): Do not
input TYPE_NEXT_VARIANT.

lto/
* lto.c (lto_fixup_type): Re-build the type variant chain.

2009-08-19  Richard Guenther  <rguenther@suse.de>

PR lto/41071
* gimple.c (compare_type_names_p): Do not look at the
types main variant.
* lto-streamer-out.c (output_type_ref): Remove hack for char_type_node.
* lto-streamer.c (lto_streamer_cache_insert_1):
Remove hack for char_type_node.
(lto_record_common_node): Canonicalize types of nodes we record.
(lto_get_common_nodes): Record integer and size types first.
Defer to lto_record_common_node for registering and canonicalizing
types.

lto/
* lto.c (lto_fixup_constructor): New function.
(lto_fixup_tree): Replace all types.  Properly fixup
constructors and constants.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@150943 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-08-17 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 17 Aug 2009 16:27:23 +0000 (17 16:27 +0000)]
2009-08-17  Richard Guenther  <rguenther@suse.de>

        Mainline merge @150842.

        * configure.ac (ACX_PKGVERSION): Update revision merge string.
        * configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@150850 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-08-15 Richard Guenther <rguenther@suse.de>
rguenth [Sat, 15 Aug 2009 09:42:28 +0000 (15 09:42 +0000)]
2009-08-15  Richard Guenther  <rguenther@suse.de>

PR lto/41069
* gimple.c (gimple_types_compatible_p): Handle vector and complex
types.
* lto-streamer-out.c (lto_output_ts_decl_minimal_tree_pointers):
Do not give names to unnamed things.

* gfortran.dg/lto/lto.exp: Adjust glob pattern.
* gfortran.dg/lto/pr41069_0.f90: New testcase.
* gfortran.dg/lto/pr41069_1.f90: Likewise.
* gfortran.dg/lto/pr41069_2.f90: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@150791 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-08-15 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 14 Aug 2009 22:18:41 +0000 (14 22:18 +0000)]
2009-08-15  Richard Guenther  <rguenther@suse.de>

* lto-symtab.c (merge_incomplete_and_complete_type): Use
gimple_force_type_merge.
* gimple.c (gimple_force_type_merge): New function.
(gimple_types_compatible_p): Use it.
* gimple.h (gimple_force_type_merge): Declare.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@150782 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-08-14 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 14 Aug 2009 18:43:29 +0000 (14 18:43 +0000)]
2009-08-14  Richard Guenther  <rguenther@suse.de>

* lto-symtab.c (lto_symtab_merge_decl): Exchange TREE_CHAIN use
for DECL_LANG_SPECIFIC.
(lto_symtab_prevailing_decl): Likewise.

lto/
* lto.c (read_cgraph_and_symbols): Exchange TREE_CHAIN use
for DECL_LANG_SPECIFIC.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@150772 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * tree.c (free_lang_data): Reset lang_hooks.expr_size.
dnovillo [Fri, 14 Aug 2009 18:36:07 +0000 (14 18:36 +0000)]
* tree.c (free_lang_data): Reset lang_hooks.expr_size.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@150771 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-08-14 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 14 Aug 2009 16:49:02 +0000 (14 16:49 +0000)]
2009-08-14  Richard Guenther  <rguenther@suse.de>

* lto-streamer.c (lto_get_common_nodes): Register the common
types.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@150761 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-08-13 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 13 Aug 2009 15:44:01 +0000 (13 15:44 +0000)]
2009-08-13  Richard Guenther  <rguenther@suse.de>

PR lto/41032
* tree.c (free_lang_data): NULL the types_compatible_p langhook.
* gimple.c (gtc_visited): Global type compatibility hashtable.
(compare_field_offset): New helper function.
(gimple_compare_types): Fold into ...
(gimple_types_compatible_p): ... here.  Types with differing
hash values are not compatible.  Adjust function now that it
is no longer used as types_compatible_p langhook.  Complete
incomplete pointer targets.
(iterative_hash_type_name): New helper function.
(iterative_hash_gimple_type): Do not hash type sizes.  Do not
recurse into aggregate pointer targets.  Properly hash
complex and vector types.  Hash the name of record types.
(print_gimple_types_stats): Print stats of gtc_visited.
* lto-symtab.c (lto_merge_qualifiers): Remove.
(lto_merge_types): Likewise.
(merge_incomplete_and_complete_type): New helper function.
(maybe_merge_incomplete_and_complete_type): Likewise.
(lto_symtab_compatible): Remove do_warn arg.  Complete types
during decl merging.  Forcefully merge more types than
elsewhere.  Do not compare DECL_MODE.
(lto_symtab_prevailing_decl): Use gimple_types_compatible_p, not
lto_symtab_compatible for finding the decl we merged with.

        lto/
* lto-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Define to NULL.

* gcc.dg/lto/20090812_0.c: New testcase.
* gcc.dg/lto/20090812_1.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@150719 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-08-12 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 12 Aug 2009 21:12:24 +0000 (12 21:12 +0000)]
2009-08-12  Richard Guenther  <rguenther@suse.de>

        Mainline merge @150705.

        * configure.ac (ACX_PKGVERSION): Update revision merge
        string.
        * configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@150706 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-08-07 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 7 Aug 2009 22:33:29 +0000 (7 22:33 +0000)]
2009-08-07  Richard Guenther  <rguenther@suse.de>

        Mainline merge @150572.
        * configure.ac (ACX_PKGVERSION): Update revision merge string.
        * configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@150573 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-08-07 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 7 Aug 2009 08:21:01 +0000 (7 08:21 +0000)]
2009-08-07  Richard Guenther  <rguenther@suse.de>

* lto-streamer-out.c (pack_ts_type_value_fields): Stream out
the alias-set if it is zero, else stream out -1.
* lto-streamer-in.c (unpack_ts_type_value_fields): Stream in
the alias-set.
* tree.c (free_lang_data_in_type): Ask the frontend about the
alias-set of the type and record it if it is zero.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@150558 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-08-03 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 3 Aug 2009 08:46:33 +0000 (3 08:46 +0000)]
2009-08-03  Richard Guenther  <rguenther@suse.de>

* lto-streamer-out.c (output_phi): Output phi argument locations.
* lto-streamer-in.c (lto_input_location): Move before first use.
(input_phi): Input phi argument locations.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@150366 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-07-30 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 3 Aug 2009 08:45:37 +0000 (3 08:45 +0000)]
2009-07-30  Richard Guenther  <rguenther@suse.de>

PR lto/40903
* gcc.dg/lto/20090729_0.c: New testcase.
* gcc.dg/lto/20090729_1.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@150365 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-08-02 Richard Guenther <rguenther@suse.de>
rguenth [Sun, 2 Aug 2009 16:39:53 +0000 (2 16:39 +0000)]
2009-08-02  Richard Guenther  <rguenther@suse.de>

        Mainline merge @150345.

        * configure.ac (ACX_PKGVERSION): Update revision merge string.
        * configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@150354 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-07-30 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 30 Jul 2009 16:24:05 +0000 (30 16:24 +0000)]
2009-07-30  Richard Guenther  <rguenther@suse.de>

PR lto/40903
* lto-symtab.c (lto_symtab_compatible): Only warn for mismatched
types.
(lto_symtab_merge_decl): For decls we cannot merge chain them
appropriately in the symtab entry.
(lto_symtab_prevailing_decl): Return a matching entry from the
symtab chain.
* lto.c (read_cgraph_and_symbols): After fixing up decls choose
the largest decl for output and free TREE_CHAIN for further
use.

* gcc.dg/lto/20090729_0.c: New testcase.
* gcc.dg/lto/20090729_1.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@150262 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-07-30 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 30 Jul 2009 10:07:40 +0000 (30 10:07 +0000)]
2009-07-30  Richard Guenther  <rguenther@suse.de>

* lto-symtab.c (lto_symtab_compatible): Use inform for printing
the previous declaration location.
(lto_symtab_merge_decl): Move error on incompatible symbol types
first.  Use inform for printing the previous declaration location.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@150254 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-07-29 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 29 Jul 2009 13:13:43 +0000 (29 13:13 +0000)]
2009-07-29  Richard Guenther  <rguenther@suse.de>

* lto-symtab.c (lto_symtab_merge_decl): Merge decl state in
both directions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@150212 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-07-29 Richard Guenther <rguenther@suse.de>
rguenth [Wed, 29 Jul 2009 12:16:59 +0000 (29 12:16 +0000)]
2009-07-29  Richard Guenther  <rguenther@suse.de>

* tree.c (free_lang_data_in_decl): Do not clear DECL_CONTEXT
of variables with abstract function context.
* lto-streamer-out.c (lto_output_ts_decl_minimal_tree_pointers):
Do not assign names to FIELD_DECLs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@150211 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago * Make-lang.in: Add empty lto.install-plugin target.
dnovillo [Fri, 24 Jul 2009 21:12:56 +0000 (24 21:12 +0000)]
* Make-lang.in: Add empty lto.install-plugin target.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@150064 138bc75d-0d04-0410-961f-82ee72b054a4

12 years agogcc/ChangeLog.lto
dnovillo [Fri, 24 Jul 2009 13:01:53 +0000 (24 13:01 +0000)]
gcc/ChangeLog.lto

Mainline merge @149863.

* configure.ac (ACX_PKGVERSION): Update revision merge string.
* configure: Regenerate.

* cgraph.h (cgraph_optimize): Declare.
* cgraphunit.c (cgraph_optimize): Make extern.
* lto-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
Do not read DECL_SAVED_TREE.
* lto-streamer.h (lto_is_streamable): New.
* lto-streamer-out.c (lto_output_tree_header): Call it.
(lto_output_ts_decl_non_common_tree_pointers): Assert that
* tree.c (free_lang_data_in_decl): Clear out DECL_INITIAL if
DECL has an abstract context.
Clear out DECL_SAVED_TREE.

gcc/cp/ChangeLog.lto

* semantics.c (expand_or_defer_fn): Clear DECL_SAVED_TREE from FN.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@150052 138bc75d-0d04-0410-961f-82ee72b054a4

12 years ago2009-06-13 Ryan Mansfield <rmansfield@qnx.com>
bje [Fri, 24 Jul 2009 00:41:54 +0000 (24 00:41 +0000)]
2009-06-13  Ryan Mansfield  <rmansfield@qnx.com>

PR lto/40429
* lto-wrapper.c (run_gcc): Handle no space between -o and filename
argument.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@150037 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR lto/40818
bje [Thu, 23 Jul 2009 00:09:23 +0000 (23 00:09 +0000)]
PR lto/40818
* g++.dg/lto/pr40818_0.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149966 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * lto-streamer-out.c (last_eh_region_seen): Remove.
dnovillo [Wed, 22 Jul 2009 17:05:26 +0000 (22 17:05 +0000)]
* lto-streamer-out.c (last_eh_region_seen): Remove.
Update all users.
(output_bb): Fix emission of EH region numbers.
* lto-streamer-in.c (input_bb): Corresponding changes.
* lto-streamer.h (enum LTO_tags): Remove LTO_set_eh0.
Rename LTO_set_eh1 to LTO_eh_region.
Update all users.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149948 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * tree-pass.h (TDF_EH): Define.
dnovillo [Wed, 22 Jul 2009 17:02:21 +0000 (22 17:02 +0000)]
* tree-pass.h (TDF_EH): Define.
* gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
contains TDF_EH, print the EH region number holding GS.
* tree-dump.c (dump_options): Add "eh".
* doc/invoke.texi: Document it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149947 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2009-07-19 Richard Guenther <rguenther@suse.de>
rguenth [Sun, 19 Jul 2009 08:50:32 +0000 (19 08:50 +0000)]
2009-07-19  Richard Guenther  <rguenther@suse.de>

PR lto/40724
PR lto/40725
* lto-streamer.c (lto_get_common_nodes): Initialize
main_identifier_node if it is not initialized already.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149788 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2009-07-17 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 17 Jul 2009 17:41:38 +0000 (17 17:41 +0000)]
2009-07-17  Richard Guenther  <rguenther@suse.de>

PR lto/40765
* lto-symtab.c (lto_symtab_merge_decl): Merge TREE_ADDRESSABLE
state.

* gcc.dg/lto/20090717_0.c: New testcase.
* gcc.dg/lto/20090717_1.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149753 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2009-07-17 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 17 Jul 2009 15:43:14 +0000 (17 15:43 +0000)]
2009-07-17  Richard Guenther  <rguenther@suse.de>

* gimple.c (struct sccs): New structure for the SCC finding state.
(next_dfs_num): New static global.
(visit): New helper function for iterative_hash_gimple_type.
(iterative_hash_gimple_type): Rewrite to do a DFS walk to properly
hash SCCs.
(gimple_type_hash): Adjust accordingly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149749 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2009-07-16 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 16 Jul 2009 14:55:23 +0000 (16 14:55 +0000)]
2009-07-16  Richard Guenther  <rguenther@suse.de>

* init.c (build_vec_delete_1): Do not set DECL_REGISTER on the
temporary pointer.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149707 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago PR lto/40725
bje [Wed, 15 Jul 2009 00:20:11 +0000 (15 00:20 +0000)]
PR lto/40725
* gfortran.dg/lto/pr40725_0.f03: New.
* gfortran.dg/lto/pr40725_1.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149654 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
dnovillo [Tue, 14 Jul 2009 20:50:04 +0000 (14 20:50 +0000)]
* lto-streamer-out.c (lto_output_ts_block_tree_pointers):
Do not expect to be inside current_function_decl.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149643 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * lto-cgraph.c (lto_output_edge): Do not stream
dnovillo [Tue, 14 Jul 2009 20:45:05 +0000 (14 20:45 +0000)]
* lto-cgraph.c (lto_output_edge): Do not stream
EDGE->COUNT inside a bitpack.
(input_edge): Corresponding changes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149642 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago Mainline merge @149625.
dnovillo [Tue, 14 Jul 2009 18:09:27 +0000 (14 18:09 +0000)]
Mainline merge @149625.

* configure.ac (ACX_PKGVERSION): Update revision merge string.
* configure: Regenerate.

* lto-symtab.c (lto_symtab_compatible): Replace uses of
%J in calls to error with calls to error_at and a
specific location.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149634 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * lib/lto.exp (lto-execute): Allow second and subsequent source
bje [Tue, 14 Jul 2009 12:16:39 +0000 (14 12:16 +0000)]
* lib/lto.exp (lto-execute): Allow second and subsequent source
files in a test to have any filename extension.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149625 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * gfortran.dg/lto/lto.exp: Match {f,F}{,90,95,03,08}, not just .f.
bje [Tue, 14 Jul 2009 05:44:23 +0000 (14 05:44 +0000)]
* gfortran.dg/lto/lto.exp: Match {f,F}{,90,95,03,08}, not just .f.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149619 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * gfortran.dg/lto/lto.exp: New.
bje [Tue, 14 Jul 2009 05:20:44 +0000 (14 05:20 +0000)]
* gfortran.dg/lto/lto.exp: New.
* gfortran.dg/lto/pr40724_0.f: Likewise.
* gfortran.dg/lto/pr40724_1.f: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149616 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoMove Rainer Orth's entry from ChangeLog to ChangeLog.lto.
bje [Tue, 14 Jul 2009 04:06:31 +0000 (14 04:06 +0000)]
Move Rainer Orth's entry from ChangeLog to ChangeLog.lto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149615 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoChangeLog.lto
dnovillo [Mon, 13 Jul 2009 23:18:44 +0000 (13 23:18 +0000)]
ChangeLog.lto

* tree.c (free_lang_data_in_block): New.
(free_lang_data_in_decl): Call it.
* lto-streamer-out.c (lto_output_tree_ref): Handle
IMPORTED_DECL.
(lto_output_ts_decl_common_tree_pointers): Do not output
DECL_INITIAL for FUNCTION_DECLs.
(lto_output_ts_block_tree_pointers): Assert that REF_P is
true and current_function_decl is set.
Remove FIXME note.
Call lto_output_chain to emit BLOCK_SUBBLOCKS.
(output_function): Call lto_output_tree_ref to emit
FN->LOCAL_DECLS.
* lto-streamer-in.c (lto_input_tree_ref): Handle
LTO_imported_decl_ref.
(input_bb): Do not call gimple_set_block.
(input_function): Assert that FN_DECL has DECL_INITIAL
set.
(lto_input_ts_decl_common_tree_pointers): Do not read
DECL_INITIAL for FUNCTION_DECLs.
(lto_input_ts_block_tree_pointers): Call lto_input_chain
to read BLOCK_SUBBLOCKS.
(lto_read_tree): Move call to lto_orig_address_remove
later in the function.
* lto-streamer.c (lto_streamer_cache_add_to_node_array):
Factor out of ...
(lto_streamer_cache_insert_1): ... here.
Call it.
Handle builtin functions that are stored in different
cache slots when reading.
(lto_streamer_cache_lookup): Tidy.
(lto_get_common_nodes): Tidy.
(preload_common_node): Tidy.
(lto_streamer_cache_create): Tidy.
* lto-streamer.h (enum LTO_tags): Add LTO_imported_decl_ref.

lto/ChangeLog

* lto.c (lto_fixup_tree): Handle IMPORTED_DECL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149607 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * tree-ssa-live.c (debug_scope_block): New.
dnovillo [Mon, 13 Jul 2009 23:15:54 +0000 (13 23:15 +0000)]
* tree-ssa-live.c (debug_scope_block): New.
* tree-flow.h (debug_scope_block): Declare it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149606 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * lto-cgraph.c (lto_output_edge): Use BP to pack all
dnovillo [Mon, 13 Jul 2009 23:12:13 +0000 (13 23:12 +0000)]
* lto-cgraph.c (lto_output_edge): Use BP to pack all
fields in EDGE.
(input_edge): Corresponding changes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149605 138bc75d-0d04-0410-961f-82ee72b054a4

13 years agoFix misplaced ChangeLog entries from ChangeLog to ChangeLog.lto
dnovillo [Mon, 13 Jul 2009 23:09:23 +0000 (13 23:09 +0000)]
Fix misplaced ChangeLog entries from ChangeLog to ChangeLog.lto

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149604 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2009-07-13 Richard Guenther <rguenther@suse.de>
rguenth [Mon, 13 Jul 2009 13:42:03 +0000 (13 13:42 +0000)]
2009-07-13  Richard Guenther  <rguenther@suse.de>

PR lto/40721
* lto-opts.c (register_user_option_p): Handle OPT_fcommon.
(handle_common_option): Likewise.
* lto-symtab.c (lto_symtab_merge_decl): Merge re-definitions
if flag_no_common is not set.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149587 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * Makefile.in (BACKENDLIBS): Change LIBELFLIB to LIBELFLIBS.
bje [Mon, 13 Jul 2009 04:49:46 +0000 (13 04:49 +0000)]
* Makefile.in (BACKENDLIBS): Change LIBELFLIB to LIBELFLIBS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149542 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago * dwarf2out.c (dwarf2out_begin_prologue): Fix "dirrective" typo.
bje [Mon, 13 Jul 2009 01:53:32 +0000 (13 01:53 +0000)]
* dwarf2out.c (dwarf2out_begin_prologue): Fix "dirrective" typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149541 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2009-07-11 Richard Guenther <rguenther@suse.de>
rguenth [Sat, 11 Jul 2009 08:42:31 +0000 (11 08:42 +0000)]
2009-07-11  Richard Guenther  <rguenther@suse.de>

* lto-lang.c (lto_write_globals): Wrapup global decls.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149510 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2009-07-10 Diego Novillo <dnovillo@google.com>
rguenth [Fri, 10 Jul 2009 21:36:13 +0000 (10 21:36 +0000)]
2009-07-10  Diego Novillo  <dnovillo@google.com>

* lib/gfortran-dg.exp: Add LTO torture options.
* lib/fortran-torture.exp: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149495 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2009-07-10 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 10 Jul 2009 21:26:15 +0000 (10 21:26 +0000)]
2009-07-10  Richard Guenther  <rguenther@suse.de>

* tree.c (free_lang_data): Re-set boolean_type_node to what
it will be for lto1.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149494 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2009-07-10 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 10 Jul 2009 18:32:03 +0000 (10 18:32 +0000)]
2009-07-10  Richard Guenther  <rguenther@suse.de>

* lto-lang.c (lto_init): Allocate one more location to make
BUILTINS_LOCATION correct.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149493 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2009-07-10 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 10 Jul 2009 18:26:18 +0000 (10 18:26 +0000)]
2009-07-10  Richard Guenther  <rguenther@suse.de>

* options.c (gfc_post_options): Revert last change.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149492 138bc75d-0d04-0410-961f-82ee72b054a4

13 years ago2009-07-10 Richard Guenther <rguenther@suse.de>
rguenth [Fri, 10 Jul 2009 15:44:40 +0000 (10 15:44 +0000)]
2009-07-10  Richard Guenther  <rguenther@suse.de>

fortran/
* options.c (gfc_post_options): Handle -flto and -fwhopr.

* c.opt (flto, fwhopr): Move ...
* common.opt (flto, fwhopr): ... here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/lto@149483 138bc75d-0d04-0410-961f-82ee72b054a4