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: warning: trigraph ... ignored


On Wed, Jun 14, 2000 at 12:46:00AM +0100, Nix wrote:
> Thorsten Kranzkowski <th@Marvin.DL8BCU.ampr.org> writes:
> 
> > /usr/src/linux-2.4.0-test1-ac18-work/include/linux/delay.h:19:44: warning: trigraph ??/ ignored
> > 
> > The relevant part of delay.h (linenumbers added):
> > 
> > 19  * specific values can be defined in asm-???/delay.h as an override.
> > 
> > I don't exactly know what trigraphs are, I assume some weird replacement
> > expression for unusual characters. But I don't think gcc should warn about 
> > them in _comments_ !
> 
[snip excellent explanation]

All that you say is true - but I want to add that there is no good
reason for us to warn about trigraphs inside comments that don't
affect where it starts or ends.  E.g. if you write

/* asm-???/delay.h */

the program has the same meaning whether or not the trigraph is
converted.  We still warn about that because the part of cpp that does
trigraph conversion doesn't know anything about comments.

This is fixed in the "new lexer", due Real Soon Now.

zw

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