tinycc/tests
grischka 72b520e709 tccgen: flex arrays etc.
Fixes potential writes past the allocated space with mostly
illegal flex array initializers. (60_errors_and_warnings.c
:test_var_array)

In exchange suspicious precautions such as section_reserve
or checks with sec->data_allocated were removed.  (There is
an hard check 'init_assert()' for now but it's meant to be
just temporary)

Also, instead of filling holes, always memset(0) structures
& arrays on stack.  Sometimes more efficient, sometimes isn't.
At least we can omit putting null initializers.

About array range inititializers:  Reparsing tokens has a
small problem with sideeffects, for example

   int c = 0, dd[] = { [0 ... 1] = ++c, [2 ... 3] = ++c };

Also, instead of 'squeeze_multi_relocs()', delete pre-existing
relocations in advance. This works even if secondary initializers
don't even have relocations, as with
    [0 ... 7] = &stuff,
    [4] = NULL

Also, in tcc.h: new macro "tcc_internal_error()"
2020-10-03 18:12:46 +02:00
..
misc __builtin_/__bound_: A 'stay tiny' approach to the matter 2020-07-06 13:42:02 +02:00
pp Add make testspp.all/testspp.20 2018-01-05 02:19:26 +01:00
tests2 tccgen: flex arrays etc. 2020-10-03 18:12:46 +02: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 rework leading underscores 2020-07-06 13:00:47 +02:00
asm-c-connect-2.c rework leading underscores 2020-07-06 13:00:47 +02:00
asmtest.S tccasm: Accept suffixed cmovCC 2017-12-03 04:53:50 +01:00
boundtest.c Add vla bound support for arm,arm64 and riscv64 2020-06-17 11:24:17 +02:00
bug.c Allow strings in __builtin_constant_p 2020-09-17 09:11:10 +02:00
gcctestsuite.sh Fix gcc testsuite problems 2020-07-05 14:01:50 +02:00
libtcc_test_mt.c libtcc: accept tcc_define_symbol(s1, "sym=value", NULL) 2020-07-06 13:00:47 +02:00
libtcc_test.c Add error_func and error_opaque getters to libtcc 2019-10-14 09:36:14 +02:00
Makefile macos: tcc searches for libtcc.dyln in the same directory as its executable 2020-07-09 12:04:57 +02:00
tcctest.c Fix bitfields init : tiny solution 2020-09-25 12:23:48 +02: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