compiler: rewrite compiler directive support
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 9 Aug 2016 14:05:17 +0000 (14:05 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 9 Aug 2016 14:05:17 +0000 (14:05 +0000)
commitb87060ce92628c3c81754149d2d8a7e2733fb495
tree481f59d708170e50cb07a5189895a66babc1ddbd
parenta00f4c6b4f46ab219946e738586fca49d4e71bfd
compiler: rewrite compiler directive support

    Rewrite the compiler directive support to recognize all the compiler
    directives implemented by the current gc compiler.  The directives other
    than go:linkname are now turned into GOPRAGMA flags attached to a
    function or function declaration.  The go:linkname directive is turned
    into a map attached to the Lex object.  No new directives are actually
    implemented yet, they are just recognized.

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

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