compiler: Add -fgo-relative-import-path.
authorIan Lance Taylor <iant@google.com>
Wed, 31 Oct 2012 00:38:49 +0000 (00:38 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 31 Oct 2012 00:38:49 +0000 (00:38 +0000)
commit4e1866fe6f17ad219a2855ab21b5e45de225ce25
tree8e27ff062ee5234453cbd514cc8ccfd5feba4037
parenta46837fe1cda1a23de3f99a0c5f7716251eee416
compiler: Add -fgo-relative-import-path.

* lang.opt (-fgo-relative-import-path): New option.
* go-lang.c (go_relative_import_path): New static variable.
(go_langhook_init): Pass go_relative_import_path to
go_create_gogo.
(go_langhook_handle_option): Handle -fgo-relative-import-path.
* go-c.h (go_create_gogo): Update declaration.
* gccgo.texi (Invoking gccgo): Document
-fgo-relative-import-path.

From-SVN: r193008
gcc/go/ChangeLog
gcc/go/gccgo.texi
gcc/go/go-c.h
gcc/go/go-lang.c
gcc/go/gofrontend/go.cc
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/import.cc
gcc/go/gofrontend/import.h
gcc/go/lang.opt