aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@celest.fr>2010-09-05 22:39:34 +0200
committerThomas Preud'homme <thomas.preudhomme@celest.fr>2010-09-10 20:15:03 +0200
commit9b09fc376e8c212a767c875e71ca003e3b9a0d2e (patch)
treeb02d6544e1eeca1e9b878d120115bb1377c2291f /tcc.h
parenta7fb00e887a2ef9372040a75c3d37b79971d9b21 (diff)
downloadtinycc-9b09fc376e8c212a767c875e71ca003e3b9a0d2e.tar.gz
tinycc-9b09fc376e8c212a767c875e71ca003e3b9a0d2e.tar.bz2
Add support of asm label for functions.
Add support for asm labels for functions, that is the ability to rename a function at assembly level with __asm__ ("newname") appended in function declaration.
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tcc.h b/tcc.h
index bb3eb9f..30458a2 100644
--- a/tcc.h
+++ b/tcc.h
@@ -118,6 +118,7 @@
#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)
@@ -211,6 +212,7 @@ typedef struct SValue {
/* symbol management */
typedef struct Sym {
int v; /* symbol token */
+ int a; /* asm symbol token */
long r; /* associated register */
union {
long c; /* associated number */
@@ -1189,6 +1191,7 @@ 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