vla: Fix check for vla used by autoconf
commitfa25630ce4e60ea2a91ca7612ff5f91f8709cecb
authorMichael Matz <matz@suse.de>
Mon, 19 Sep 2022 13:32:07 +0000 (19 15:32 +0200)
committerMichael Matz <matz@suse.de>
Mon, 19 Sep 2022 13:32:07 +0000 (19 15:32 +0200)
tree37984db5c307b7954f8c90cc2edcac3a0027d2e5
parent76b88e22a483d9ac16698db0e713e85f98e09fcd
vla: Fix check for vla used by autoconf

1) recursive types have no storage anymore, so a
     static int (*p)[x];
   declaration is just fine
2) since somewhen VT_VLA doesn't imply VT_ARRAY anymore, so we
   now need to check VLA in at least one place before checking
   test_lvalue.

((2) should probably be cleaned up again so that VLA does again imply
ARRAY)
tccgen.c
tests/tcctest.c