public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
754f9ce
)
Added a DO_TOSTACK command, and put set number of ALL in tables.c
author
ceriel
<none@none>
Thu, 20 Aug 1987 19:04:18 +0000
(19:04 +0000)
committer
ceriel
<none@none>
Thu, 20 Aug 1987 19:04:18 +0000
(19:04 +0000)
util/ncgg/cgg.y
patch
|
blob
|
history
util/ncgg/output.c
patch
|
blob
|
history
diff --git
a/util/ncgg/cgg.y
b/util/ncgg/cgg.y
index
2925b27
..
2b82eb0
100644
(file)
--- a/
util/ncgg/cgg.y
+++ b/
util/ncgg/cgg.y
@@
-757,8
+757,6
@@
kills
{ $$ = 0; }
| KILLS kill_list
{ $$ = $2;
- if (optstack)
- error("No sense in giving kills in this pattern");
}
;
kill_list
diff --git
a/util/ncgg/output.c
b/util/ncgg/output.c
index
9091e70
..
3036134
100644
(file)
--- a/
util/ncgg/output.c
+++ b/
util/ncgg/output.c
@@
-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();
}