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.
This commit is contained in:
3
tcc.h
3
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
|
||||
|
||||
Reference in New Issue
Block a user