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 | 69611ffa03385495dd3833e371a490706c340bbf (patch) | |
tree | 44eec1df981d0216482ea380dac3e5628ace1488 | |
parent | 7f7783d1bccff1881f6404bbcec5cc93aaf419c4 (diff) | |
download | golang-69611ffa03385495dd3833e371a490706c340bbf.tar.gz |
6g/8g optimizer fix: throw functions now in runtime
R=ken2
http://codereview.appspot.com/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 fde26772d..f406335f4 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 82736c087..4d39f57b6 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; |