[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Segfault on arm64 when making a function call with ma
From: |
Christian Jullien |
Subject: |
Re: [Tinycc-devel] Segfault on arm64 when making a function call with many arguments |
Date: |
Sun, 20 Jun 2021 07:42:15 +0200 |
Without the patch, it also coredumps on Risc-V:
jullien@gcc401:~$ tcc -v
tcc version 0.9.27 - 0378168 (riscv64 Linux)
jullien@gcc401:~$ tcc -o foo foo.c && ./foo
Illegal instruction (core dumped)
-----Original Message-----
From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=orange.fr@nongnu.org] On
Behalf Of Christian Jullien
Sent: Sunday, June 20, 2021 06:59
To: tinycc-devel@nongnu.org
Subject: Re: [Tinycc-devel] Segfault on arm64 when making a function call with
many arguments
Hi, I only tested the latest patch supplied by Pursuer,
When A == 0, it gives the expected result:
tcc foo.c -o foo && ./foo
10 20 30 40 50 60 70 80 0
(no core dump)
-----Original Message-----
From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=orange.fr@nongnu.org] On
Behalf Of grischka
Sent: Sunday, June 20, 2021 01:19
To: jullien@eligis.com; tinycc-devel@nongnu.org
Subject: Re: [Tinycc-devel] Segfault on arm64 when making a function call with
many arguments
Christian Jullien wrote:
> All parameters go to the right arguments. So patch looks good
What happens if the first condition is false (A = 0) ?
-- gr
> void main() {
>
> int A = 1;
>
> int B = 2;
>
> map_add(10, 20, 30, 40, 50, 60, 70, 80, A && B);
>
> }
>
>
>
> $ tcc foo.c -o foo && ./foo;echo
>
> 10 20 30 40 50 60 70 80 1
>
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
Re: [Tinycc-devel] Segfault on arm64 when making a function call with many arguments, Arthur Williams, 2021/06/20
Re: [Tinycc-devel] Segfault on arm64 when making a function call with many arguments, Pursuer, 2021/06/21