Repair bounds-checking runtime
authorKirill Smelkov <kirr@navytux.spb.ru>
Wed, 14 Nov 2012 06:50:34 +0000 (10:50 +0400)
committerKirill Smelkov <kirr@navytux.spb.ru>
Wed, 14 Nov 2012 06:50:34 +0000 (10:50 +0400)
commit40a54c4399cc5e687d93add4b89bc16c19aaddfe
tree25bf2b56581f684f2c3870bfd977ba50854865ca
parent1af3bca4eae32e172a422fd3046246c5662078c3
parent5d648485bdd8d1742b6711ce34069fccbfe5616f
Repair bounds-checking runtime

On this weekend a thought came to me again that tinycc could be used for
scripting. Only its bounds-checking mode turned out to be broken, which
is a pity because bounds-checking is sometimes handy especially for
quickly written scripts.

Since tinycc is one of those small beautiful things, seldomly happening
in our times, I couldn't resist trying to fix it.

Thanks,
Kirill

* bcheck:
  Now btest pass!
  lib/bcheck: Prevent __bound_local_new / __bound_local_delete from being miscompiled
  lib/bcheck: Prevent libc_malloc/libc_free etc from being miscompiled