X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Fdoc%2Finstall.texi;h=a0fadd8beab6e73a6f22f12f1902d3e3e22879b8;hp=0db368b3f56fc2424fb349c7ede02194c03a99c7;hb=6f654217e1b23001a1365aa0c63c24029729bb14;hpb=24217fada45df80ccc5e91793db9190f1fb892ef;ds=sidebyside diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index 0db368b3f56..a0fadd8beab 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -1633,6 +1633,29 @@ static data members and inline function local statics. Enabled by default for a native toolchain with an assembler that accepts it and GLIBC 2.11 or above, otherwise disabled. +@item --enable-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}. + +@item --enable-gold +Enable support for using @command{gold} as the linker. If gold support is +enabled together with @option{--enable-lto}, an additional directory +@file{lto-plugin} will be built. The code in this directory is a +plugin for gold that allows the link-time optimizer to extract object +files with LTO information out of library archives. See +@option{-flto} and @option{-fwhopr} for details. @end table @subheading Cross-Compiler-Specific Options @@ -1914,30 +1937,6 @@ Use the @code{WCHAR} and Win32 W functions natively. Does @emph{not} add @code{-lunicows} to @file{libgcj.spec}. The built executables will only run on Microsoft Windows NT and above. @end table - -@item --enable-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}. - -@item --enable-gold -Enable support for using @command{gold} as the linker. If gold support is -enabled together with @option{--enable-lto}, an additional directory -@file{lto-plugin} will be built. The code in this directory is a -plugin for gold that allows the link-time optimizer to extract object -files with LTO information out of library archives. See -@option{-flto} and @option{-fwhopr} for details. @end table @subsubheading AWT-Specific Options