This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Trigraph warnings when compiling linux-2.4.0-prerelease1
- To: torvalds at transmeta dot com (Linus Torvalds)
- Subject: Re: Trigraph warnings when compiling linux-2.4.0-prerelease1
- From: Joe Buck <jbuck at racerx dot synopsys dot com>
- Date: Tue, 2 Jan 2001 12:38:30 -0800 (PST)
- Cc: per at bothner dot com (Per Bothner), gcc at gcc dot gnu dot org
Per Bothner wrote:
> > I read "assuming they are enabled" is a very poor way of saying "warn about
> > constructs that would be read as trigraphs if trigraphs were enabled."
Linus wrote:
> I would have to agree that that would be more logical, even if I don't
> think that is what the docs actually _say_ right now ;)
Thanks for alerting us to this documentation bug. I had also read the
language the way Per reads it, and not the way you read it, but I agree
that it is confusing and the fact that it can be read two ways means it's
bad documentation. If the compiler worked the way you are interpreting
the documentation, the warning would be less useful, and the intent of
-Wtrigraphs is to warn about trigraphs.
Trigraphs are handled during preprocessing, and we have a new
preprocessor, so some differences are going to show up. I will object
to changes that have a negative impact on users (e.g. the Emacs users
and #cpu), but this is not such a case IMHO.