]> Cypherpunks repositories - gostls13.git/commitdiff
6g/8g optimizer fix: throw functions now in runtime
authorRuss Cox <rsc@golang.org>
Sat, 5 Dec 2009 04:37:32 +0000 (20:37 -0800)
committerRuss Cox <rsc@golang.org>
Sat, 5 Dec 2009 04:37:32 +0000 (20:37 -0800)
R=ken2
https://golang.org/cl/166070

src/cmd/6g/reg.c
src/cmd/8g/reg.c

index fde26772d10a02f61c7d6d4f4402752fbfb84acb..f406335f4e5ed5b34fe1ff950095b76109c9aa6a 100644 (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;
index 82736c087e96382ce3c22000704d90fb2bd835f7..4d39f57b6de58b5b296659f4f7bb82bdf70f69cf 100644 (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;