Files
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
..
2018-01-05 02:19:26 +01:00
2020-10-03 18:12:46 +02:00
2017-09-24 18:03:26 -07:00
2020-07-06 13:00:47 +02:00
2020-07-06 13:00:47 +02:00
2017-12-03 04:53:50 +01:00
2020-09-17 09:11:10 +02:00
2020-07-05 14:01:50 +02:00
2020-09-25 12:23:48 +02:00
2016-12-15 17:47:08 +01:00
2016-10-01 20:27:41 +02:00