compiler: support -fgo-importcfg
commit3a39a31b8ae9c6465434aefa657f7fcc86f905c0
authorIan Lance Taylor <iant@golang.org>
Mon, 26 Jun 2023 03:16:01 +0000 (25 20:16 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 26 Jun 2023 16:56:29 +0000 (26 09:56 -0700)
tree886212591b1c9d127eaaf234a4a2e22452ea384a
parent79d8fbbcbf09dfcb6ca18b129fd7841e0eeb0ef5
compiler: support -fgo-importcfg

* lang.opt (fgo-importcfg): New option.
* go-c.h (struct go_create_gogo_args): Add importcfg field.
* go-lang.cc (go_importcfg): New static variable.
(go_langhook_init): Set args.importcfg.
(go_langhook_handle_option): Handle -fgo-importcfg.
* gccgo.texi (Invoking gccgo): Document -fgo-importcfg.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/506095
gcc/go/gccgo.texi
gcc/go/go-c.h
gcc/go/go-lang.cc
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/embed.cc
gcc/go/gofrontend/go.cc
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/import.cc
gcc/go/lang.opt