From 41349948f8db22b09a22628dad15eb40a45d2eff Mon Sep 17 00:00:00 2001 From: grischka Date: Sun, 10 Jul 2016 20:44:49 +0200 Subject: win64: fix va_arg fixes 5c35ba66c5ade4713bbd9c005e66889f6d7db293 Implementation was consistent within tcc but incompatible with the ABI (for example library functions vprintf etc) Also: - tccpp.c/get_tok_str() : avoid "unknown format "%llu" warning - x86_64_gen.c/gen_vla_alloc() : fix vstack leak --- tccgen.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tccgen.c') diff --git a/tccgen.c b/tccgen.c index d7f8c0d..5d92e5f 100644 --- a/tccgen.c +++ b/tccgen.c @@ -4033,6 +4033,7 @@ ST_FUNC void unary(void) tcc_error("__builtin_va_start expects a local variable"); vtop->r &= ~(VT_LVAL | VT_REF); vtop->type = char_pointer_type; + vtop->c.i += 8; vstore(); } break; -- cgit v1.3.1