From: Ian Lance Taylor Date: Thu, 17 Apr 2014 23:27:31 +0000 (+0000) Subject: runtime: remove use of obsolete map deletion syntax X-Git-Tag: releases/gcc-5.1.0~8043 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8ad3ca026f1417bb2dfea7e7193227b28482e41;p=thirdparty%2Fgcc.git runtime: remove use of obsolete map deletion syntax The use of this syntax was eliminated upstream in Go 992248b2adc2, but this particular use slipped through somehow. From-SVN: r209506 --- diff --git a/libgo/go/syscall/syscall_unix.go b/libgo/go/syscall/syscall_unix.go index 966090a076a7..5559c7c69b7e 100644 --- a/libgo/go/syscall/syscall_unix.go +++ b/libgo/go/syscall/syscall_unix.go @@ -153,7 +153,7 @@ func (m *mmapper) Munmap(data []byte) (err error) { if errno := m.munmap(uintptr(unsafe.Pointer(&b[0])), uintptr(len(b))); errno != nil { return errno } - m.active[p] = nil, false + delete(m.active, p) return nil }