From 28a5b702f4fcc86324afe843c19abf10be57198a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gl=C3=B6ckner?= Date: Tue, 17 May 2011 02:24:45 +0200 Subject: [PATCH] Fix calling ARM EABI functions returning big structures The wrong type was tested to determine the size of the structure. --- arm-gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm-gen.c b/arm-gen.c index 9e176a5a..9feae1b9 100644 --- a/arm-gen.c +++ b/arm-gen.c @@ -749,7 +749,7 @@ void gfunc_call(int nb_args) gv(RC_INT); #ifdef TCC_ARM_EABI if((vtop[-nb_args].type.ref->type.t & VT_BTYPE) == VT_STRUCT - && type_size(&vtop[-nb_args].type, &align) <= 4) { + && type_size(&vtop[-nb_args].type.ref->type, &align) <= 4) { SValue tmp; tmp=vtop[-nb_args]; vtop[-nb_args]=vtop[-nb_args+1];