f8d9fa9e80
This upgrades all of libgo other than the runtime package to the Go 1.4 release. In Go 1.4 much of the runtime was rewritten into Go. Merging that code will take more time and will not change the API, so I'm putting it off for now. There are a few runtime changes anyhow, to accomodate other packages that rely on minor modifications to the runtime support. The compiler changes slightly to add a one-bit flag to each type descriptor kind that is stored directly in an interface, which for gccgo is currently only pointer types. Another one-bit flag (gcprog) is reserved because it is used by the gc compiler, but gccgo does not currently use it. There is another error check in the compiler since I ran across it during testing. gotools/: * Makefile.am (go_cmd_go_files): Sort entries. Add generate.go. * Makefile.in: Rebuild. From-SVN: r219627
52 lines
1.0 KiB
Go
52 lines
1.0 KiB
Go
// Copyright 2014 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// +build !arm
|
|
|
|
package runtime
|
|
|
|
import "unsafe"
|
|
|
|
//go:noescape
|
|
func xadd(ptr *uint32, delta int32) uint32
|
|
|
|
//go:noescape
|
|
func xadd64(ptr *uint64, delta int64) uint64
|
|
|
|
//go:noescape
|
|
func xchg(ptr *uint32, new uint32) uint32
|
|
|
|
//go:noescape
|
|
func xchg64(ptr *uint64, new uint64) uint64
|
|
|
|
//go:noescape
|
|
func xchgp(ptr unsafe.Pointer, new unsafe.Pointer) unsafe.Pointer
|
|
|
|
//go:noescape
|
|
func xchguintptr(ptr *uintptr, new uintptr) uintptr
|
|
|
|
//go:noescape
|
|
func atomicload(ptr *uint32) uint32
|
|
|
|
//go:noescape
|
|
func atomicload64(ptr *uint64) uint64
|
|
|
|
//go:noescape
|
|
func atomicloadp(ptr unsafe.Pointer) unsafe.Pointer
|
|
|
|
//go:noescape
|
|
func atomicor8(ptr *uint8, val uint8)
|
|
|
|
//go:noescape
|
|
func cas64(ptr *uint64, old, new uint64) bool
|
|
|
|
//go:noescape
|
|
func atomicstore(ptr *uint32, val uint32)
|
|
|
|
//go:noescape
|
|
func atomicstore64(ptr *uint64, val uint64)
|
|
|
|
//go:noescape
|
|
func atomicstorep(ptr unsafe.Pointer, val unsafe.Pointer)
|