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




  In message <199902170245.SAA01426@atrus.synopsys.com>you write:
  > 
  > > >    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.
The behavior could be dependent on extra_warnings and/or specific warning
flags which depend on analysis done by optimization passes.

  > Please let's consider the consequences carefully before making this
  > change.  Is it really that much of a performance win?
In an optimizing compile?  Yes.  The amount of time spent in the front-end
up to initial rtl generation is dwarfed by the amount of time spent in the
optimizers.

For unoptimized compiles it's less of a win.

jeff