From b8adf0090e984d93b6fb3af635fedbbbebfa92e4 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Tue, 14 Sep 2010 19:17:39 +0200 Subject: Move asm label functions from tccasm.c to tccgen.c * Move functions parse_asm_str and asm_label_instr from tccasm.c to tccgen.c * Remove CONFIG_TCC_ASM_LABEL macro as asm label are available on all archs. See: http://lists.nongnu.org/archive/html/tinycc-devel/2010-09/msg00026.html for the rationale. --- tcc.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index 95a2efb..492c724 100644 --- a/tcc.h +++ b/tcc.h @@ -122,7 +122,6 @@ #if !defined(TCC_TARGET_ARM) && !defined(TCC_TARGET_C67) #define CONFIG_TCC_ASM #endif -#define CONFIG_TCC_ASM_LABEL /* object format selection */ #if defined(TCC_TARGET_C67) @@ -1073,6 +1072,7 @@ ST_FUNC int type_size(CType *type, int *a); ST_FUNC void mk_pointer(CType *type); ST_FUNC void vstore(void); ST_FUNC void inc(int post, int c); +ST_FUNC void parse_asm_str(CString *astr); ST_FUNC int lvalue_type(int t); ST_FUNC void indir(void); ST_FUNC void unary(void); @@ -1196,7 +1196,6 @@ ST_FUNC int tcc_load_coff(TCCState * s1, int fd); /* ------------ tccasm.c ------------ */ ST_FUNC void asm_instr(void); -ST_FUNC void asm_label_instr(CString *); ST_FUNC void asm_global_instr(void); #ifdef CONFIG_TCC_ASM -- cgit v1.3.1