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
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
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
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