]> git.ipfire.org Git - thirdparty/gcc.git/commit
compiler: mangle dots in pkgpath
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 12 Oct 2019 01:06:43 +0000 (01:06 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 12 Oct 2019 01:06:43 +0000 (01:06 +0000)
commit474da2e9b995a72fc05cdc89b9fe384861c761e5
treedb8d3f678ba5fd8a4c6bd397af5a5c4e0d55f4bd
parent0c49af883274528b96a6eb67436446190bc0e1cd
compiler: mangle dots in pkgpath

    We need to mangle dots to avoid problems with -fgo-pkgpath=a.0.
    That will confuse the name mangling, which assumes that names
    entering the mangling cannot contain arbitrary dot characters.
    We don't need to mangle other characters; go_encode_id will handle them.

    Fixes golang/go#33871

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/200838

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276913 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/go-encode-id.cc
gcc/go/gofrontend/go-encode-id.h
gcc/go/gofrontend/gogo.cc