Add vla bound support for arm,arm64 and riscv64

tcctok.h:
- Add __bound_new_region

arm-gen.c arm64-gen.c riscv64-gen.c:
- Add bound checking support to gen_vla_alloc

tests/Makefile boundtest.c
- Add test18 vla bound checking test
This commit is contained in:
herman ten brugge
2020-06-17 11:24:17 +02:00
parent 44019e874f
commit 8fb8d88ea6
6 changed files with 68 additions and 5 deletions

View File

@@ -179,7 +179,7 @@ memtest:
# memory and bound check auto test
BOUNDS_OK = 1 4 8 10 14 16
BOUNDS_FAIL= 2 5 6 7 9 11 12 13 15 17
BOUNDS_FAIL= 2 5 6 7 9 11 12 13 15 17 18
btest: boundtest.c
@echo ------------ $@ ------------