This is the mail archive of the
mailing list for the libstdc++ project.
Re: patch to check ld
- To: Phil Edwards <pedwards at disaster dot jaj dot com>
- Subject: Re: patch to check ld
- From: Jason Merrill <jason at redhat dot com>
- Date: 28 Jul 2000 22:30:26 -0700
- Cc: bkoz at redhat dot com, Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr, libstdc++ at sources dot redhat dot com
- References: <200007261928.PAA10682@disaster.jaj.com>
Phil Edwards <firstname.lastname@example.org> writes:
> I could see the linker's -On only being turned on at the compiler's
> -O(n+delta), but (n+delta) would probably still be used for all the object
> files, not just the final step.
> Maybe gcc needs an -Ofinal to do things that only make good sense when
> creating a binary (or a library).
That seems silly. Under what circumstances would you want to compile
with optimization but link without or vice versa? Seems to me that a
-O on the compiler link command line should pass through to the
linker, though perhaps only for n>1.
And perhaps there should be an -flink-gc option that would imply
-ffunction-sections -fdata-sections -fvtable-gc -Wl,--gc-sections.