diff options
author | Russ Cox <rsc@golang.org> | 2009-12-04 20:37:32 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-12-04 20:37:32 -0800 |
commit | 7c4aeec8686466674450ccb591621329978c48e3 (patch) | |
tree | 3276dfa5dcbeb89bef95d5bfa0aa273650fe70d1 | |
parent | e2b23e42a8c65fa071be0416b19abc25d1a3169b (diff) | |
download | go-7c4aeec8686466674450ccb591621329978c48e3.tar.gz go-7c4aeec8686466674450ccb591621329978c48e3.zip |
6g/8g optimizer fix: throw functions now in runtime
R=ken2
https://golang.org/cl/166070
-rw-r--r-- | src/cmd/6g/reg.c | 8 | ||||
-rw-r--r-- | src/cmd/8g/reg.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/cmd/6g/reg.c b/src/cmd/6g/reg.c index fde26772d1..f406335f4e 100644 --- a/src/cmd/6g/reg.c +++ b/src/cmd/6g/reg.c @@ -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; diff --git a/src/cmd/8g/reg.c b/src/cmd/8g/reg.c index 82736c087e..4d39f57b6d 100644 --- a/src/cmd/8g/reg.c +++ b/src/cmd/8g/reg.c @@ -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; |