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: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Mar 2007 16:37:45 -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 #10 from bangerth at dealii dot org 2007-03-28 17:37 -------
(In reply to comment #6)
> Always stopping is the right thing. Once Per finishes his fileline
> conversion, it will be possible to send cpplib's errors through
> diagnostic.c, and we will then be able to make this a fatal error.
One possibility that doesn't involve a new interface between cc1 and cpplib
would be if cpplib simply indicated that the token stream ends here, if
it can't find a header file.
I can think of a few cases where we'd complain about open braces that haven't
been closed (think of an #include inside 'extern "C" {...}') but there
shouldn't be the pages and pages of error messages coming.
W.
--
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bangerth at dealii dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15638