1
0
mirror of https://github.com/golang/go synced 2024-11-22 08:54:39 -07:00

6g/8g optimizer fix: throw functions now in runtime

R=ken2
https://golang.org/cl/166070
This commit is contained in:
Russ Cox 2009-12-04 20:37:32 -08:00
parent e2b23e42a8
commit 7c4aeec868
2 changed files with 8 additions and 8 deletions

View File

@ -1549,10 +1549,10 @@ noreturn(Prog *p)
int i;
if(symlist[0] == S) {
symlist[0] = pkglookup("throwindex", "sys");
symlist[1] = pkglookup("throwslice", "sys");
symlist[2] = pkglookup("throwinit", "sys");
symlist[3] = pkglookup("panicl", "sys");
symlist[0] = pkglookup("throwindex", "runtime");
symlist[1] = pkglookup("throwslice", "runtime");
symlist[2] = pkglookup("throwinit", "runtime");
symlist[3] = pkglookup("panicl", "runtime");
}
s = p->to.sym;

View File

@ -1438,10 +1438,10 @@ noreturn(Prog *p)
int i;
if(symlist[0] == S) {
symlist[0] = pkglookup("throwindex", "sys");
symlist[1] = pkglookup("throwslice", "sys");
symlist[2] = pkglookup("throwinit", "sys");
symlist[3] = pkglookup("panicl", "sys");
symlist[0] = pkglookup("throwindex", "runtime");
symlist[1] = pkglookup("throwslice", "runtime");
symlist[2] = pkglookup("throwinit", "runtime");
symlist[3] = pkglookup("panicl", "runtime");
}
s = p->to.sym;