This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: patch to check ld
- To: Jason Merrill <jason at redhat dot com>
- Subject: Re: patch to check ld
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 31 Jul 2000 09:21:15 -0700
- Cc: Phil Edwards <pedwards at disaster dot jaj dot com>, 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><u9hf99cxl9.fsf@casey.soma.redhat.com>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Jason Merrill <jason@redhat.com> writes:
> 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.
In almost all situations but those when you are creating a final
binary. The linke can take *significantly* longer if you specify -O1.
On the other hand, compiling without -O might even make the
compilation process slower due to the amount of code generated. Since
gcc does not perform dead code analysis wiht -O I at least almost
always at least use -O.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------