|
From: | Sergey Korshunoff |
Subject: | Re: [Tinycc-devel] VLAs broken on mob branch |
Date: | Sat, 25 Apr 2015 13:03:28 +0300 |
Hi! With your version of the extra vla_sp_save() call all other calls to the vla_sp_save() protected by (vla_flags & VLA_IN_SCOPE) can be removed. There are 2 such places. But I think vla_sp_save() must be called only after all VLA's initialization (allocation). Version with if (vla_flags & (VLA_NEED_NEW_FRAME | VLA_IN_SCOPE)) { vla_sp_save(); vla_flags = VLA_IN_SCOPE; allow to perform a multiple vla_sp_save (for each VLA) because it clears VLA_SP_LOC_SET and VLA_SP_SAVED.
[Prev in Thread] | Current Thread | [Next in Thread] |