This is the mail archive of the gcc@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: `--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?






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