On Thu, Jun 15, 2000 at 04:49:21PM +0000, Thorsten Kranzkowski wrote:
> Hello again!
> It seems that gcc shouldn't warn about trigraphs at all because it shouldn't
> care about them by default. Neither -ansi nor -trigraph were passed to gcc
> so trigraph processing is disabled (or should be...).
> ----- Forwarded message from "H. Peter Anvin" <firstname.lastname@example.org> -----
[snip documentation quote]
> > We don't *want* trigraphs, since they invoke behaviour that is
> > generally unexpected. There is nothing on that command line that
> > should have turned trigraphs on. Thus, I conclude that the
> > -Wtrigraphs option is broken in the version of gcc you're using (2.96,
> > right?) and that this bug should be reported.
The documentation is out of date. -Wtrigraphs has been included in
-Wall for a long time, but no one noticed because it didn't do
anything when trigraphs were disabled. We felt that they were a
common enough portability problem that they should be warned about
even when they were disabled; the new preprocessor is capable of this.
Trigraphs are still not enabled unless you put -trigraphs or -ansi on
the command line. The warning message
test.c:2:2: warning: trigraph ??/ ignored
was intended to make this obvious. If trigraphs are enabled, you get
a different message:
test.c:2:2: warning: trigraph ??/ converted to \
Suggestions for better wording would be appreciated.
In the near future, gcc will stop warning about trigraphs in comments,
which represent the vast majority of trigraphs in the kernel source.
(This is not possible right now because the trigraph converter doesn't
know about comments.) I'd recommend that you ignore the issue for
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:10 EST