From 8c40900fc28a7dda33a491902c5545b9abb37f58 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 6 Nov 2009 14:16:47 -0800 Subject: [PATCH] Expand section on building gccgo. R=r http://go/go-review/1026008 --- doc/go_gccgo_setup.html | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/doc/go_gccgo_setup.html b/doc/go_gccgo_setup.html index 9a8bfc83580..360da959995 100644 --- a/doc/go_gccgo_setup.html +++ b/doc/go_gccgo_setup.html @@ -8,10 +8,13 @@ Like gcc itself, gccgo is free software distributed under the GNU General Public License. +

+

Note that gccgo is not the 6g compiler; see -the 6g set up instructions -for that compiler. +the Installing Go instructions for that +compiler. +

Source code

@@ -22,6 +25,7 @@ has instructions for getting the gcc source code. The gccgo source code is a branch of the main gcc code repository: svn://gcc.gnu.org/svn/gcc/branches/gccgo. +

Building

@@ -32,6 +36,23 @@ the instructions on the gcc web site. When you run configure, add the option --enable-languages=go (along with other languages you may want to build). +

+ +

+A number of prerequisites are required to build gcc, as +described on the gcc web site. If those are all +available, then a typical build and install sequence would look like +this: + +

+svn checkout svn://gcc.gnu.org/svn/gcc/branches/gccgo gccgo
+mkdir objdir
+cd objdir
+../gccgo/configure --enable-languages=c,c++,go
+make
+make install
+
+

Using gccgo

@@ -123,7 +144,7 @@ may pass the -I or -L option to gccgo. Both options take directories to search. The -L option is also passed to the linker. -The gccgo compiler does not currently (2009-10-14) record +The gccgo compiler does not currently (2009-11-06) record the file name of imported packages in the object file. You must arrange for the imported data to be linked into the program. @@ -137,7 +158,7 @@ gccgo -o main main.o mypackage.o # Explicitly links with mypackage.o

Some Go features are not yet implemented in gccgo. As of -2009-10-14, the following are not implemented: +2009-11-06, the following are not implemented: