summaryrefslogtreecommitdiff
path: root/gcc/go/gccgo.texi
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-31 00:38:49 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-31 00:38:49 +0000
commit0b1e172cc2c34a62681fdee312b982fc429e792c (patch)
tree8e27ff062ee5234453cbd514cc8ccfd5feba4037 /gcc/go/gccgo.texi
parent0992f359e902397bd37834767b9a82a71ef7a875 (diff)
downloadgcc-0b1e172cc2c34a62681fdee312b982fc429e792c.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193008 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/go/gccgo.texi')
-rw-r--r--gcc/go/gccgo.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/go/gccgo.texi b/gcc/go/gccgo.texi
index a5e37e76e80..91930c812f6 100644
--- a/gcc/go/gccgo.texi
+++ b/gcc/go/gccgo.texi
@@ -184,6 +184,12 @@ Using either @option{-fgo-pkgpath} or @option{-fgo-prefix} disables
the special treatment of the @code{main} package and permits that
package to be imported like any other.
+@item -fgo-relative-import-path=@var{dir}
+@cindex @option{-fgo-relative-import-path}
+A relative import is an import that starts with @file{./} or
+@file{../}. If this option is used, @command{gccgo} will use
+@var{dir} as a prefix for the relative import when searching for it.
+
@item -frequire-return-statement
@itemx -fno-require-return-statement
@cindex @option{-frequire-return-statement}