This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: matching '-Wl,' in a specs file
- From: Andrew Haley <aph at redhat dot com>
- To: Gunther Nikl <gni at gecko dot de>
- Cc: James E Wilson <wilson at specifixinc dot com>, gcc at gcc dot gnu dot org
- Date: Mon, 4 Jul 2005 13:15:19 +0100
- Subject: Re: matching '-Wl,' in a specs file
- References: <20050519085704.GA18269@lorien.int.gecko.de><42C5C170.6090104@specifixinc.com><20050704114638.GA51912@lorien.int.gecko.de>
Gunther Nikl writes:
> On Fri, Jul 01, 2005 at 03:19:28PM -0700, James E Wilson wrote:
> > Gunther Nikl wrote:
> > >A few LINK_SPEC definitions contain a "%{Wl,*:%*}" sequence.
> >
> > There is no need to match -Wl options in LINK_SPEC, as it is handled by
> > the gcc.c driver. The driver support was added in gcc-2.5.8. I believe
> > all of these LINK_SPEC checks for -Wl are obsolete code from gcc-2.4.x
> > and earlier that never got cleaned up. I confirmed this for a two of
> > the older ports, sol2.h and svr4.h. The rest appear to have copied it
> > from one of these two files.
>
> Thanks for these interesting historical information.
>
> > Is there are particular reason you are asking about this?
>
> Sometimes I use -Wl,-r and I tried to change what options to pass
> depending on -r.
IMO that would be really bad. The point of "-Wl" is to pass arguments
unmolested to the linker, bypassing gcc's spec mechanism. This si for
people who really understand what they're doing.
> > If not, then I think the only thing we need to do here is delete all
> > of this obsolete code.
>
> IMHO if thats really obsolete code, then it should get removed.
Yup.
Andrew.