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]
Other format: [Raw text]

Re: Warning for trigraphs in comment?


Joe Buck wrote:-

> On Mon, May 19, 2003 at 04:44:26PM +0200, Gabriel Dos Reis wrote:
> > What is happening with current GCC in production use is that GCC
> > choosed NOT to warn for trigraphs in comment even if -Wtrigraph. 
> 
> Ideally GCC should not warn about trigraphs in comments, ever, unless that
> trigraph can change the meaning of the program.

That is what 3.4 does.  It's not as easy as you might think to do this
efficiently, trigraphs being a PITA efficiency-wise anyway, never mind
doing long-winded checks to see if something constitutes a change in
the meaning of the program.

Basically 3.4 warns about trigraph escaped newlines in comments, even
in the middle of a big block comment, but nothing else.

Neil.


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