aboutsummaryrefslogtreecommitdiff
path: root/src/liblink/obj5.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2015-01-29 23:50:10 -0500
committerRuss Cox <rsc@golang.org>2015-02-11 20:36:27 +0000
commiteb1774fa19d1027a8c25a5030429bb162dace95d (patch)
treecddd95b85d74ac1d21c785384822527d9aca2b51 /src/liblink/obj5.c
parent81a3f291f0721fee5dee6cd012cfdc7e4ee41a04 (diff)
downloadgo-eb1774fa19d1027a8c25a5030429bb162dace95d.tar.xz
cmd/gc: factor newly-portable code into gc directory
This isn't everything, but it's a start. Still producing bit-identical compiler output. The semantics of the old back ends is preserved, even when they are probably buggy. There are some TODOs in gc/gsubr.c to remove special cases to preserve bugs in 5g and 8g. Change-Id: I28ae295fbfc94ef9df43e13ab96bd6fc2f194bc4 Reviewed-on: https://go-review.googlesource.com/3802 Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/liblink/obj5.c')
-rw-r--r--src/liblink/obj5.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/liblink/obj5.c b/src/liblink/obj5.c
index 805d7a59c2..abddbc3c4f 100644
--- a/src/liblink/obj5.c
+++ b/src/liblink/obj5.c
@@ -185,14 +185,6 @@ linkcase(Prog *casep)
}
static void
-nocache5(Prog *p)
-{
- p->optab = 0;
- p->from.class = 0;
- p->to.class = 0;
-}
-
-static void
preprocess(Link *ctxt, LSym *cursym)
{
Prog *p, *pl, *p1, *p2, *q, *q1, *q2;
@@ -478,7 +470,7 @@ preprocess(Link *ctxt, LSym *cursym)
break;
case ARET:
- nocache5(p);
+ nocache(p);
if(cursym->text->mark & LEAF) {
if(!autosize) {
p->as = AB;