aboutsummaryrefslogtreecommitdiff
path: root/tests/asm-c-connect-1.c
Commit message (Collapse)AuthorAgeFilesLines
* tccasm: Unify C and asm symbol tableMichael Matz2017-11-271-0/+7
| | | | | | | | | | This makes the asm symbols use the same members as the C symbols for global decls, e.g. using the ELF symbol to hold offset and section. That allows us to use only one symbol table for C and asm symbols and to get rid of hacks to synch between them. We still need some special handling for symbols that come purely from asm sources.
* Adjust asm-c-connect testcase for WindowsMichael Matz2017-11-271-11/+12
| | | | | Calling conventions are different, let's use functions without any arguments.
* tccasm: synch C and asm symtab tighterMichael Matz2017-11-221-0/+31
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.