This is the mail archive of the gcc-patches@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: 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
> compilation.

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.

Neil.


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