summaryrefslogtreecommitdiff
path: root/gcc/go/lang.opt
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-09 21:17:23 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-05-09 21:17:23 +0000
commit2a2647e2647e389283327557b3604a4fdb1e703c (patch)
tree35b68564005a08b6b179869395daba334368b0bc /gcc/go/lang.opt
parentd834564a753973e8655f45010784562c65f8b340 (diff)
downloadgcc-2a2647e2647e389283327557b3604a4fdb1e703c.tar.gz
compiler: Add -fgo-pkgpath option.
* lang.opt: Add -fgo-pkgpath. * go-lang.c (go_pkgpath): New static variable. (go_prefix): New static variable. (go_langhook_init): Pass go_pkgpath and go_prefix to go_create_gogo. (go_langhook_handle_option): Handle -fgo-pkgpath. Change -fgo-prefix handling to just set go_prefix. * go-c.h (go_set_prefix): Don't declare. (go_create_gogo): Add pkgpath and prefix to declaration. * go-gcc.cc (Gcc_backend::global_variable): Change unique_prefix to pkgpath. Don't include the package name in the asm name. * gccgo.texi (Invoking gccgo): Document -fgo-pkgpath. Update the docs for -fgo-prefix. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187356 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/go/lang.opt')
-rw-r--r--gcc/go/lang.opt4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/go/lang.opt b/gcc/go/lang.opt
index c14df9c6107..eb9ed9a63a0 100644
--- a/gcc/go/lang.opt
+++ b/gcc/go/lang.opt
@@ -53,6 +53,10 @@ fgo-optimize-
Go Joined RejectNegative
-fgo-optimize-<type> Turn on optimization passes in the frontend
+fgo-pkgpath=
+Go Joined RejectNegative
+-fgo-pkgpath=<string> Set Go package path
+
fgo-prefix=
Go Joined RejectNegative
-fgo-prefix=<string> Set package-specific prefix for exported Go names