]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cmd/cgo: fix typo in gccgo name mangling recipe
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Nov 2018 19:03:59 +0000 (19:03 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Nov 2018 19:03:59 +0000 (19:03 +0000)
    The code to implement new-style gccgo name mangling had a recipe that
    didn't quite match the one in the compiler (incorrect handling for
    '.'). This showed up as a failure in the gotools cgo test if the
    directory containing the test run included a "." character.

    Reviewed-on: https://go-review.googlesource.com/c/147917

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@265981 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/go/gofrontend/MERGE
libgo/go/cmd/cgo/out.go

index a7077810b289d3fa067f8c6b6ee2d0870e0efc47..6c5d5bc93d2f218f3e79c0e29bce8b62f8216360 100644 (file)
@@ -1,4 +1,4 @@
-da8c968474690d1e77442ac3361b2302ea8e1f36
+559fae430b81595efe151222385192a07a9fc3c3
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index 60b2c116ba5aedff826ef98c3eecb61025e8731a..50e571577934f79c04a66b618533f8f970f09050 100644 (file)
@@ -1261,7 +1261,7 @@ func gccgoPkgpathToSymbolNew(ppath string) string {
        for _, c := range []byte(ppath) {
                switch {
                case 'A' <= c && c <= 'Z', 'a' <= c && c <= 'z',
-                       '0' <= c && c <= '9', '_' == c:
+                       '0' <= c && c <= '9', c == '_', c == '.':
                        bsl = append(bsl, c)
                default:
                        changed = true