Richard Biener changed bug 1200186
What Removed Added
CC   aaronpuchert@alice-dsl.net

Comment # 5 on bug 1200186 from
(In reply to William Brown from comment #4)
> (In reply to Richard Biener from comment #3)
> > (In reply to William Brown from comment #2)
> > > (In reply to Richard Biener from comment #1)
> > > > Why are you using -fuse-ld=lld? 
> > > 
> > > Because lld is significantly faster than the default.
> > 
> > But lld is not supported, you are on your own when using it (with GCC even
> > more so).
> 
> gcc supplies and allows the -fuse-ld=lld argument, so I think in this case
> if it's present gcc should not emit incompatible flags for lld. 

GCC does not know or probe what flags lld supports if it is not configured
as the default linker.

"not supported" was a statement for SUSE - lld is "supported" when used as
the default linker as configured for clang/llvm, not when used with GCC.

The "proper" fix would be to make lld recognize the flag if it claims
to be compatible with BFD ld, or otherwise cease supporting -fuse-ld=lld.

> I am aware that lld is not supported, but my time is also important and the
> difference in many builds, especially rust can be more than double by
> swapping to lld. For further, see https://github.com/rui314/mold#readme
> which has other comparisons.


You are receiving this mail because: