This is the mail archive of the 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: Make missing headers fatal (PR 15638)

On Tue, 31 Mar 2009, Manuel López-Ibáñez wrote:

> 2009/3/31 Joseph S. Myers <>:
> > Having made cpplib use the compiler's diagnostic.c, making missing
> > headers an unconditional fatal error (as discussed in PR 15638) is
> > straightforward. ?I've committed this patch; bootstrapped with no
> > regressions on i686-pc-linux-gnu. ?(Fortran part committed as
> > obvious.)
> This is a substantial change of behaviour. It needs to be documented
> in gcc-4.5/changes.html, please.

I have added this release note.

Index: changes.html
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.5/changes.html,v
retrieving revision 1.2
diff -u -r1.2 changes.html
--- changes.html	28 Mar 2009 07:37:09 -0000	1.2
+++ changes.html	1 Apr 2009 01:00:20 -0000
@@ -32,6 +32,13 @@
 <h3>C family</h3>
+  <ul>
+    <li>If a header named in a <code>#include</code> directive is not
+    found, the compiler exits immediately.  This avoids a cascade of
+    errors arising from declarations expected to be found in that
+    header being missing.</li>
+  </ul>
   <h4>Runtime Library (libstdc++)</h4>

Joseph S. Myers

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