Re: [Tinycc-devel] [tcc-win32] compiler generate wrong instruction sequence

2024-12-25 Thread avih via Tinycc-devel
24-12-20 11:36 > To: tinycc-devel > Subject: Re: [Tinycc-devel] [tcc-win32] compiler generate wrong instruction > sequence >   > A more simple testcase : > > #include > > struct string { >  char *str; >  int len; > }; > > void dummy(struct string f

Re: [Tinycc-devel] [tcc-win32] compiler generate wrong instruction sequence

2024-12-25 Thread kbkp...@sina.com
From: kbkp...@sina.com Date: 2024-12-20 11:36 To: tinycc-devel Subject: Re: [Tinycc-devel] [tcc-win32] compiler generate wrong instruction sequence A more simple testcase : #include struct string { char *str; int len; }; void dummy(struct string fpath, int dump_arg) { } int main() { int a = 1

Re: [Tinycc-devel] [tcc-win32] compiler generate wrong instruction sequence

2024-12-19 Thread kbkp...@sina.com
ory also: bug_tcc.c:16: at main: RUNTIME ERROR: invalid memory access kbkp...@sina.com From: kbkp...@sina.com Date: 2024-12-20 10:45 To: tinycc-devel Subject: Re: [Tinycc-devel] [tcc-win32] compiler generate wrong instruction sequence By a quick search the commits, I found this bug was

Re: [Tinycc-devel] [tcc-win32] compiler generate wrong instruction sequence

2024-12-19 Thread kbkp...@sina.com
By a quick search the commits, I found this bug was introduced by commit 8227db3a23fd3cf11840eaa25eab5f3f5f813ac7: commit 8227db3a23fd3cf11840eaa25eab5f3f5f813ac7 Author: grischka Date: Sat Jun 22 11:45:35 2019 +0200 jump optimizations This unifies VT_CMP with VT_JMP(i) by using mo