Hi! I patch will be pushed to the mob. I think it does the job well
01-struct-decl.patch
Description: Binary data
___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
Hi,
On Thu, 2 Apr 2015, Sergey Korshunoff wrote:
> Thanks. Very interesting. Then a patch must contain a -fms-extensions
> option too.
Or we just declare this to be a non-issue. Accepting invalid source is
IMHO acceptable in the scope of TCC (at least if the fix would be too
involved).
Ciao
Thanks. Very interesting. Then a patch must contain a -fms-extensions
option too. But how to detect if struct is nested or anonymuos?
___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
Hi,
On Sun, 29 Mar 2015, Sergey Korshunoff wrote:
> struct A
> {
> struct B {
> int f1;
> int f2;
> };
> };
> int main()
> {
> struct A a;
> a.f1 = 16;
> a.f2 = 32;
> }
>
> A tcc compiler must not accept this program because a struct B is only
> a type declara
Hi! A code which must be patched
diff -urN tinycc.old/tccgen.c tinycc/tccgen.c
--- tinycc.old/tccgen.c 2015-03-29 11:04:47.0 +0300
+++ tinycc/tccgen.c 2015-03-30 07:36:05.0 +0300
@@ -2959,7 +2959,8 @@
type1 = btype;
if (tok != ':') {
Hi! There is a test file (from the bug #31403 on savannah.nongnu.org)
truct A
{
struct B {
int f1;
int f2;
};
};
int main()
{
struct A a;
a.f1 = 16;
a.f2 = 32;
}
A tcc compiler must not accept this program because a struct B is only
a type declaration and not a