This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] cpplib sig11 fix
- To: Jakub Jelinek <jakub at redhat dot com>
- Subject: Re: [PATCH] cpplib sig11 fix
- From: Zack Weinberg <zack at wolery dot cumb dot org>
- Date: Tue, 6 Jun 2000 10:44:01 -0700
- Cc: gcc-patches at gcc dot gnu dot org
- References: <20000606161917.T474@sunsite.ms.mff.cuni.cz>
On Tue, Jun 06, 2000 at 04:19:17PM +0200, Jakub Jelinek wrote:
> Hi!
>
> If cpp is fed with
> #ifdef 0
> somestuff
> #endif
>
> then it dies with sig11, which is IMHO not very good even for lame input.
> Patch below fixes this.
Thanks. I will apply this, with a test case, if it survives a
bootstrap. (Which will take awhile, I'm doing --enable-checking runs
right now.)
> BTW: This was handled as a warning previously, is it intentionally an error
> now or not? (not that I want to type such lame stuff)
Yes. It's a constraint violation, and only idiomatic in traditional C
(where the error is disabled, you'll notice).
zw