changeset 241:96b5ee862a41

*** empty log message ***
author kono
date Tue, 04 May 2004 03:15:43 +0900
parents b59364f5b030
children c68f618b71f9
files mc-code-ia32.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mc-code-ia32.c	Mon May 03 21:34:23 2004 +0900
+++ b/mc-code-ia32.c	Tue May 04 03:15:43 2004 +0900
@@ -1113,6 +1113,7 @@
 		g_expr(e4);
 		printf("\tpushl %%edx\n\tpushl %%eax\n");
 	    }
+	    ++nargs;
 	} else if (t==DOUBLE) {
 	    g_expr(e4);
 	    printf("\tleal\t-8(%%esp),%%esp\n\tfstpl\t(%%esp)\n");
@@ -2548,7 +2549,7 @@
 	printf("\tpushl %%edx\n");
 	printf("\tpushl %%eax\n");
 	printf("\tcall %s\n",call);
-	printf("\taddl $16,%%esp\n");
+	printf("\taddl $8,%%esp\n");
 	check_lreg();
     } else {
 	error(-1);
@@ -2631,7 +2632,7 @@
 
 void emit_lpush()
 {
-    printf("\tpush %%edx\n\tpushl %%eax\n");
+    printf("\tpushl %%edx\n\tpushl %%eax\n");
 }
 
 void code_i2ll(int reg)