compiler: implement go:linkname compiler directive
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 9 Aug 2016 23:08:32 +0000 (23:08 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 9 Aug 2016 23:08:32 +0000 (23:08 +0000)
commit315873869d984b23c4bf0e1a47ce030c2a575184
tree21fd5a8356d1af04dc076e3b01ac52f8d760df73
parentdc29c7de7805ad0c045be6e123432ad0c04ae00e
compiler: implement go:linkname compiler directive

    Implement the go:linkname compiler directive for functions (both
    function definitions and function declarations).  At least for now, give
    an error for code that tries to use go:linkname with a non-function.

    Reviewed-on: https://go-review.googlesource.com/26651

From-SVN: r239311
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/go.cc
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h
gcc/go/gofrontend/lex.cc
gcc/go/gofrontend/lex.h