This is the mail archive of the
mailing list for the GCC project.
Re: diagnostic.c cleanup, 2 of 3
Zack Weinberg wrote:-
> My immediate goal is to send diagnostics reported by cpplib through
> diagnostic.c. This will allow me to get rid of a whole bunch of code
> (almost all of cpperror.c, plus some loose ends elsewhere). More
> importantly, it'll mean that errorcount is always accurate, instead of
> being updated from cpplib's internal error count at the end of
Cool. While you're at it, could you add DL_FATAL (or DK_FATAL, or ...)
so cpplib can cause immediate halts?
We should do this for recursive #include, #error, missing headers, etc.
We don't at the moment because we have no way of stopping compilation.