This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix cpp to match cpp.texi in respect to warnings
- To: Jakub Jelinek <jakub at redhat dot com>
- Subject: Re: [PATCH] Fix cpp to match cpp.texi in respect to warnings
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Tue, 10 Apr 2001 22:18:55 +0100
- Cc: gcc-patches at gcc dot gnu dot org, Zack Weinberg <zackw at Stanford dot EDU>
- References: <20010410170130.H1169@devserv.devel.redhat.com>
Jakub Jelinek wrote:-
> cpp.texi sais about -Wcomment that it enables warning whenever
> backslash-newline appears in a // comment, but in reality this warning is
> issued unconditionally. Likewise, cpp.texi speaks about -Wwhite-space, but
> the warning is unconditional too.
> This patch changes cpp0 to match its documentation.
> Bootstrapped on i386-redhat-linux, no regressions.
> Ok to commit?
The Wcomment line is fine for branch and mainline.
As for -Wwhite-space, I never knew that existed. It must have been in cccp;
I don't believe it was ever intended to be handled in cpplib. IIRC I just
put in the cpplib warning because I noticed it was in one place and easy
to do (after a discussion by Per about why it might be useful to allow
such stuff without failing).
I'd rather just drop -Wwhite-space from the docs; I think we should
always warn. But I don't feel strongly about it; Zack may have a
different opinion. If we decide to keep it, the documentation should
be made clearer too - it is the only case where this option is used,
and not just an example.
Neil.