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

--- Comment #11 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #10)
> (In reply to [email protected] from comment #8)
> > > --- Comment #6 from Andreas Schwab <[email protected]> ---
> > > After
> > >
> > > # Collect target-machine-specific information.
> > > . ${srcdir}/config.gcc || exit 1
> > >
> > > the ultimate wisdom for GNU ld should be $gnu_ld, not $gnu_ld_flag.
> > 
> > I doubt that: what's the point of all the gas=yes/gnu_ld=yes guesswork
> > in config.gcc when the value can be actually determined?
> > 
> > #  gas                      Set to yes or no depending on whether the target
> > #                   system normally uses GNU as.
> > 
> > #  gnu_ld           Set to yes or no depending on whether the target
> > #                   system normally uses GNU ld.
> > 
> > Instead, we should assume gas/gld unless explicitly overridden or
> > determined as "no" in gcc/configure.ac.

And to amend the above - config.gcc should end with gas/gnu_ld that we
assume unless overridden by flags provided to configure.  For the
solaris case that might mean they are empty, aka unknown, or we still
assume they are used and fixup during configure.

And we should document the assumption in install.texi (we largely do
implicitly by requiring GNU binutils).

Reply via email to