This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/15638] New: gcc should have option to treat missing headers as fatal
- From: "jlawson-gcc at bovine dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 May 2004 22:25:37 -0000
- Subject: [Bug preprocessor/15638] New: gcc should have option to treat missing headers as fatal
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When gcc fails to #include a header because the named file is missing, it prints
an error yet continues trying to compile the source file. (In most cases, this
ends up printing hundreds/thousands of error messages that are caused by the
fact that the definitions in that header file were not processed.)
Although the initial error resulting from the missing header will be sufficient
to eventually cause gcc to fail the compilation, it only stops after attempting
to go through the entire source file.
gcc should have an option to treat missing includes as fatal, and stop
compilation immediately.
--
Summary: gcc should have option to treat missing headers as fatal
Product: gcc
Version: 3.2.1
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jlawson-gcc at bovine dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15638