]> git.ipfire.org Git - thirdparty/gcc.git/commit
compiler: Add -fgo-pkgpath option.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 May 2012 21:17:23 +0000 (21:17 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 May 2012 21:17:23 +0000 (21:17 +0000)
commit2a2647e2647e389283327557b3604a4fdb1e703c
tree35b68564005a08b6b179869395daba334368b0bc
parentd834564a753973e8655f45010784562c65f8b340
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
17 files changed:
gcc/go/ChangeLog
gcc/go/gccgo.texi
gcc/go/go-c.h
gcc/go/go-gcc.cc
gcc/go/go-lang.c
gcc/go/gofrontend/backend.h
gcc/go/gofrontend/export.cc
gcc/go/gofrontend/export.h
gcc/go/gofrontend/go.cc
gcc/go/gofrontend/gogo-tree.cc
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/import.cc
gcc/go/gofrontend/parse.cc
gcc/go/gofrontend/types.cc
gcc/go/gofrontend/unsafe.cc
gcc/go/lang.opt