This is the mail archive of the
mailing list for the libstdc++ project.
Re: patch to check ld
- To: fche at redhat dot com
- Subject: Re: patch to check ld
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Mon, 31 Jul 2000 16:19:06 -0400
- Cc: jason at redhat dot com, libstdc++ at sources dot redhat dot com
email@example.com (Frank Ch. Eigler):
> Phil Edwards <firstname.lastname@example.org> writes:
> > Say, during compiling, one would pass -On, and when linking, one would pass
> > -On -Ofinal. The latter would pass on to the linker all those flags that
> > make sense for linking. And if -Ofinal were passed during a compile-only
> > step, it would be ignored.
> But during a "compile-only step", when is the linker is invoked at all?
It wouldn't. Thus, it would be ignored [by the compiler driver], e.g.,
g++ -c -O2 -Ofinal blah.cc
g++ would ignore -Ofinal, and
g++ -o kapucky -O2 -Ofinal blah.o
would use it in some manner. (If the -O flags are being generated by a
make rule, then even the nonsense ones should be accepted and discarded,
like passing -L to a compile-only step.)
Just a thought; I doubt it'll happen.