This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.


[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

Re: `--syntax-only' after error




> >    flag_syntax_only = 1;

> I don't mind taking care of this.  I still have reservations about
> it, e.g., it'll probably make *some* types of error detection
> stop working after the first error.

Yikes.  Let's be careful out there.

> errors/warnings stemming from RTL analysis, such as uninitialized-
> variable and such.

Exactly.  If I didn't see such errors and then saw new ones when I
recompiled, I'd be annoyed.  To me, the uninitialized variable warnings
are quite important; if I specify -Wall, I have asked for all warnings,
not just all warnings before the first error.

> Even a programmer who sees a fatal error in
> one routine might want to also see an uninit-var warning in a
> subsequent, distinct routine.

Yes, many programmers want to catch as many errors and warnings
as possible in one compile.  This is particularly important for large
projects.

Please let's consider the consequences carefully before making this
change.  Is it really that much of a performance win?