This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Mainline bootstrap failure (Re: libstdc++ execute tests)


At 15:25 12.04.2001, Alexandre Oliva wrote:
>On Apr 12, 2001, Franz Sirl <Franz.Sirl-kernel@lauterbach.com> wrote:
>
> > Sorry, sent the wrong patch, see my followup post. BOOT_CFLAGS = -O2
> > $(CFLAGS) is actually the right thing to do.
>
>I'm not sure I agree with that.
>
>Suppose I want to bootstrap a complete tool-chain without
>optimization.  Shouldn't `make CFLAGS=-g bootstrap' accomplish that?
>With your patch, it wouldn't: the stage3 GCC would still be compiled
>with optimization.

Yes, and what's the problem? You didn't tell to override optimizations, you 
just told to generate debug information. For overriding optimizations you 
pass CFLAGS="-g -O0" as with any other package that defaults to certain 
optimizations that are not handled directly via CFLAGS.

Franz.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]