From 68666eee2ade45ab73b07361367d0a38d350d663 Mon Sep 17 00:00:00 2001 From: grischka Date: Wed, 8 Feb 2017 19:45:31 +0100 Subject: tccgen: factor out gfunc_return Also: - on windows i386 and x86-64, structures of size <= 8 are NOT returned in registers if size is not one of 1,2,4,8. - cleanup: put all tv-push/pop/swap/rot into one place --- tcc.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index 7997e86..e500140 100644 --- a/tcc.h +++ b/tcc.h @@ -1273,7 +1273,6 @@ ST_FUNC void check_vstack(void); ST_INLN int is_float(int t); ST_FUNC int ieee_finite(double d); ST_FUNC void test_lvalue(void); -ST_FUNC void swap(int *p, int *q); ST_FUNC void vpushi(int v); ST_FUNC Sym *external_global_sym(int v, CType *type, int r); ST_FUNC void vset(CType *type, int r, long v); @@ -1519,7 +1518,7 @@ ST_FUNC void gen_cvt_itof1(int t); #ifdef TCC_TARGET_ARM64 ST_FUNC void gen_cvt_sxtw(void); ST_FUNC void gen_opl(int op); -ST_FUNC void greturn(void); +ST_FUNC void gfunc_return(CType *func_type); ST_FUNC void gen_va_start(void); ST_FUNC void gen_va_arg(CType *t); ST_FUNC void gen_clear_cache(void); -- cgit v1.3.1