------- Comment #4 from jsm28 at gcc dot gnu dot org 2009-03-29 23:04 ------- cpplib now uses diagnostic.c, but this does not magically fix this problem.
See what I said in <http://gcc.gnu.org/ml/gcc-patches/2009-02/msg00491.html> about how to fix this: One potential use for making cpplib use the compiler's diagnostic infrastructure would be the ability to control the warnings (with pragmas, -Werror=option etc.) the same way as with those from the compiler. To implement this on top of this patch, cpp_error and cpp_error_with_line could be changed to take a cpplib-specific identifier for the diagnostic or group of diagnostics; the callbacks could then convert those identifiers to ones suitable for diagnostic.c. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38105