aboutsummaryrefslogtreecommitdiff
path: root/tccgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccgen.c')
-rw-r--r--tccgen.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tccgen.c b/tccgen.c
index 6a5ba03..c5e368e 100644
--- a/tccgen.c
+++ b/tccgen.c
@@ -5157,8 +5157,13 @@ static void init_putz(CType *t, Section *sec, unsigned long c, int size)
} else {
vpush_global_sym(&func_old_type, TOK_memset);
vseti(VT_LOCAL, c);
+#ifdef TCC_TARGET_ARM
+ vpushs(size);
+ vpushi(0);
+#else
vpushi(0);
vpushs(size);
+#endif
gfunc_call(3);
}
}