This is the mail archive of the gcc@gcc.gnu.org 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]

Re: Trigraph warnings when compiling linux-2.4.0-prerelease1


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.

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