This documents --with-plugin-ld and removes the --enable-gold 
documentation (which is bogus now).

Does this look ok?

Thanks,
Richard.

2011-03-18  Richard Guenther  <rguent...@suse.de>

        * doc/install.texi (--enable-gold): Remove.
        (--with-plugin-ld): Document.
        * doc/invoke.texi (-fuse-linker-plugin): Clarify.

Index: gcc/doc/install.texi
===================================================================
*** gcc/doc/install.texi        (revision 171097)
--- gcc/doc/install.texi        (working copy)
*************** GLIBC 2.11 or above, otherwise disabled.
*** 1666,1678 ****
  Enable support for link-time optimization (LTO).  This is enabled by
  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
! 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
--- 1666,1676 ----
  Enable support for link-time optimization (LTO).  This is enabled by
  default, and may be disabled using @option{--disable-lto}.
  
! @item --with-plugin-ld=@var{pathname}
! Enable an alternate linker to be used at link-time optimization (LTO)
! link time when @option{-fuse-linker-plugin} is enabled.
! This linker should have plugin support such as gold or GNU ld starting
! with version 2.21.  See @option{-fuse-linker-plugin} for details.
  @end table
  
  @subheading Cross-Compiler-Specific Options
Index: gcc/doc/invoke.texi
===================================================================
*** gcc/doc/invoke.texi (revision 171097)
--- gcc/doc/invoke.texi (working copy)
*************** Disabled by default.
*** 7718,7725 ****
  
  @item -fuse-linker-plugin
  Enables the use of linker plugin during link time optimization.  This option
! relies on the linker plugin support in linker that is available in @code{gold}
! or in GNU ld 2.21.51 or newer..
  
  This option enables the extraction of object files with GIMPLE bytecode out of
  library archives. This improves the quality of optimization by exposing more
--- 7718,7725 ----
  
  @item -fuse-linker-plugin
  Enables the use of linker plugin during link time optimization.  This option
! relies on the linker plugin support in linker that is available in gold
! or in GNU ld 2.21 or newer.
  
  This option enables the extraction of object files with GIMPLE bytecode out of
  library archives. This improves the quality of optimization by exposing more
*************** use hidden visibility) is similar to @co
*** 7730,7736 ****
  @option{-flto} for a description on the effect of this flag and how to use it.
  
  Enabled by default when LTO support in GCC is enabled and GCC was compiled
! with linker supporting plugins (GNU ld or @code{gold}).
  
  @item -fcompare-elim
  @opindex fcompare-elim
--- 7730,7736 ----
  @option{-flto} for a description on the effect of this flag and how to use it.
  
  Enabled by default when LTO support in GCC is enabled and GCC was compiled
! with a linker supporting plugins (GNU ld 2.21 or newer or gold).
  
  @item -fcompare-elim
  @opindex fcompare-elim

Reply via email to