Commit 7c4aeec8 authored by Russ Cox's avatar Russ Cox

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

R=ken2
https://golang.org/cl/166070
parent e2b23e42
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment