public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f6d0dc
)
Fixed bug: after BRA instruction was optimized away the variable lastbra
author
sater
<none@none>
Thu, 28 Jun 1984 10:40:09 +0000
(10:40 +0000)
committer
sater
<none@none>
Thu, 28 Jun 1984 10:40:09 +0000
(10:40 +0000)
pointed to the instruction following. This could lead to anything,
including bus errors. Lastbra is now reset to 0.
Bug discovered at Philips PMDS by Hans de Vries. The fix is also his.
Actually the function cleaninstr should be rewritten.
util/opt/flow.c
patch
|
blob
|
history
diff --git
a/util/opt/flow.c
b/util/opt/flow.c
index
2f7d79a
..
b83c39b
100644
(file)
--- a/
util/opt/flow.c
+++ b/
util/opt/flow.c
@@
-97,6
+97,7
@@
cleaninstrs() {
OPTIM(O_BRALAB);
lpp = lastbra;
*lpp = lp;
+ lastbra = (line_p *) 0;
lp->l_a.la_np->n_jumps--;
}
}