Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3692)

Issue 4664051: [google] Enable both ld and gold in gcc

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 5 months ago by dougkwan
Modified:
12 years, 3 months ago
Reviewers:
hjl.tools, Diego Novillo
CC:
gcc-patches_gcc.gnu.org
Base URL:
svn+ssh://gcc.gnu.org/svn/gcc/branches/google/main/
Visibility:
Public.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -62 lines) Patch
M gcc/collect2.c View 6 chunks +124 lines, -31 lines 0 comments Download
M gcc/common.opt View 1 chunk +3 lines, -0 lines 0 comments Download
M gcc/configure View 3 chunks +19 lines, -0 lines 0 comments Download
M gcc/configure.ac View 2 chunks +14 lines, -0 lines 0 comments Download
M gcc/doc/invoke.texi View 2 chunks +11 lines, -1 line 0 comments Download
M gcc/exec-tool.in View 4 chunks +89 lines, -29 lines 0 comments Download
M gcc/gcc.c View 1 chunk +3 lines, -0 lines 0 comments Download
M gcc/opts.c View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 6
dougkwan
This patch enables both ld and gold in gcc using the -fuse-ld switch. The original ...
13 years, 5 months ago (2011-06-27 23:09:50 UTC) #1
hjl.tools_gmail.com
On Mon, Jun 27, 2011 at 4:09 PM, Doug Kwan <dougkwan@google.com> wrote: > This patch ...
13 years, 5 months ago (2011-06-27 23:25:06 UTC) #2
dougkwan
On 2011/06/27 23:25:06, hjl.tools_gmail.com wrote: > On Mon, Jun 27, 2011 at 4:09 PM, Doug ...
13 years, 5 months ago (2011-06-27 23:32:03 UTC) #3
Diego Novillo
On 11-06-27 19:09 , Doug Kwan wrote: > This patch enables both ld and gold ...
13 years, 5 months ago (2011-06-28 12:00:48 UTC) #4
hjl.tools_gmail.com
On Tue, Jun 28, 2011 at 4:59 AM, Diego Novillo <dnovillo@google.com> wrote: > On 11-06-27 ...
13 years, 5 months ago (2011-06-28 15:49:35 UTC) #5
hjl.tools_gmail.com
12 years, 3 months ago (2012-08-28 19:59:36 UTC) #6
On Tue, Jun 28, 2011 at 8:49 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Tue, Jun 28, 2011 at 4:59 AM, Diego Novillo <dnovillo@google.com> wrote:
>> On 11-06-27 19:09 , Doug Kwan wrote:
>>>
>>> This patch enables both ld and gold in gcc using the -fuse-ld switch.  The
>>> original patch use written by Nick Clifton and was subsequently updated by
>>> Matthias Klose.  The patch currently does not work with LTO but that is
>>> okay for now and it is no worse than its counterpart in an older gcc
>>> version.
>>> We need this functionality for now.  It is mostly used as a safety net in
>>> the
>>> Android toolchain if gold does not work.  We can disable LTO in that case.
>>> Hopefully we will fix this can resubmit it for trunk later.
>>>
>>> This is tested by running ./buildit and building the Android toolchain.
>>>
>>> I would like to apply this to goolge/main only.
>>>
>>> 2011-06-27   Doug Kwan<dougkwan@google.com>
>>>
>>>        Google ref 41164-p2
>>>        Backport upstream patch under review.
>>>
>>>        2011-01-19   Nick Clifton<nickc@redhat.com>
>>>                        Matthias Klose<doko@debian.org>
>>>
>>>                * configure.ac (gcc_cv_gold_srcdir): New cached variable -
>>>                contains the location of the gold sources.
>>>                (ORIGINAL_GOLD_FOR_TARGET): New substituted variable -
>>> contains
>>>                the name of the locally built gold executable.
>>>                * configure: Regenerate.
>>>                * collect2.c (main): Detect the -use-gold and -use-ld
>>> switches
>>>                and select the appropriate linker, if found.
>>>                If a linker cannot be found and collect2 is executing in
>>>                verbose mode then report the search paths examined.
>>>                * exec-tool.in: Detect the -use-gold and -use-ld switches
>>> and
>>>                select the appropriate linker, if found.
>>>                Add support for -v switch.
>>>                Report problems locating linker executable.
>>>                * gcc.c (LINK_COMMAND_SPEC): Translate -fuse-ld=gold into
>>>                -use-gold and -fuse-ld=bfd into -use-ld.
>>>                * common.opt: Add fuse-ld=gold and fuse-ld=bfd.
>>>                * opts.c (comman_handle_option): Ignore -fuse-ld=gold and
>>>                -fuse-ld=bfd.
>>>                * doc/invoke.texi: Document the new options.
>>
>> OK for google/main.
>>
>> Nick/Matthias, anything in particular blocking this patch in trunk? (other
>> than the LTO issue)
>>
>
> For gcc, ld.bfd and ld.gold are interchangeable.
>
> --
> H.J.

Should we put it on trunk?

Thanks.


-- 
H.J.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b