blob: 115e68e7acacec133180f557e8a51c5770b04549 [file] [log] [blame] [view]
Andrew Gerrand5bc444d2014-12-10 11:35:11 +11001# Introduction
2
3This wiki page collects patches to build older version of Go on newer systems for
4testing and benchmark purposes. Please note that older Go versions are not
5supported, so don't use older version in production.
6
7# Go 1.0.x
8## Go 1.0
9```
10diff -ur go/src/cmd/cc/funct.c go1/src/cmd/cc/funct.c
11--- go/src/cmd/cc/funct.c 2012-03-28 00:49:24.000000000 -0400
12+++ go1/src/cmd/cc/funct.c 2014-05-04 00:56:00.971460175 -0400
13@@ -269,7 +269,7 @@
14 goto bad;
15
16 f = alloc(sizeof(*f));
17- for(o=0; o<sizeof(f->sym); o++)
18+ for(o=0; o<nelem(f->sym); o++)
19 f->sym[o] = S;
20
21 t->funct = f;
22```