This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libgo patch committed: Support -buildmode=c-archive


The upcoming Go 1.5 release of the gc compiler adds support for "go
build -buildmode=c-archive".  This can be used to build Go code into
an archive (a .a file) that can be linked with a non-Go program, such
that the non-Go program can call into Go code.  This patch adds
support for that to gccgo.

I'm going to commit this patch to the GCC 5 branch as well.  This will
permit the Go 1.5 go tool to be used with the GCC 5.2 and later.  That
way people won't have to wait for GCC 6.  This patch seems safe to me
and passes all my testing.

Bootstrapped and ran Go tests and gc cgo tests on
x86_64-unknown-linux-gnu.  Committed to mainline and GCC 5 branch.

Ian

Attachment: foo.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]