[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] missing check after calling type_size in classify_x86
From: |
grischka |
Subject: |
Re: [Tinycc-devel] missing check after calling type_size in classify_x86_64_arg |
Date: |
Mon, 24 Jun 2019 11:50:26 +0200 |
User-agent: |
Thunderbird 2.0.0.23 (Windows/20090812) |
Pascal Cuoq wrote:
int t[][3]; [ error: unknown type size ]
Actually that is not wrong. It's the same as
extern int t[][3];
MSVC accepts it without warning, and GCC too if either 'extern' or
the size is still specified:
int t[][3];
extern int t[][3];
or
int t[][3] = {{1,2,3}};
I'v pushed a patch that does allow that (among other things ;)
https://repo.or.cz/tinycc.git/commitdiff/85690480313c4a8b0efeb3761ee68456cfe57840
W.r.t. changes on VT_EXTERN, they were originally based on the idea
that I wanted the distinction between definition and declaration to
be provided on the Sym level (rather than the ESym one).
-- gr
- [Tinycc-devel] missing check after calling type_size in classify_x86_64_arg, Pascal Cuoq, 2019/06/20
- Re: [Tinycc-devel] missing check after calling type_size in classify_x86_64_arg, Michael Matz, 2019/06/21
- Re: [Tinycc-devel] missing check after calling type_size in classify_x86_64_arg, Pascal Cuoq, 2019/06/22
- Re: [Tinycc-devel] missing check after calling type_size in classify_x86_64_arg, Michael Matz, 2019/06/22
- Re: [Tinycc-devel] missing check after calling type_size in classify_x86_64_arg, Pascal Cuoq, 2019/06/23
- Re: [Tinycc-devel] missing check after calling type_size in classify_x86_64_arg, Michael Matz, 2019/06/23
- Re: [Tinycc-devel] missing check after calling type_size in classify_x86_64_arg, Pascal Cuoq, 2019/06/23
- Re: [Tinycc-devel] missing check after calling type_size in classify_x86_64_arg, Michael Matz, 2019/06/23
- Re: [Tinycc-devel] missing check after calling type_size in classify_x86_64_arg, Pascal Cuoq, 2019/06/24
- Re: [Tinycc-devel] missing check after calling type_size in classify_x86_64_arg,
grischka <=
- Re: [Tinycc-devel] missing check after calling type_size in classify_x86_64_arg, Pascal Cuoq, 2019/06/24