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:[email protected]] On 
Behalf Of grischka
Sent: Sunday, June 20, 2021 01:19
To: [email protected]; [email protected]
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
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to