diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-11-09 19:03:59 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2018-11-09 19:03:59 +0000 |
commit | 0d26cdf1cfef8b956cd62e5e6a9cd6210de8140d (patch) | |
tree | cb28480693286446d02f20977327259445bf33bc /libgo | |
parent | 79a2c4281c7dcaa6a138d24fd037c62453a12bde (diff) | |
download | gcc-0d26cdf1cfef8b956cd62e5e6a9cd6210de8140d.zip gcc-0d26cdf1cfef8b956cd62e5e6a9cd6210de8140d.tar.gz gcc-0d26cdf1cfef8b956cd62e5e6a9cd6210de8140d.tar.bz2 |
cmd/cgo: fix typo in gccgo name mangling recipe
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
From-SVN: r265981
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/go/cmd/cgo/out.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/cmd/cgo/out.go b/libgo/go/cmd/cgo/out.go index 60b2c11..50e5715 100644 --- a/libgo/go/cmd/cgo/out.go +++ b/libgo/go/cmd/cgo/out.go @@ -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 |