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]
Other format: [Raw text]

Re: gcc compile-time performance


<<GNAT's real advantage, in fact, is not so much in good error RECOVERY,
as in good error DIAGNOSIS: its messages are MUCH better than the
usual GCC standard.  Panic-mode error recovery is never going to give
you that.
>>

As an example of error recovery in GNAT, it goes to great ends to try to
survive missing, extra, or malformed enders. It uses all sorts of clues,
including indentation of the source to guess the intended structure and
an interesting criterion which it meets is that none of the ACVC tests
get confused, and none of them need splitting because of such errors.
(you have to split an ACVC test if you generate junk extra errors in
an error test or if you miss an error).


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