From: Ian Lance Taylor Date: Wed, 18 Nov 2009 20:48:48 +0000 (-0800) Subject: On 32-bit x86, one should configure with --with-arch=. X-Git-Tag: weekly.2009-12-07~216 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9e8d136888f269a6ff8060e44e8a50e4f50474be;p=gostls13.git On 32-bit x86, one should configure with --with-arch=. R=r https://golang.org/cl/156080 --- diff --git a/doc/gccgo_install.html b/doc/gccgo_install.html index 27d93e8bc7..587e4dd8fc 100644 --- a/doc/gccgo_install.html +++ b/doc/gccgo_install.html @@ -31,11 +31,16 @@ repository: svn://gcc.gnu.org/svn/gcc/branches/gccgo.

Building gccgo is just like building gcc -with one additional option. See +with one or two additional options. See the instructions on the gcc web site. When you run configure, add the -option --enable-languages=c,c++,go (along with other languages you -may want to build). +option --enable-languages=c,c++,go (along with other +languages you may want to build). If you are targeting a 32-bit x86, +then you will want to build gccgo to default to +supporting locked compare and exchange instructions; do this by also +using the configure option --with-arch=i586 +(or a newer architecture, depending on where you need your programs to +run).