Fix a VLA problem
commitfbef90a7039b994907db34fde50f6fa5e46ab535
authorMichael Matz <matz@suse.de>
Wed, 3 Feb 2021 03:30:11 +0000 (3 04:30 +0100)
committerMichael Matz <matz@suse.de>
Wed, 3 Feb 2021 03:30:11 +0000 (3 04:30 +0100)
tree6bb6608b85866699a6991830ae1149f9cf43f51d
parentd6f2d58158a7d4281a9bf67f5d3683660b50814a
Fix a VLA problem

see testcase, reduced example of a situation reported by
Kyryl Melekhin in https://github.com/kyx0r/neatvi/ .
Problem is that setting up the VLA sp-save in a scope that isn't
entered at runtime leaves traces of it in outer scopes that then
try to restore the stack pointer from uninitialized slots.
tccgen.c
tests/tests2/123_vla_bug.c [new file with mode: 0644]
tests/tests2/123_vla_bug.expect [new file with mode: 0644]
tests/tests2/79_vla_continue.c