aboutsummaryrefslogtreecommitdiff
path: root/x86_64-gen.c
diff options
context:
space:
mode:
authorgrischka <grischka>2016-07-10 20:44:49 +0200
committergrischka <grischka>2016-07-10 20:44:49 +0200
commit41349948f8db22b09a22628dad15eb40a45d2eff (patch)
tree29d52912207a9ddecfedb7161c69fb0502c9c0f1 /x86_64-gen.c
parent03609051249a06b458b183596d28b1b883189fc2 (diff)
downloadtinycc-41349948f8db22b09a22628dad15eb40a45d2eff.tar.gz
tinycc-41349948f8db22b09a22628dad15eb40a45d2eff.tar.bz2
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
Diffstat (limited to 'x86_64-gen.c')
-rw-r--r--x86_64-gen.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/x86_64-gen.c b/x86_64-gen.c
index e313a5f..5a122d0 100644
--- a/x86_64-gen.c
+++ b/x86_64-gen.c
@@ -2228,7 +2228,6 @@ ST_FUNC void gen_vla_alloc(CType *type, int align) {
vpush_global_sym(&func_old_type, TOK_alloca);
vswap(); /* Move alloca ref past allocation size */
gfunc_call(1);
- vset(type, REG_IRET, 0);
#else
int r;
r = gv(RC_INT); /* allocation size */