Hi, as C11 allows VLA I don't see any reasons to warn when it is used. However, as some tcc backend (like ARM) don't currently support VLA, a C code working code on x86 will fail on ARM. It's more an issue with ARM backend than with VLA. It would be nice for tcc to behave the same for all backends it supports. If only some backends support a feature, this feature should be available with an option (e.g. --vla).
If some backend have HW limitation (e.g. no more than 4K), tcc should detect this limit and display a warning if it does not apply for the current backend or raise an error if it apply (e.g. ARM). My2c C. ----- message d'origine ----- De : "Sergey Korshunoff" <[email protected]> date mar. 10/11/2015 07:41 (GMT +01:00) À : "[email protected]" <[email protected]> Objet : Re: [Tinycc-devel] VLA implementation >> I don't know. Can you find out? > You ask me to perform a tcc job. We have a 2.4.26 "tccboot" kernel. > How one may be shure that there is no VLA? Only trust a rule? I checked a tccboot kernel by a temporaly tcc_warning: there is no VLA found. What tcc switch is good for introducing VLA warnings? Where to insert it right? 2015-11-10 7:51 GMT+03:00, Sergey Korshunoff <[email protected]>: >> I don't know. Can you find out? > You ask me to perform a tcc job. We have a 2.4.26 "tccboot" kernel. > How one may be shure that there is no VLA? Only trust a rule? > > PS: tcc compiled kernel sometime hangs, a message about "freeing -4K" > RAM don't let be optimistic > > PPS: 6 Mar 2013: there are VLA in kernel if a warnings are discussed > _______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
_______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
