From 291eccc154273fe3cb7b623cc2f4a038ca251fbf Mon Sep 17 00:00:00 2001 From: herman ten brugge Date: Thu, 17 Mar 2022 10:06:24 +0100 Subject: [PATCH] Vla fix for 64 bits targets --- tccgen.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tccgen.c b/tccgen.c index c5be6594..67b9268f 100644 --- a/tccgen.c +++ b/tccgen.c @@ -3945,7 +3945,11 @@ static void vpush_type_size(CType *type, int *a) int size = type_size(type, a); if (size < 0) tcc_error("unknown type size"); +#if PTR_SIZE == 8 + vpushll(size); +#else vpushi(size); +#endif } }