r239852 - in /trunk/gcc/go: ChangeLog gccgo.tex...

ian@gcc.gnu.org ian@gcc.gnu.org
Tue Aug 30 03:27:00 GMT 2016


Author: ian
Date: Tue Aug 30 03:27:43 2016
New Revision: 239852

URL: https://gcc.gnu.org/viewcvs?rev=239852&root=gcc&view=rev
Log:
    compiler: add -fgo-c-header=FILE to create a C header
    
    The new -fgo-c-header=FILE option will write a C header file defining
    all the struct types and numeric const values in package scope.  This
    will be used when building the Go runtime package (libgo/go/runtime) to
    generate a C header file that may be included by the C code in the C
    runtime package (libgo/runtime).
    
    This will ensure that the Go code and C code are working with the same
    data structures as we convert the runtime from C to Go to upgrade to the
    current GC runtime, notably the concurrent garbage collector.
    
    Reviewed-on: https://go-review.googlesource.com/28000

	* lang.opt (fgo-c-header, fgo-compiling-runtime): New options.
	* go-c.h (struct go_create_gogo_args): Define.
	(go_create_gogo): Change declaration to take struct pointer.
	* go-lang.c (go_c_header): New static variable.
	(go_langhook_init): Update call to go_create_gogo.
	* gccgo.texi (Invoking gccgo): Document -fgo-c-header and
	-fgo-compiling-runtime.

Modified:
    trunk/gcc/go/ChangeLog
    trunk/gcc/go/gccgo.texi
    trunk/gcc/go/go-c.h
    trunk/gcc/go/go-lang.c
    trunk/gcc/go/gofrontend/MERGE
    trunk/gcc/go/gofrontend/go.cc
    trunk/gcc/go/gofrontend/gogo.cc
    trunk/gcc/go/gofrontend/gogo.h
    trunk/gcc/go/gofrontend/types.cc
    trunk/gcc/go/gofrontend/types.h
    trunk/gcc/go/lang.opt



More information about the Gcc-cvs mailing list