aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-08-26 18:11:19 +0200
committerMichael Matz <matz@suse.de>2016-12-15 17:47:11 +0100
commit5bd8aeb917ed326f50b1ed45669a1cf40aca75a3 (patch)
treeeeaf074e00e4944e42a9cc80e8fd5a875e821237 /tcc.h
parentdd57a348664d0fac46a0f4c822f70c80bbf97774 (diff)
downloadtinycc-5bd8aeb917ed326f50b1ed45669a1cf40aca75a3.tar.gz
tinycc-5bd8aeb917ed326f50b1ed45669a1cf40aca75a3.tar.bz2
tccasm: Support refs to anon symbols from asm
This happens when e.g. string constants (or other static data) are passed as operands to inline asm as immediates. The produced symbol ref wouldn't be found. So tighten the connection between C and asm-local symbol table even more.
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tcc.h b/tcc.h
index 17c24a2..a9641f6 100644
--- a/tcc.h
+++ b/tcc.h
@@ -1529,6 +1529,7 @@ ST_FUNC void asm_instr(void);
ST_FUNC void asm_global_instr(void);
#ifdef CONFIG_TCC_ASM
ST_FUNC int find_constraint(ASMOperand *operands, int nb_operands, const char *name, const char **pp);
+ST_FUNC Sym* get_asm_sym(int name, Sym *csym);
ST_FUNC void asm_expr(TCCState *s1, ExprValue *pe);
ST_FUNC int asm_int_expr(TCCState *s1);
ST_FUNC int tcc_assemble(TCCState *s1, int do_preprocess);