diff backend_x86.c @ 894:a7774fc2de4b

Partially working change to do proper stack alignment rather than doing a lame alignment check when calling a C compile dfunction. 68K core seems okay, but Z80 is busted.
author Michael Pavone <pavone@retrodev.com>
date Wed, 25 Nov 2015 08:40:45 -0800
parents 381a3b2f6065
children 1f09994e92c5
line wrap: on
line diff
--- a/backend_x86.c	Sun Nov 22 14:43:51 2015 -0800
+++ b/backend_x86.c	Wed Nov 25 08:40:45 2015 -0800
@@ -173,6 +173,7 @@
 							pop_r(code, opts->scratch2);
 						} else {
 							add_ir(code, sizeof(void*), RSP, SZ_D);
+							code->stack_off -= sizeof(void *);
 						}
 					} else {
 						push_r(code, opts->scratch2);