This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: `--syntax-only' after error
- To: craig at jcb-sc dot com
- Subject: Re: `--syntax-only' after error
- From: Joe Buck <jbuck at Synopsys dot COM>
- Date: Tue, 16 Feb 99 18:45:55 PST
- Cc: peter at gerwinski dot de, egcs at egcs dot cygnus dot com, frank at tim dot gerwinski dot de
> > 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?