patch to check ld
Jason Merrill
jason@redhat.com
Mon Jul 31 03:27:00 GMT 2000
Phil Edwards <pedwards@disaster.jaj.com> 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.
Jason
More information about the Libstdc++
mailing list