1 Apr 03:01
Re: Make missing headers fatal (PR 15638)
Joseph S. Myers <joseph <at> codesourcery.com>
2009-04-01 01:01:25 GMT
2009-04-01 01:01:25 GMT
On Tue, 31 Mar 2009, Manuel López-Ibáñez wrote: > 2009/3/31 Joseph S. Myers <joseph <at> codesourcery.com>: > > 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>(Continue reading)
Tobias
Tobias Burnus wrote:
> Hello all,
>
> as Jakub has found out the problem was introduced when procedure
> pointers in COMMON were supported. Before every COMMON member was had
> also the flavour FL_VARIABLE, but with procpointer it stayed FL_UNKNOWN.
>
> The patch does do two things:
>
> a) It added the FL_VARIABLE flavour in resolve.c - here one already
> knows that it can never become a proc pointer. (That patch is nice, but
> it does not help with the regression; I still think it belongs there for
> completeness.)
>
> b) It does something similar in primary.c. It took me a while to realize
> that although sym->referenced is set, this does not become fully active
> as for FL_UNKNOWN some settings are reset. Again, setting the flavour is
> not needed, but I think it is cleaner to do so before doing a "break".
>
> Build and being regtested on x86-64-linux. OK for the 4.5 trunk and for
> the 4.4? (I assume there is nothing from the RM side which speaks
> against it?)
>
> Tobias
>
RSS Feed