--- In c-prog@yahoogroups.com, "John Matthews" <jm5...@...> wrote:
>
> --- In c-prog@yahoogroups.com, Thomas Hruska <thruska@> wrote:
> >
> > Why in the world would the optimization level have anything to do
with 
> > the warning level?
> 
> I guess it needs to do certain types of static anlysis for
> optimisation, and as a result of that analysis it spots things like
> uninitialised variables. That is, the warning is just a by-product of
> another process.
> 
> But I'm only guessing.

Just checked with our tools team, who did the gcc port for our processor:

"There are 2 phases in which uninitialised variable warnings are
emitted and the second one will be executed only when you have
optimizations turned on."

Reply via email to