fix VLA/continue issue
commitd2dd6fdbfb491c87138eb8d7590fbb28f471ec8d
authorPhilip <pipcet@gmail.com>
Mon, 27 Apr 2015 16:38:27 +0000 (27 16:38 +0000)
committerPhilip <pipcet@gmail.com>
Mon, 27 Apr 2015 16:42:27 +0000 (27 16:42 +0000)
treeb0da2ce92c02d0759c6e89227a0f5e7d4e0953b2
parentbd489a48153aeb24ffa5eccb1fa0199f9c7ea994
fix VLA/continue issue

as reported in
http://lists.nongnu.org/archive/html/tinycc-devel/2015-04/msg00131.html. Note
that this is one of two separate VLA bugs:

 A. labels aren't reached by program execution, so the stack pointer is
 never saved
 B. continue doesn't restore the stack pointer as goto does

This fixes only B. I'm not sure whether the same issue applies to break
as well as continue.

Add a test case, but disable tests #78 and #79 for now as they're not
fully fixed until the issue described in
http://lists.nongnu.org/archive/html/tinycc-devel/2015-04/msg00110.html
is resolved.
tccgen.c
tests/tests2/79_vla_continue.c [new file with mode: 0644]
tests/tests2/79_vla_continue.expect [new file with mode: 0644]
tests/tests2/Makefile