Trigraph warnings when compiling linux-2.4.0-prerelease1

Fergus Henderson fjh@cs.mu.oz.au
Tue Jan 2 19:03:00 GMT 2001


On 02-Jan-2001, dewar@gnat.com <dewar@gnat.com> wrote:
> 
> In fact the current documentation is clear and appears to match the
> documentation.

I'm not quite sure what you mean there (did you intend to say
"appears to match the implementation"?).

The current documentation says

`-Wtrigraphs'
     Warn if any trigraphs are encountered that might change the
     meaning of the program (trigraphs within comments are not warned
     about).

which is different to the documentation quoted earlier in this
thread.  I agree that it seems clear enough.

> It is certainly reasonable to ask the question of
> whether the warning should be effective even if trigraphs are enabled,

I think that if you use `-Wtrigraphs', you should get the warnings
regardless of whether trigraph substitution is enabled or not.
That is the current behaviour, and matches the current documentation.

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: < http://www.cs.mu.oz.au/~fjh >  |     -- the last words of T. S. Garp.


More information about the Gcc mailing list