mirror of
https://github.com/frida/tinycc
synced 2024-11-25 00:59:37 +03:00
41b3c7a507
VLA storage is now freed when it goes out of scope. This makes it possible to use a VLA inside a loop without consuming an unlimited amount of memory. Combining VLAs with alloca() should work as in GCC - when a VLA is freed, memory allocated by alloca() after the VLA was created is also freed. There are some exceptions to this rule when using goto: if a VLA is in scope at the goto, jumping to a label will reset the stack pointer to where it was immediately after the last VLA was created prior to the label, or to what it was before the first VLA was created if the label is outside the scope of any VLA. This means that in some cases combining alloca() and VLAs will free alloca() memory where GCC would not. |
||
---|---|---|
.. | ||
tests2 | ||
abitest.c | ||
asmtest.S | ||
boundtest.c | ||
CMakeLists.txt | ||
gcctestsuite.sh | ||
libtcc_test.c | ||
Makefile | ||
tcctest.c | ||
tcctest.py | ||
vla_test.c |