This is the mail archive of the gcc-patches@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: [PATCH] cpplib sig11 fix


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

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