]> Cypherpunks repositories - gostls13.git/commitdiff
On 32-bit x86, one should configure with --with-arch=.
authorIan Lance Taylor <iant@golang.org>
Wed, 18 Nov 2009 20:48:48 +0000 (12:48 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 18 Nov 2009 20:48:48 +0000 (12:48 -0800)
R=r
https://golang.org/cl/156080

doc/gccgo_install.html

index 27d93e8bc787d5959314b0caf2872f3a80dee6db..587e4dd8fc59c1960c7b98f176b0b2135f8fb1f8 100644 (file)
@@ -31,11 +31,16 @@ repository: <code>svn://gcc.gnu.org/svn/gcc/branches/gccgo</code>.
 
 <p>
 Building <code>gccgo</code> is just like building <code>gcc</code>
-with one additional option.  See
+with one or two additional options.  See
 the <a href="http://gcc.gnu.org/install/">instructions on the gcc web
 site</a>.  When you run <code>configure</code>, add the
-option <code>--enable-languages=c,c++,go</code> (along with other languages you
-may want to build).
+option <code>--enable-languages=c,c++,go</code> (along with other
+languages you may want to build).  If you are targeting a 32-bit x86,
+then you will want to build <code>gccgo</code> to default to
+supporting locked compare and exchange instructions; do this by also
+using the <code>configure</code> option <code>--with-arch=i586</code>
+(or a newer architecture, depending on where you need your programs to
+run).
 </p>
 
 <p>