about summary refs log tree commit diff
path: root/pkgs/development/compilers/go/1_0-opt-error.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/compilers/go/1_0-opt-error.patch')
-rw-r--r--pkgs/development/compilers/go/1_0-opt-error.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/development/compilers/go/1_0-opt-error.patch b/pkgs/development/compilers/go/1_0-opt-error.patch
new file mode 100644
index 000000000000..d3fcd40449ae
--- /dev/null
+++ b/pkgs/development/compilers/go/1_0-opt-error.patch
@@ -0,0 +1,12 @@
+https://code.google.com/p/go-wiki/wiki/OlderVersions
+--- a/src/cmd/cc/funct.c	2014-07-02 11:54:42.230663598 +0200
++++ b/src/cmd/cc/funct.c	2014-07-02 11:55:01.653790128 +0200
+@@ -269,7 +269,7 @@
+ 		goto bad;
+ 
+ 	f = alloc(sizeof(*f));
+-	for(o=0; o<sizeof(f->sym); o++)
++	for(o=0; o<nelem(f->sym); o++)
+ 		f->sym[o] = S;
+ 
+ 	t->funct = f;