Mail Archives: djgpp/1998/06/25/09:59:06
On Tue, 23 Jun 1998, Vik Heyndrickx wrote:
> > On Tue, 23 Jun 1998, Vik Heyndrickx wrote:
> >
> > > I thought that omitting any -0* meant -O0.
> >
> > It should. Perhaps they've changed their specs file so that it specifies
> > -O by default? Adding -v should print all the options, both compiled
> > into the binary and those from specs.
>
> I need to recheck this, but I thought I got at home the same results
> with DJGPP as with Solaris.
GCC 2.7.2.1 (in the DJGPP port) does behave identically with -O0 and
without -O?. However, you were right: the warning about unused variables
is printed even with -O0, so it seems my memory was from some old version
of GCC (or just downright wrong). Sorry for posting misinformation.
The "variable might be used before it's initialized" warning *does* need
the optimization switch.
- Raw text -