1
0
mirror of https://github.com/frida/tinycc synced 2025-01-11 22:29:18 +03:00
tinycc/tests
grischka 72729d8e36 allow libtcc states to be used concurrently
This allows creation of TCCStates and operation with API
calls independently from each other, even from threads.

Frontend (option parsing/libtcc.c) and backend (linker/tccelf.c)
now depend only on the TCCState (s1) argument.

Compilation per se (tccpp.c, tccgen.c) is still using
globals for convenience.  There is only one entry point
to this section which is tcc_compile() which is protected
by a semaphore.

There are some hacks involved to avoid too many changes,
as well as some changes in order to avoid too many hacks ;)

The test libtcc_test_mt.c shows the feature.  Except this
new file the patch adds 87 lines overall.
2019-12-11 02:36:19 +01:00
..
pp Add make testspp.all/testspp.20 2018-01-05 02:19:26 +01:00
tests2 Fix bounds checking for linux/windows 2019-12-10 08:07:25 +01:00
42test.h tccpp: Allow computed include like 42.h 2016-12-15 17:47:10 +01:00
abitest.c Spelling fixes 2017-09-24 18:03:26 -07:00
asm-c-connect-1.c final update for 0.9.27 2017-12-12 17:57:20 +01:00
asm-c-connect-2.c final update for 0.9.27 2017-12-12 17:57:20 +01:00
asmtest.S tccasm: Accept suffixed cmovCC 2017-12-03 04:53:50 +01:00
boundtest.c Fix bounds checking for linux/windows 2019-12-10 08:07:25 +01:00
gcctestsuite.sh Fix bashims in configure and gcctestsuite.sh. 2010-05-26 14:08:29 +02:00
libtcc_test_mt.c allow libtcc states to be used concurrently 2019-12-11 02:36:19 +01:00
libtcc_test.c Add error_func and error_opaque getters to libtcc 2019-10-14 09:36:14 +02:00
Makefile allow libtcc states to be used concurrently 2019-12-11 02:36:19 +01:00
tcctest.c Disable bounds_check1_test on arm 2019-12-10 09:39:45 +01:00
tcctest.h tccpp: Implement __BASE_FILE__ macro 2016-12-15 17:47:08 +01:00
testfp.c Remove misc. files 2016-10-01 20:27:41 +02:00
vla_test.c Improved variable length array support. 2013-04-27 22:58:52 +01:00