This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/15638] gcc should have option to treat missing headers as fatal
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Feb 2009 15:35:25 -0000
- Subject: [Bug preprocessor/15638] gcc should have option to treat missing headers as fatal
- References: <bug-15638-5711@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from joseph at codesourcery dot com 2009-02-10 15:35 -------
Subject: Re: gcc should have option to treat missing
headers as fatal
On Tue, 10 Feb 2009, manu at gcc dot gnu dot org wrote:
> Could we take a look at the patch? I have also a half-baked patch. Are you
> going to replace cpplib functions completely or just set up call-backs as C++
> does? If the latter, then there is already a patch in bug 34695.
I'll post my patch once it's passed testing. It makes cpplib use
callbacks unconditionally, removing cpplib's own support for printing
diagnostics directly, and its notions of pedantic_errors,
inhibit_warnings, warn_system_headers, inhibit_errors, warnings_are_errors
(and client_diagnostic and cpplib's own count of errors). I don't see any
of the patches in bug 34695 as particularly useful in this regard.
For a library, having a single callback hook for diagnostics seems better
to me than requiring that the library's user define functions with special
names such as "error" and "warning".
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15638