aboutsummaryrefslogtreecommitdiff
path: root/arm-gen.c
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2013-02-04 11:01:58 +0100
committerThomas Preud'homme <robotux@celest.fr>2013-02-04 11:01:58 +0100
commitf71520724926baa049973dd5115d1dfb638be94e (patch)
tree7d2753a1ff8ba90848185db5901e4dd2fd3172a0 /arm-gen.c
parent61a4fd1d6e260118f87b74c07a58eee65d327db6 (diff)
downloadtinycc-f71520724926baa049973dd5115d1dfb638be94e.tar.gz
tinycc-f71520724926baa049973dd5115d1dfb638be94e.tar.bz2
arm-gen.c: fix var initialization in gfunc_call
Fix initialization of args_size before doing register allocation. When adding hardfloat calling convention the initialization stopped being performed when !defined (TCC_ARM_EABI).
Diffstat (limited to 'arm-gen.c')
-rw-r--r--arm-gen.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arm-gen.c b/arm-gen.c
index b4fcaf6..03b5fd7 100644
--- a/arm-gen.c
+++ b/arm-gen.c
@@ -836,9 +836,8 @@ void gfunc_call(int nb_args)
vpushi(0), nb_args++;
vtop->type.t = VT_LLONG;
- args_size = 0;
#endif
- ncrn = ncprn = argno = vfp_argno = 0;
+ ncrn = ncprn = argno = vfp_argno = args_size = 0;
/* Assign argument to registers and stack with alignment.
If, considering alignment constraints, enough registers of the correct type
(core or VFP) are free for the current argument, assign them to it, else