|
From: | Christian Jullien |
Subject: | Re: [Tinycc-devel] trouble shooting for arm64-gen.c |
Date: | Sun, 22 Mar 2020 07:56:10 +0100 |
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=address@hidden] On Behalf Of ?? 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 |
[Prev in Thread] | Current Thread | [Next in Thread] |