macos: Fix asm-c-connect-test
commitfbfe6209be63ff0933acfe5dbb060c9b2bbab018
authorMichael Matz <matz@suse.de>
Sat, 23 May 2020 01:46:32 +0000 (23 03:46 +0200)
committerMichael Matz <matz@suse.de>
Sat, 20 Jun 2020 20:17:08 +0000 (20 22:17 +0200)
treebefac286b4a901e72f8d1330c1bbee6ea6162c8d
parent3cf7bec12f6ccf18cd479bd9ed55e218ce822e64
macos: Fix asm-c-connect-test

via some heavy-handed hackery in the ASM symbol handling in case
C symbols get a leading underscore (but ASM symbols do not).
But this is now like clang and GCC on Darwin work: asm symbols are
undecorated, C symbols get a _ prepended, so to connect both some
trickery is involved for the ASM symbols that don't have a _ prepended.
They must be included in the C symbol table (because that's what we use
to lookup also ASM labels), but they also must not disturb the normal
C symbol (which don't have the _ prepended), so they need some mangling.

A bit unsatisfying, but well.  So, add asm-c-connect-test to the working
ones for Darwin as well.
i386-asm.c
lib/alloca86_64-bt.S
tccasm.c
tests/Makefile
tests/asm-c-connect-1.c
tests/asm-c-connect-2.c
tests/tcctest.c
tests/tests2/85_asm-outside-function.c