aboutsummaryrefslogtreecommitdiff
path: root/i386-gen.c
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-05-04 04:09:05 +0300
committerseyko <seyko2@gmail.com>2015-05-04 04:09:05 +0300
commit999274ca900b23da11abeda5f38413eb6fbec9a8 (patch)
tree8ad58caf548733cac9e840cc1ad0b606438ab753 /i386-gen.c
parentfca58734fb9819f7c7ccc768284b28439ad4b9f3 (diff)
downloadtinycc-999274ca900b23da11abeda5f38413eb6fbec9a8.tar.gz
tinycc-999274ca900b23da11abeda5f38413eb6fbec9a8.tar.bz2
a lot simpler VLA code
Author: Philip <pipcet@gmail.com> Our VLA code can be made a lot simpler (simple enough for even me to understand it) by giving up on the optimization idea, which is very tempting. There's a patch to do that attached, feel free to test and commit it if you like. (It passes all the tests, at least
Diffstat (limited to 'i386-gen.c')
-rw-r--r--i386-gen.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/i386-gen.c b/i386-gen.c
index b9dec83..a1ce4c5 100644
--- a/i386-gen.c
+++ b/i386-gen.c
@@ -1126,11 +1126,7 @@ ST_FUNC void gen_vla_alloc(CType *type, int align) {
/* We align to 16 bytes rather than align */
/* and ~15, %esp */
o(0xf0e483);
- /* mov %esp, r */
- o(0x89);
- o(0xe0 | r);
vpop();
- vset(type, r, 0);
#endif
}