diff options
author | Dave Korn <davek@gcc.gnu.org> | 2010-11-03 09:14:32 +0000 |
---|---|---|
committer | Dave Korn <davek@gcc.gnu.org> | 2010-11-03 09:14:32 +0000 |
commit | 48215350c24d524b635d6110eca1e70996f5fb82 (patch) | |
tree | 727195368f3f7531be4fdf5a82d599ea20456d83 /gcc | |
parent | 03f43d3d3c6909ead8325e86a947f66ba8b83141 (diff) | |
download | gcc-48215350c24d524b635d6110eca1e70996f5fb82.zip gcc-48215350c24d524b635d6110eca1e70996f5fb82.tar.gz gcc-48215350c24d524b635d6110eca1e70996f5fb82.tar.bz2 |
re PR lto/46273 (Failed to bootstrap)
ChangeLog:
2010-11-03 Ian Lance Taylor <iant@google.com>
Dave Korn <dave.korn.cygwin@gmail.com>
PR lto/46273
* configure.ac: Remove libelf tests. Build lto-plugin on ELF always
and on other supported platforms whenever LTO is enabled.
* configure: Rebuild.
gcc/ChangeLog:
2010-11-03 Ian Lance Taylor <iant@google.com>
PR lto/46273
* gcc/config.gcc: Don't set lto_binary_reader.
* doc/install.texi (Prerequisites): Remove libelf paragraphs.
(Configuration): Mention --disable-lto. Remove --with-libelf
paragraph.
lto-plugin/ChangeLog:
2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
PR lto/46273
* lto-plugin.h: Delete.
* lto-plugin-elf.c: Likewise.
* lto-plugin-coff.c: Likewise.
* configure.ac: Don't use libelf, don't source config.gcc.
(LIBELFLIBS): Delete.
(LIBELFINC): Delete.
(LTO_FORMAT): Delete.
(SYM_STYLE): Add AC_DEFINE var, set based on $target.
(config.h): Add AC_CONFIG_HEADERS directive.
* Makefile.am (LIBELFLIBS): Delete.
(LIBELFINC): Delete.
(LTO_FORMAT): Delete.
(DEFS): Import.
(AM_CPPFLAGS): Use it. Don't use LIBELFINC.
(liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
any object-format-specific source file in the link.
(liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
* config.h.in: Generate.
* configure: Regenerate.
* Makefile.in: Likewise.
* lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
(LTO_SEGMENT_NAME): New definition.
(LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
(LTO_SECTION_PREFIX_LEN): New definition.
(struct sym_aux): Struct definition moved here from lto-plugin.h.
(struct plugin_symtab): Likewise.
(struct plugin_objfile): Likewise.
(struct plugin_objfile): New struct def.
(enum symbol_style): New enum type.
(add_symbols): Make static.
(claimed_files): Likewise.
(num_claimed_files): Likewise.
(sym_style): New global.
(check): Make static.
(parse_table_entry): Likewise. Respect sym_style when extracting
symbol from symtab entry.
(translate): Make static.
(resolve_conflicts): Likewise.
(process_symtab): New function, per-section callback version of
old object-format-specific handling from deleted lto-plugin-elf.c.
(claim_file_handler): Convert ELF-specific version from deleted
lto-plugin-elf.c to simple_object interface and move here.
(process_options): Allow new '-sym-style=' option.
(onload): Don't call deleted onload_format_checks hook.
From-SVN: r166233
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/config.gcc | 8 | ||||
-rw-r--r-- | gcc/doc/install.texi | 26 |
3 files changed, 10 insertions, 32 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 275d476..154ad56 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2010-11-03 Ian Lance Taylor <iant@google.com> + + PR lto/46273 + * gcc/config.gcc: Don't set lto_binary_reader. + * doc/install.texi (Prerequisites): Remove libelf paragraphs. + (Configuration): Mention --disable-lto. Remove --with-libelf + paragraph. + 2010-11-03 Jakub Jelinek <jakub@redhat.com> PR debug/46252 diff --git a/gcc/config.gcc b/gcc/config.gcc index 8dce3d5..9b8e0a4 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -219,8 +219,6 @@ default_gnu_indirect_function=no target_gtfiles= need_64bit_hwint= need_64bit_isa= -# Selects the object file format reader/writer used by LTO. -lto_binary_reader=lto-elf # Don't carry these over build->host->target. Please. xm_file= @@ -1160,13 +1158,11 @@ i[34567]86-*-darwin*) # support. with_cpu=${with_cpu:-generic} tmake_file="${tmake_file} t-slibgcc-darwin i386/t-crtpc i386/t-crtfm" - lto_binary_reader=lto-macho ;; x86_64-*-darwin*) with_cpu=${with_cpu:-generic} tmake_file="${tmake_file} ${cpu_type}/t-darwin64 t-slibgcc-darwin i386/t-crtpc i386/t-crtfm" tm_file="${tm_file} ${cpu_type}/darwin64.h" - lto_binary_reader=lto-macho ;; i[34567]86-*-elf*) tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h" @@ -1421,7 +1417,6 @@ i[34567]86-*-pe | i[34567]86-*-cygwin*) thread_file='posix' fi use_gcc_stdint=wrap - lto_binary_reader=lto-coff ;; i[34567]86-*-mingw* | x86_64-*-mingw*) tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h dbxcoff.h i386/cygming.h i386/mingw32.h" @@ -1494,7 +1489,6 @@ i[34567]86-*-mingw* | x86_64-*-mingw*) cxx_target_objs="${cxx_target_objs} winnt-cxx.o msformat-c.o" default_use_cxa_atexit=yes use_gcc_stdint=wrap - lto_binary_reader=lto-coff case ${enable_threads} in "" | yes | win32) thread_file='win32' tmake_file="${tmake_file} i386/t-gthr-win32" @@ -2006,7 +2000,6 @@ powerpc-*-darwin*) ;; esac tmake_file="${tmake_file} t-slibgcc-darwin" - lto_binary_reader=lto-macho extra_headers=altivec.h ;; powerpc64-*-darwin*) @@ -2014,7 +2007,6 @@ powerpc64-*-darwin*) extra_parts="crt2.o" tmake_file="${tmake_file} ${cpu_type}/t-darwin64 t-slibgcc-darwin" tm_file="${tm_file} ${cpu_type}/darwin8.h ${cpu_type}/darwin64.h" - lto_binary_reader=lto-macho extra_headers=altivec.h ;; powerpc*-*-freebsd*) diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index 877ae5f..77d36eb 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -355,17 +355,6 @@ not installed in your default library search path. Necessary to build libgcj, the GCJ runtime. -@item libelf version 0.8.12 (or later) - -Necessary to build link-time optimization (LTO) support. It can be -downloaded from @uref{http://www.mr511.de/software/libelf-0.8.12.tar.gz}, -though it is commonly available in several systems. The version in -IRIX 6.5 doesn't work since it lacks @file{gelf.h}. The version in -Solaris 2 does work. - -The @option{--with-libelf} configure option should be used if libelf is -not installed in your default library search patch. - @end table @heading Tools/packages necessary for modifying GCC @@ -1650,20 +1639,9 @@ default for a native toolchain with an assembler that accepts it and GLIBC 2.11 or above, otherwise disabled. @item --enable-lto +@itemx --disable-lto Enable support for link-time optimization (LTO). This is enabled by -default if a working libelf implementation is found (see -@option{--with-libelf}). - -@item --with-libelf=@var{pathname} -@itemx --with-libelf-include=@var{pathname} -@itemx --with-libelf-lib=@var{pathname} -If you do not have libelf installed in a standard location and you -want to enable support for link-time optimization (LTO), you can -explicitly specify the directory where libelf is installed -(@samp{--with-libelf=@var{libelfinstalldir}}). The -@option{--with-libelf=@var{libelfinstalldir}} option is shorthand for -@option{--with-libelf-include=@var{libelfinstalldir}/include} -@option{--with-libelf-lib=@var{libelfinstalldir}/lib}. +default, and may be disabled using @option{--disable-lto}. @item --enable-gold Enable support for using @command{gold} as the linker. If gold support is |