Added a DO_TOSTACK command, and put set number of ALL in tables.c
authorceriel <none@none>
Thu, 20 Aug 1987 19:04:18 +0000 (19:04 +0000)
committerceriel <none@none>
Thu, 20 Aug 1987 19:04:18 +0000 (19:04 +0000)
util/ncgg/cgg.y
util/ncgg/output.c

index 2925b27..2b82eb0 100644 (file)
@@ -757,8 +757,6 @@ kills
                { $$ = 0; }
        | KILLS kill_list
                { $$ = $2;
-                 if (optstack)
-                       error("No sense in giving kills in this pattern");
                }
        ;
 kill_list
index 9091e70..3036134 100644 (file)
@@ -96,6 +96,7 @@ finishcode() {
 
        if (code_in_c)
                fprintf(ctable,"\n};\n\n");
+       fprintf(ctable, "int allsetno = %d;\n", allsetno);
        if (tabledebug) {
                int fd;
                int sz;
@@ -683,7 +684,7 @@ varinfo *kills,*allocates,*generates,*yields,*leaving;
        } else if (stackcoerc)
                code8nl(DO_COERC);
        if (optstack) {
-               code53(DO_REMOVE,0);
+               code53(DO_TOSTACK,0);
                codeint(allsetno);
                codenl();
        }