public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/55552] New: --enable-gold=default doesn't work with in-tree binutils
@ 2012-11-30 17:39 hjl.tools at gmail dot com
  2012-11-30 19:50 ` [Bug bootstrap/55552] " hjl.tools at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2012-11-30 17:39 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55552

             Bug #: 55552
           Summary: --enable-gold=default doesn't work with in-tree
                    binutils
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hjl.tools@gmail.com


Toplevel configure supports:

# Handle --enable-gold, --enable-ld.
# --disable-gold [--enable-ld]
#     Build only ld.  Default option.
# --enable-gold [--enable-ld]
#     Build both gold and ld.  Install gold as "ld.gold", install ld
#     as "ld.bfd" and "ld".
# --enable-gold=default [--enable-ld]
#     Build both gold and ld.  Install gold as "ld.gold" and "ld",
#     install ld as "ld.bfd".
# --enable-gold[=default] --disable-ld
#     Build only gold, which is then installed as both "ld.gold" and "ld".
# --enable-gold --enable-ld=default
#     Build both gold (installed as "ld.gold") and ld (installed as "ld"
#     and ld.bfd).
#     In other words, ld is default
# --enable-gold=default --enable-ld=default
#     Error.

However, gcc directory doesn't handle --enable-gold=default properly.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug bootstrap/55552] --enable-gold=default doesn't work with in-tree binutils
  2012-11-30 17:39 [Bug bootstrap/55552] New: --enable-gold=default doesn't work with in-tree binutils hjl.tools at gmail dot com
@ 2012-11-30 19:50 ` hjl.tools at gmail dot com
  2013-11-26 13:31 ` hjl at gcc dot gnu.org
  2013-11-26 13:32 ` hjl.tools at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2012-11-30 19:50 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55552

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-p
                   |                            |atches/2012-11/msg02568.htm
                   |                            |l

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2012-11-30 19:50:36 UTC ---
A patch is posted at

http://gcc.gnu.org/ml/gcc-patches/2012-11/msg02568.html


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug bootstrap/55552] --enable-gold=default doesn't work with in-tree binutils
  2012-11-30 17:39 [Bug bootstrap/55552] New: --enable-gold=default doesn't work with in-tree binutils hjl.tools at gmail dot com
  2012-11-30 19:50 ` [Bug bootstrap/55552] " hjl.tools at gmail dot com
@ 2013-11-26 13:31 ` hjl at gcc dot gnu.org
  2013-11-26 13:32 ` hjl.tools at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: hjl at gcc dot gnu.org @ 2013-11-26 13:31 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55552

--- Comment #2 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Tue Nov 26 13:31:25 2013
New Revision: 205392

URL: http://gcc.gnu.org/viewcvs?rev=205392&root=gcc&view=rev
Log:
Add -fuse-ld=bfd/-fuse-ld=gold support to exec-tool.in

    PR bootstrap/55552
    * configure.ac (install_gold_as_default): New.  Set to yes for
    --disable-ld or --enable-gold=default.
    (gcc_cv_ld_gold_srcdir): New.
    (gcc_cv_ld): Also check in-tree gold if install_gold_as_default
    is yes.
    (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
    (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
    * configure: Regenerated.

    * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
    (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
    (original) [collect-ld && -fuse-ld=bfd]: Set to
    $ORIGINAL_LD_BFD_FOR_TARGET.
    (original) [collect-ld && -fuse-ld=gold]: Set to
    $ORIGINAL_LD_GOLD_FOR_TARGET.
    (dir) [collect-ld && ../gold/ld-new]: Set to gold.
    (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/configure
    trunk/gcc/configure.ac
    trunk/gcc/exec-tool.in


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug bootstrap/55552] --enable-gold=default doesn't work with in-tree binutils
  2012-11-30 17:39 [Bug bootstrap/55552] New: --enable-gold=default doesn't work with in-tree binutils hjl.tools at gmail dot com
  2012-11-30 19:50 ` [Bug bootstrap/55552] " hjl.tools at gmail dot com
  2013-11-26 13:31 ` hjl at gcc dot gnu.org
@ 2013-11-26 13:32 ` hjl.tools at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2013-11-26 13:32 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55552

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |4.9.0

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed for 4.9.0.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-11-26 13:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-30 17:39 [Bug bootstrap/55552] New: --enable-gold=default doesn't work with in-tree binutils hjl.tools at gmail dot com
2012-11-30 19:50 ` [Bug bootstrap/55552] " hjl.tools at gmail dot com
2013-11-26 13:31 ` hjl at gcc dot gnu.org
2013-11-26 13:32 ` hjl.tools at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).