tccasm: synch C and asm symtab tighter
commite7c71e24730ae07241980812c8b747963f216260
authorMichael Matz <matz@suse.de>
Wed, 22 Nov 2017 16:57:43 +0000 (22 17:57 +0100)
committerMichael Matz <matz@suse.de>
Wed, 22 Nov 2017 16:57:43 +0000 (22 17:57 +0100)
tree6fc0609791b351c7f83da07c3f8d2548d747094c
parent330c01bfc6fa6721fd455911a966bce041df31d8
tccasm: synch C and asm symtab tighter

See testcase.  The C and asm symtab are still separate,
but integrated tighter: the asm labels are only synched at file
end, not after each asm snippet (this fixes references from one
to another asm block), the C and asm syms are synched both ways,
so defining things in asm and refering from C, or the other way
around works.  In effect this model reflects what happens with
GCC better.

For this the asm labels aren't using the C label namespace anymore,
but their own, which increases the size of each TokenSym by a pointer.
tcc.h
tccasm.c
tccgen.c
tccpp.c
tests/Makefile
tests/asm-c-connect-1.c [new file with mode: 0644]
tests/asm-c-connect-2.c [new file with mode: 0644]