summaryrefslogtreecommitdiff
path: root/gcc/go/gccgo.texi
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-24 00:02:55 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2015-01-24 00:02:55 +0000
commitd47e31848cb9e2c641e9a715503de413a7be8044 (patch)
tree3d49b71e0915faf3b497f1587bb53f20819c6e09 /gcc/go/gccgo.texi
parente6f45d931f899c5b0462a15437fba4609f75a9b8 (diff)
downloadgcc-d47e31848cb9e2c641e9a715503de413a7be8044.tar.gz
PR go/63565
* gccgo.texi (Invoking gccgo): Mention that Go programs should not be stripped. * gccgo.texi (C Interoperability): Mention that people should use cgo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220070 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/go/gccgo.texi')
-rw-r--r--gcc/go/gccgo.texi9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/go/gccgo.texi b/gcc/go/gccgo.texi
index 45fc9d718e7..6e4c70874f9 100644
--- a/gcc/go/gccgo.texi
+++ b/gcc/go/gccgo.texi
@@ -142,6 +142,10 @@ the import data directly from the compiled package. When this package
is later linked, the compiled form of the package must be included in
the link command.
+Go programs must generally be compiled with debugging information, and
+@option{-g1} is the default as described below. Stripping a Go
+program will generally cause it to misbehave or fail.
+
@c man end
@c man begin OPTIONS gccgo
@@ -288,6 +292,11 @@ This is different from the behaviour of other Go compilers.
When using @command{gccgo} there is limited interoperability with C,
or with C++ code compiled using @code{extern "C"}.
+This information is provided largely for documentation purposes. For
+ordinary use it is best to build programs with the go tool and then
+use @code{import "C"}, as described at
+@url{http://golang.org/cmd/cgo}.
+
@menu
* C Type Interoperability:: How C and Go types match up.
* Function Names:: How Go functions are named.