[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] trouble shooting for arm64-gen.c

From: Michael Matz
Subject: Re: [Tinycc-devel] trouble shooting for arm64-gen.c
Date: Mon, 23 Mar 2020 17:34:03 +0100 (CET)
User-agent: Alpine 2.21 (LSU 202 2017-01-01)


On Sun, 22 Mar 2020, Christian Jullien wrote:

jullien@rpi64 $ cat print.c

#include <stdarg.h>


struct X { int _x; };



va_arg_bug(va_list ap) {

        void *x = va_arg(ap, struct X *);

This is a pointer.

jullien@rpi64 $ tcc -c print.c

tcc: arm64-gen.c:257: arm64_type_size: Assertion `0' failed.

Aborted (core dumped)
From arm64_type_size, type VT_STRUCT is indeed missing.

So this can't be the fix directly, something else is going on (e.g. something in TCC looks through the pointer to get at 'struct X' where that either shouldn't happen, or where it needs to be handled more correct).



I’m going to push a patch and add new test case.




From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=address@hidden]
On Behalf Of ??
Sent: Sunday, March 22, 2020 00:51
To: address@hidden
Subject: [Tinycc-devel] trouble shooting for arm64-gen.c


Hi guys,

I'm the fans to tinycc.

Today I compile the FFTW-3.3.8 by tcc. But it trigger the assert(0) in line
257 arm64-gen.c.

Then,I add "case VT_STRUCT: return 3;" int the tail of the switch block


I wonder to know whether it is correct?


Best Regards!







reply via email to

[Prev in Thread] Current Thread [Next in Thread]