Thank you Jiong.

To help maintainers with this bug, here is a minimal test case which
reproduces the error (on a Rpi3 with Fedrora 31):



jullien@rpi64 $ cat print.c

#include <stdarg.h>



struct X { int _x; };



void

va_arg_bug(va_list ap) {

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

}

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.



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



C.



From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=orange...@nongnu.org]
On Behalf Of ??
Sent: Sunday, March 22, 2020 00:51
To: tinycc-devel@nongnu.org
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
curtly.



I wonder to know whether it is correct?



Best Regards!



Jiong









_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to