[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] const_wanted
From: |
Thomas Preud'homme |
Subject: |
Re: [Tinycc-devel] const_wanted |
Date: |
Sun, 31 Jul 2011 17:37:32 +0200 |
User-agent: |
KMail/1.13.7 (Linux/3.0.0-1-amd64; KDE/4.6.5; x86_64; ; ) |
Le dimanche 31 juillet 2011 17:23:28, grischka a écrit :
> Thomas Preud'homme wrote:
> > Mmmmh good point, I should have tried with mob. I can't reproduce it
> > neither. So I guess master is not as close to mob as I thought.
>
> Plus running the const_wanted branch without const_wanted being
> actually set doesn't look like a good idea. It could still
> generate code in the gen_cast() or gexpr() calls below.
Thanks, I'll set (and unset at the end of the function) const_wanted in the
next experimental upload. I was thinking about doing it each time
cur_text_section is non NULL but it requires a static variable to store the
previous value of const_wanted accross functions.
>
> However note that tcc is still wrong with accepting VLA on the
> global level:
>
> int foo_array[fn() ? 2 : 42];
>
> This should give an error such as with gcc:
>
> test.c:10: error: variable-size type declared outside of any function
Would the patch attached be satisfying or you prefer a better test for the
global level?
>
> Joe ?
>
> Thanks,
>
> --- grischka
no_vla_in_global_level.patch
Description: Text Data
signature.asc
Description: This is a digitally signed message part.
- [Tinycc-devel] const_wanted, grischka, 2011/07/31
- Re: [Tinycc-devel] const_wanted, Thomas Preud'homme, 2011/07/31
- Re: [Tinycc-devel] const_wanted, grischka, 2011/07/31
- Re: [Tinycc-devel] const_wanted, Thomas Preud'homme, 2011/07/31
- Re: [Tinycc-devel] const_wanted, grischka, 2011/07/31
- Re: [Tinycc-devel] const_wanted,
Thomas Preud'homme <=
- Re: [Tinycc-devel] const_wanted, grischka, 2011/07/31
- Re: [Tinycc-devel] const_wanted, Thomas Preud'homme, 2011/07/31
- Re: [Tinycc-devel] const_wanted, grischka, 2011/07/31
- Re: [Tinycc-devel] const_wanted, Michael B. Smith, 2011/07/31