compiler, libgo: change mangling scheme
Overhaul the mangling scheme to avoid ambiguities if the package path contains a dot. Instead of using dot both to separate components and to mangle characters, use dot only to separate components and use underscore to mangle characters. For golang/go#41862 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/271726
Showing
- gcc/go/gofrontend/MERGE 1 addition, 1 deletiongcc/go/gofrontend/MERGE
- gcc/go/gofrontend/ast-dump.cc 5 additions, 1 deletiongcc/go/gofrontend/ast-dump.cc
- gcc/go/gofrontend/export.cc 6 additions, 2 deletionsgcc/go/gofrontend/export.cc
- gcc/go/gofrontend/expressions.cc 18 additions, 20 deletionsgcc/go/gofrontend/expressions.cc
- gcc/go/gofrontend/go-encode-id.cc 189 additions, 100 deletionsgcc/go/gofrontend/go-encode-id.cc
- gcc/go/gofrontend/go-encode-id.h 0 additions, 13 deletionsgcc/go/gofrontend/go-encode-id.h
- gcc/go/gofrontend/gogo.cc 114 additions, 138 deletionsgcc/go/gofrontend/gogo.cc
- gcc/go/gofrontend/gogo.h 138 additions, 35 deletionsgcc/go/gofrontend/gogo.h
- gcc/go/gofrontend/names.cc 433 additions, 326 deletionsgcc/go/gofrontend/names.cc
- gcc/go/gofrontend/runtime.def 17 additions, 17 deletionsgcc/go/gofrontend/runtime.def
- gcc/go/gofrontend/types.cc 55 additions, 50 deletionsgcc/go/gofrontend/types.cc
- gcc/go/gofrontend/types.h 10 additions, 10 deletionsgcc/go/gofrontend/types.h
- libgo/configure 1 addition, 1 deletionlibgo/configure
- libgo/configure.ac 1 addition, 1 deletionlibgo/configure.ac
- libgo/go/cmd/cgo/out.go 13 additions, 10 deletionslibgo/go/cmd/cgo/out.go
- libgo/go/cmd/internal/pkgpath/pkgpath.go 64 additions, 4 deletionslibgo/go/cmd/internal/pkgpath/pkgpath.go
- libgo/go/cmd/internal/pkgpath/pkgpath_test.go 21 additions, 1 deletionlibgo/go/cmd/internal/pkgpath/pkgpath_test.go
- libgo/go/go/internal/srcimporter/srcimporter.go 1 addition, 1 deletionlibgo/go/go/internal/srcimporter/srcimporter.go
- libgo/go/internal/bytealg/bytealg.c 5 additions, 5 deletionslibgo/go/internal/bytealg/bytealg.c
- libgo/go/internal/cpu/cpu_gccgo.c 10 additions, 10 deletionslibgo/go/internal/cpu/cpu_gccgo.c
Loading
Please register or sign in to comment