This website requires JavaScript.
Explore
Help
Sign In
mirrors
/
tinycc
Watch
1
Star
0
Fork
0
You've already forked tinycc
mirror of
https://github.com/frida/tinycc
synced
2024-12-26 15:06:58 +03:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
b476a5f478
tinycc
/
tests
/
tests2
/
79_vla_continue.expect
6 lines
15 B
Plaintext
Raw
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 19:38:27 +03: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 12:23:29 +03:00
OK
Reference in New Issue
Copy Permalink