Changed method of allocating locals
authorceriel <none@none>
Wed, 20 Feb 1991 09:54:55 +0000 (09:54 +0000)
committerceriel <none@none>
Wed, 20 Feb 1991 09:54:55 +0000 (09:54 +0000)
mach/i386/ncg/mach.c

index 63632f4..c437d6b 100644 (file)
@@ -60,19 +60,23 @@ string holstr(n) word n; {
 prolog(nlocals) full nlocals; {
 
        fputs("push ebp\nmov ebp,esp\n", codefile);
+       if (nlocals == 0) return;
+#ifdef NOTDEF
+       probably not better on 386.
        switch(nlocals) {
        case 8:
                fputs("push eax\n", codefile);
                /* fall through */
        case 4:
                fputs("push eax\n", codefile);
-               /* fall through */
-       case 0:
                break;
        default:
+#endif
                fprintf(codefile, "\tsub\tesp,%ld\n",nlocals);
+#ifdef NOTDEF
                break;
        }
+#endif
 }
 
 #ifdef REGVARS