Andrew Gerrand | 5bc444d | 2014-12-10 11:35:11 +1100 | [diff] [blame] | 1 | # Introduction |
| 2 | |
| 3 | This wiki page collects patches to build older version of Go on newer systems for |
| 4 | testing and benchmark purposes. Please note that older Go versions are not |
| 5 | supported, so don't use older version in production. |
| 6 | |
| 7 | # Go 1.0.x |
| 8 | ## Go 1.0 |
| 9 | ``` |
| 10 | diff -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 | ``` |