This website requires JavaScript.
Explore
Help
Register
Sign In
meesbs
/
tinycc
forked from
Mirrors/tinycc
Watch
1
Star
0
Fork
You've already forked tinycc
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
meesbs
tinycc
/
tests
/
tests2
/
79_vla_continue.expect
6 lines
15 B
Plaintext
Raw
Permalink
Normal View
History
Unescape
Escape
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.
2015-04-27 16:38:27 +00:00
OK
OK
OK
OK
VLA fix: save stack pointer right after modification This patch disables the optimization of saving stack pointers lazily, which didn't fully take into account that control flow might not reach the stack-saving instructions. I've decided to leave in the extra calls to vla_sp_save() in case anyone wants to restore this optimization. Tests added and enabled. There are two remaining bugs: VLA variables can be modified, and jumping into the scope of a declared VLA will cause a segfault rather than a compiler error. Both of these do not affect correct C code, but should be fixed at some point. Once VLA variables have been made properly immutable, we can share them with the saved stack pointer and save stack and instructions.
2015-04-28 09:23:29 +00:00
OK