From 5342b32eef56a73dfc9c932bf4c77963de2f6f8e Mon Sep 17 00:00:00 2001 From: grischka Date: Wed, 19 Dec 2007 17:36:42 +0000 Subject: Switch to newer tccpe.c (includes support for resources) --- i386-gen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'i386-gen.c') diff --git a/i386-gen.c b/i386-gen.c index 77505d7..a3d2743 100644 --- a/i386-gen.c +++ b/i386-gen.c @@ -380,7 +380,7 @@ void gfunc_call(int nb_args) } save_regs(0); /* save used temporary registers */ func_sym = vtop->type.ref; - func_call = func_sym->r; + func_call = FUNC_CALL(func_sym->r); /* fast call case */ if ((func_call >= FUNC_FASTCALL1 && func_call <= FUNC_FASTCALL3) || func_call == FUNC_FASTCALLW) { @@ -402,7 +402,7 @@ void gfunc_call(int nb_args) } } gcall_or_jmp(0); - if (args_size && func_sym->r != FUNC_STDCALL) + if (args_size && func_call != FUNC_STDCALL) gadd_sp(args_size); vtop--; } @@ -423,7 +423,7 @@ void gfunc_prolog(CType *func_type) CType *type; sym = func_type->ref; - func_call = sym->r; + func_call = FUNC_CALL(sym->r); addr = 8; loc = 0; if (func_call >= FUNC_FASTCALL1 && func_call <= FUNC_FASTCALL3) { -- cgit v1.3.1