diff options
author | Ian Lance Taylor <iant@google.com> | 2012-10-31 00:38:49 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-10-31 00:38:49 +0000 |
commit | 4e1866fe6f17ad219a2855ab21b5e45de225ce25 (patch) | |
tree | 8e27ff062ee5234453cbd514cc8ccfd5feba4037 /gcc/go/go-c.h | |
parent | a46837fe1cda1a23de3f99a0c5f7716251eee416 (diff) | |
download | gcc-4e1866fe6f17ad219a2855ab21b5e45de225ce25.zip gcc-4e1866fe6f17ad219a2855ab21b5e45de225ce25.tar.gz gcc-4e1866fe6f17ad219a2855ab21b5e45de225ce25.tar.bz2 |
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
Diffstat (limited to 'gcc/go/go-c.h')
-rw-r--r-- | gcc/go/go-c.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/go/go-c.h b/gcc/go/go-c.h index a7f7b1f..8f21b6b 100644 --- a/gcc/go/go-c.h +++ b/gcc/go/go-c.h @@ -33,7 +33,8 @@ extern int go_enable_optimize (const char*); extern void go_add_search_path (const char*); extern void go_create_gogo (int int_type_size, int pointer_size, - const char* pkgpath, const char *prefix); + const char* pkgpath, const char *prefix, + const char *relative_import_path); extern void go_parse_input_files (const char**, unsigned int, bool only_check_syntax, |