public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/93645] Support -fuse-ld=/absolute/path/to/ld
       [not found] <bug-93645-4@http.gcc.gnu.org/bugzilla/>
@ 2020-03-11 12:33 ` marxin at gcc dot gnu.org
  2020-05-07 11:56 ` jakub at gcc dot gnu.org
                   ` (16 subsequent siblings)
  17 siblings, 0 replies; 18+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-03-11 12:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93645

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |10.0
   Last reconfirmed|                            |2020-03-11
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
            Version|unknown                     |10.0
                 CC|                            |marxin at gcc dot gnu.org
           Keywords|                            |patch

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

* [Bug driver/93645] Support -fuse-ld=/absolute/path/to/ld
       [not found] <bug-93645-4@http.gcc.gnu.org/bugzilla/>
  2020-03-11 12:33 ` [Bug driver/93645] Support -fuse-ld=/absolute/path/to/ld marxin at gcc dot gnu.org
@ 2020-05-07 11:56 ` jakub at gcc dot gnu.org
  2020-07-23  6:52 ` rguenth at gcc dot gnu.org
                   ` (15 subsequent siblings)
  17 siblings, 0 replies; 18+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-05-07 11:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93645

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.0                        |10.2

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.1 has been released.

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

* [Bug driver/93645] Support -fuse-ld=/absolute/path/to/ld
       [not found] <bug-93645-4@http.gcc.gnu.org/bugzilla/>
  2020-03-11 12:33 ` [Bug driver/93645] Support -fuse-ld=/absolute/path/to/ld marxin at gcc dot gnu.org
  2020-05-07 11:56 ` jakub at gcc dot gnu.org
@ 2020-07-23  6:52 ` rguenth at gcc dot gnu.org
  2020-07-25  6:02 ` [Bug driver/93645] Support Clang 12 --ld-path= i at maskray dot me
                   ` (14 subsequent siblings)
  17 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-07-23  6:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93645

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.2                        |10.3

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10.2 is released, adjusting target milestone.

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

* [Bug driver/93645] Support Clang 12 --ld-path=
       [not found] <bug-93645-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2020-07-23  6:52 ` rguenth at gcc dot gnu.org
@ 2020-07-25  6:02 ` i at maskray dot me
  2020-09-17 18:12 ` i at maskray dot me
                   ` (13 subsequent siblings)
  17 siblings, 0 replies; 18+ messages in thread
From: i at maskray dot me @ 2020-07-25  6:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93645

--- Comment #4 from Fangrui Song <i at maskray dot me> ---
https://sourceware.org/pipermail/gcc-patches/2020-July/550659.html [PATCH v3]
Add --ld-path= to specify an arbitrary executable as the linker


I changed the title to --ld-path because -fuse-ld=/absolute/path/to/ld is not a
good design. -fuse-ld= can mean the linker flavor (there can be option dispatch
on this option) & --ld-path can specify the path overriding -fuse-ld='s default
choice.

-f* options are usually about code generation or language features. --ld-path
does not belong to the category so -f is not very appropriate.

Clang 12 will have --ld-path.

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

* [Bug driver/93645] Support Clang 12 --ld-path=
       [not found] <bug-93645-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2020-07-25  6:02 ` [Bug driver/93645] Support Clang 12 --ld-path= i at maskray dot me
@ 2020-09-17 18:12 ` i at maskray dot me
  2021-04-08 12:02 ` rguenth at gcc dot gnu.org
                   ` (12 subsequent siblings)
  17 siblings, 0 replies; 18+ messages in thread
From: i at maskray dot me @ 2020-09-17 18:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93645

--- Comment #5 from Fangrui Song <i at maskray dot me> ---
Ping

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

* [Bug driver/93645] Support Clang 12 --ld-path=
       [not found] <bug-93645-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2020-09-17 18:12 ` i at maskray dot me
@ 2021-04-08 12:02 ` rguenth at gcc dot gnu.org
  2021-06-25 21:20 ` hjl.tools at gmail dot com
                   ` (11 subsequent siblings)
  17 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-04-08 12:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93645

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.3                        |10.4

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10.3 is being released, retargeting bugs to GCC 10.4.

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

* [Bug driver/93645] Support Clang 12 --ld-path=
       [not found] <bug-93645-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2021-04-08 12:02 ` rguenth at gcc dot gnu.org
@ 2021-06-25 21:20 ` hjl.tools at gmail dot com
  2021-06-25 21:24 ` pinskia at gcc dot gnu.org
                   ` (10 subsequent siblings)
  17 siblings, 0 replies; 18+ messages in thread
From: hjl.tools at gmail dot com @ 2021-06-25 21:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93645

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |freesoftware at logarithmus dot de
                   |                            |v

--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> ---
*** Bug 101215 has been marked as a duplicate of this bug. ***

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

* [Bug driver/93645] Support Clang 12 --ld-path=
       [not found] <bug-93645-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2021-06-25 21:20 ` hjl.tools at gmail dot com
@ 2021-06-25 21:24 ` pinskia at gcc dot gnu.org
  2021-06-26 14:27 ` freesoftware at logarithmus dot dev
                   ` (9 subsequent siblings)
  17 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-06-25 21:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93645

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |d.g.gorbachev at gmail dot com

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 56062 has been marked as a duplicate of this bug. ***

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

* [Bug driver/93645] Support Clang 12 --ld-path=
       [not found] <bug-93645-4@http.gcc.gnu.org/bugzilla/>
                   ` (7 preceding siblings ...)
  2021-06-25 21:24 ` pinskia at gcc dot gnu.org
@ 2021-06-26 14:27 ` freesoftware at logarithmus dot dev
  2021-06-28 12:09 ` marxin at gcc dot gnu.org
                   ` (8 subsequent siblings)
  17 siblings, 0 replies; 18+ messages in thread
From: freesoftware at logarithmus dot dev @ 2021-06-26 14:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93645

--- Comment #9 from Artur Sinila <freesoftware at logarithmus dot dev> ---
What's a blocker for this bug? What should be improved in the patch in order
for it to be accepted?

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

* [Bug driver/93645] Support Clang 12 --ld-path=
       [not found] <bug-93645-4@http.gcc.gnu.org/bugzilla/>
                   ` (8 preceding siblings ...)
  2021-06-26 14:27 ` freesoftware at logarithmus dot dev
@ 2021-06-28 12:09 ` marxin at gcc dot gnu.org
  2021-12-22  9:06 ` i at maskray dot me
                   ` (7 subsequent siblings)
  17 siblings, 0 replies; 18+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-06-28 12:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93645

--- Comment #10 from Martin Liška <marxin at gcc dot gnu.org> ---
I replied here:
https://gcc.gnu.org/pipermail/gcc-patches/2021-June/573823.html

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

* [Bug driver/93645] Support Clang 12 --ld-path=
       [not found] <bug-93645-4@http.gcc.gnu.org/bugzilla/>
                   ` (9 preceding siblings ...)
  2021-06-28 12:09 ` marxin at gcc dot gnu.org
@ 2021-12-22  9:06 ` i at maskray dot me
  2021-12-22  9:16 ` marxin at gcc dot gnu.org
                   ` (6 subsequent siblings)
  17 siblings, 0 replies; 18+ messages in thread
From: i at maskray dot me @ 2021-12-22  9:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93645

--- Comment #11 from Fangrui Song <i at maskray dot me> ---
(In reply to Martin Liška from comment #10)
> I replied here:
> https://gcc.gnu.org/pipermail/gcc-patches/2021-June/573823.html

There are people wanting to use mold
https://www.reddit.com/r/rust/comments/rhcnzt/mold_a_modern_linker_10_release/

"clang does support it but gcc: --ld-path patch has been declined by GCC
maintainers, instead they advise to use a workaround: create directory
<dirname>, then ln -s <path-to-mold> <dirname>/ld, and then pass -B<dirname>
(-B tells GCC to look for ld in specified location)."

:(

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

* [Bug driver/93645] Support Clang 12 --ld-path=
       [not found] <bug-93645-4@http.gcc.gnu.org/bugzilla/>
                   ` (10 preceding siblings ...)
  2021-12-22  9:06 ` i at maskray dot me
@ 2021-12-22  9:16 ` marxin at gcc dot gnu.org
  2021-12-22 19:16 ` i at maskray dot me
                   ` (5 subsequent siblings)
  17 siblings, 0 replies; 18+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-12-22  9:16 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93645

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org

--- Comment #12 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Fangrui Song from comment #11)
> (In reply to Martin Liška from comment #10)
> > I replied here:
> > https://gcc.gnu.org/pipermail/gcc-patches/2021-June/573823.html
> 
> There are people wanting to use mold
> https://www.reddit.com/r/rust/comments/rhcnzt/
> mold_a_modern_linker_10_release/

I agree that's unfortunate. Note I'm having a patch that adds -fuse-ld=mold:
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=759cdbb29dbe8fc80ba5c1f113a015cafe9eb69c

I can try suggesting that to the community for GCC 12 (and maybe backport
that).
Are you interested?

Note the linker is very interesting, but it lacks LTO support..

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

* [Bug driver/93645] Support Clang 12 --ld-path=
       [not found] <bug-93645-4@http.gcc.gnu.org/bugzilla/>
                   ` (11 preceding siblings ...)
  2021-12-22  9:16 ` marxin at gcc dot gnu.org
@ 2021-12-22 19:16 ` i at maskray dot me
  2021-12-28 13:12 ` marxin at gcc dot gnu.org
                   ` (4 subsequent siblings)
  17 siblings, 0 replies; 18+ messages in thread
From: i at maskray dot me @ 2021-12-22 19:16 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93645

--- Comment #13 from Fangrui Song <i at maskray dot me> ---
(In reply to Martin Liška from comment #12)
> (In reply to Fangrui Song from comment #11)
> > (In reply to Martin Liška from comment #10)
> > > I replied here:
> > > https://gcc.gnu.org/pipermail/gcc-patches/2021-June/573823.html
> > 
> > There are people wanting to use mold
> > https://www.reddit.com/r/rust/comments/rhcnzt/
> > mold_a_modern_linker_10_release/
> 
> I agree that's unfortunate. Note I'm having a patch that adds -fuse-ld=mold:
> https://gcc.gnu.org/git/?p=gcc.git;a=commit;
> h=759cdbb29dbe8fc80ba5c1f113a015cafe9eb69c
> 
> I can try suggesting that to the community for GCC 12 (and maybe backport
> that).
> Are you interested?

I think it may be useful to simply allow -fuse-ld=word (`word` cannot include a
separator).

If that may be troublesome, having -fuse-ld=mold in GCC 12 is still nice.

--ld-path is occasionally useful, but I can accept that GCC declines it.

> Note the linker is very interesting, but it lacks LTO support..

Right...

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

* [Bug driver/93645] Support Clang 12 --ld-path=
       [not found] <bug-93645-4@http.gcc.gnu.org/bugzilla/>
                   ` (12 preceding siblings ...)
  2021-12-22 19:16 ` i at maskray dot me
@ 2021-12-28 13:12 ` marxin at gcc dot gnu.org
  2021-12-28 17:54 ` i at maskray dot me
                   ` (3 subsequent siblings)
  17 siblings, 0 replies; 18+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-12-28 13:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93645

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #14 from Martin Liška <marxin at gcc dot gnu.org> ---
> 
> I think it may be useful to simply allow -fuse-ld=word (`word` cannot
> include a separator).

Sure, but Jakub had some concerns:
https://gcc.gnu.org/pipermail/gcc-patches/2021-June/573833.html

> 
> If that may be troublesome, having -fuse-ld=mold in GCC 12 is still nice.
> 

I've just done that:
https://gcc.gnu.org/pipermail/gcc-patches/2021-December/587426.html

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

* [Bug driver/93645] Support Clang 12 --ld-path=
       [not found] <bug-93645-4@http.gcc.gnu.org/bugzilla/>
                   ` (13 preceding siblings ...)
  2021-12-28 13:12 ` marxin at gcc dot gnu.org
@ 2021-12-28 17:54 ` i at maskray dot me
  2021-12-29 11:48 ` marxin at gcc dot gnu.org
                   ` (2 subsequent siblings)
  17 siblings, 0 replies; 18+ messages in thread
From: i at maskray dot me @ 2021-12-28 17:54 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93645

--- Comment #15 from Fangrui Song <i at maskray dot me> ---
-- is definitely rare, but not non-existent.
In GCC, there is {-,--}specs.
In Clang, there are --cuda-path, --ptxas-path, --hip-path, --classpath, etc.
(In reply to Martin Liška from comment #14)
> > 
> > I think it may be useful to simply allow -fuse-ld=word (`word` cannot
> > include a separator).
> 
> Sure, but Jakub had some concerns:
> https://gcc.gnu.org/pipermail/gcc-patches/2021-June/573833.html

I do not see an objection to -fuse-ld=word.

For --ld-path, -- is definitely rare, but not non-existent.
In GCC, there are {-,--}specs --sysroot.
In Clang, there are --cuda-path, --ptxas-path, --hip-path, --classpath, etc.

-fuse-ld= users mostly care about whether another linker can build their
programs, not whether the option can bootstrap GCC. I actually think ld.lld is
quite sufficient in bootstrapping GCC but if there are edge-case extensions
which not supported, ld.lld developers may not want to the project with more
obscure options...

> > 
> > If that may be troublesome, having -fuse-ld=mold in GCC 12 is still nice.
> > 
> 
> I've just done that:
> https://gcc.gnu.org/pipermail/gcc-patches/2021-December/587426.html

Thanks

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

* [Bug driver/93645] Support Clang 12 --ld-path=
       [not found] <bug-93645-4@http.gcc.gnu.org/bugzilla/>
                   ` (14 preceding siblings ...)
  2021-12-28 17:54 ` i at maskray dot me
@ 2021-12-29 11:48 ` marxin at gcc dot gnu.org
  2022-06-28 10:39 ` jakub at gcc dot gnu.org
  2023-07-07  8:46 ` rguenth at gcc dot gnu.org
  17 siblings, 0 replies; 18+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-12-29 11:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93645

--- Comment #16 from Martin Liška <marxin at gcc dot gnu.org> ---
Note -fuse-ld=mold was added in: g:ad964f7eaef9c03ce68a01cfdd7fde9d56524868

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

* [Bug driver/93645] Support Clang 12 --ld-path=
       [not found] <bug-93645-4@http.gcc.gnu.org/bugzilla/>
                   ` (15 preceding siblings ...)
  2021-12-29 11:48 ` marxin at gcc dot gnu.org
@ 2022-06-28 10:39 ` jakub at gcc dot gnu.org
  2023-07-07  8:46 ` rguenth at gcc dot gnu.org
  17 siblings, 0 replies; 18+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93645

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.4                        |10.5

--- Comment #17 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.

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

* [Bug driver/93645] Support Clang 12 --ld-path=
       [not found] <bug-93645-4@http.gcc.gnu.org/bugzilla/>
                   ` (16 preceding siblings ...)
  2022-06-28 10:39 ` jakub at gcc dot gnu.org
@ 2023-07-07  8:46 ` rguenth at gcc dot gnu.org
  17 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07  8:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93645

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.5                        |---

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

end of thread, other threads:[~2023-07-07  8:46 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-93645-4@http.gcc.gnu.org/bugzilla/>
2020-03-11 12:33 ` [Bug driver/93645] Support -fuse-ld=/absolute/path/to/ld marxin at gcc dot gnu.org
2020-05-07 11:56 ` jakub at gcc dot gnu.org
2020-07-23  6:52 ` rguenth at gcc dot gnu.org
2020-07-25  6:02 ` [Bug driver/93645] Support Clang 12 --ld-path= i at maskray dot me
2020-09-17 18:12 ` i at maskray dot me
2021-04-08 12:02 ` rguenth at gcc dot gnu.org
2021-06-25 21:20 ` hjl.tools at gmail dot com
2021-06-25 21:24 ` pinskia at gcc dot gnu.org
2021-06-26 14:27 ` freesoftware at logarithmus dot dev
2021-06-28 12:09 ` marxin at gcc dot gnu.org
2021-12-22  9:06 ` i at maskray dot me
2021-12-22  9:16 ` marxin at gcc dot gnu.org
2021-12-22 19:16 ` i at maskray dot me
2021-12-28 13:12 ` marxin at gcc dot gnu.org
2021-12-28 17:54 ` i at maskray dot me
2021-12-29 11:48 ` marxin at gcc dot gnu.org
2022-06-28 10:39 ` jakub at gcc dot gnu.org
2023-07-07  8:46 ` rguenth at gcc dot gnu.org

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).