[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] segfault with static array initialized by a macro

From: Thomas Preud'homme
Subject: Re: [Tinycc-devel] segfault with static array initialized by a macro
Date: Sun, 21 Oct 2012 14:22:50 +0200
User-agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; )

Le dimanche 21 octobre 2012 13:51:16, Thomas Preud'homme a écrit :
> Le dimanche 21 octobre 2012 13:48:18, Thomas Preud'homme a écrit :
> > The second mistake is that nocode_wanted should be 1 if processing some
> > static variable since it will be outside any function. This is probably
> > the easiest fix but really both problems should be fixed IMHO.
> Since VLA is probably the only case where gexpr is called and hence code
> might be generated, it might be just easier to check this in post_type.
> Probably a one-liner or two-liner fix this way.

Not so easy in fact since type_decl, which invoke post_type, remove the 
VT_STATIC flag before calling post_type. Back to the nocode_wanted solution. 
See attached patch.

Any objection for pushing this in mob?

> Thomas

Best regards,


Attachment: nocode_wanted_in_post_type.diff
Description: Text Data

Attachment: signature.asc
Description: This is a digitally signed message part.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]