exp/ssa: silence go vet

R=adonovan
CC=golang-dev
https://codereview.appspot.com/7386052
runtime: add cgocallback_gofunc that can call Go func value

For now, all the callbacks from C use top-level Go functions,
so they use the equivalent C function pointer, and will continue
to do so. But perhaps some day this will be useful for calling
a Go func value (at least if the type is already known).

More importantly, the Windows callback code needs to be able
to use cgocallback_gofunc to call a Go func value.
Should fix the Windows build.

R=ken2
CC=golang-dev
https://codereview.appspot.com/7388049
cmd/vet: restructure to be package-driven
This is a simple refactoring of main.go that will enable the type checker
to be used during vetting.
The change has an unimportant effect on the arguments: it now assumes
that all files named explicitly on the command line belong to the same
package. When run by the go command, this was true already.

Also restore a missing parenthesis from an error message.

R=golang-dev, gri, bradfitz
CC=golang-dev
https://codereview.appspot.com/7393052
runtime: fix arm build

R=ken2
CC=golang-dev
https://codereview.appspot.com/7399050
os: Plan 9: avoid doing zero-length writes.

Plan 9 I/O preserves message boundaries, while Go
library code is written for UNIX-like operating
systems which do not. Avoid doing zero-length
writes in package os.

R=rsc, rminnich, ality, rminnich, r
CC=golang-dev
https://codereview.appspot.com/7406046

Committer: Ron Minnich <rminnich@gmail.com>
all.rc: make sure the Go tools end up in /bin

At least one test (in package runtime) depends
on `go' being in $path. We simply bind GOROOT/bin
before /bin to make sure the latest copy of the
binary is accessible there.

R=rsc, rminnich, ality
CC=golang-dev
https://codereview.appspot.com/7391047

Committer: Ron Minnich <rminnich@gmail.com>
cmd/gc: mark LOCALS argument as a constant to print correctly

Fixes issue 4875.

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7376049
syscall: add netlink constants for linux

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/7403049
testing: move Skip into *common

Move Skip and friends into *common so benchmarks can also be skipped.

R=golang-dev, gustav.paul, rsc
CC=golang-dev
https://codereview.appspot.com/7379046
cmd/vet: use types to test Error methods correctly.
We need go/types to discriminate the Error method from
the error interface and the Error method of the testing package.
Fixes issue 4753.

R=golang-dev, bradfitz, gri
CC=golang-dev
https://codereview.appspot.com/7396054
runtime: minor changes
to minimize diffs of new scheduler

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7381048
runtime: implement local work queues (in preparation for new scheduler)

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7402047
runtime: fix windows cpu profiling

R=golang-dev, alex.brainman
CC=golang-dev
https://codereview.appspot.com/7407044
cmd/cgo, cmd/dist, cmd/go: cgo with clang fixes
1. Workaround the smart clang diagnostics with -Qunused-arguments:
clang: error: argument unused during compilation: '-XXX'
2. if "clang -print-libgcc-file-name" returns non-absolute path, don't
provide that on linker command line.
3. Fix dwarf.PtrType.Size() in cmd/cgo as clang doesn't generate
DW_AT_byte_size for pointer types.
4. Workaround warnings for -Wno-unneeded-internal-declaration with
-Wno-unknown-warning-option.
5. Add -Wno-unused-function.
6. enable race detector test on darwin with clang
(at least Apple clang version 1.7 (tags/Apple/clang-77) works).

Requires CL 7354043.

Update issue 4829
This should fix most parts of the problem, but one glitch still remains.
DWARF generated by newer clang doesn't differentiate these
two function types:
    void *malloc(size_t);
    void *malloc(unsigned long int);
so you might need to do this to make make.bash pass:
sed -i -e 's/C.malloc(C.size_t/C.malloc(C.ulong/' pkg/os/user/lookup_unix.go

R=golang-dev, dave, iant, rsc
CC=golang-dev
https://codereview.appspot.com/7351044
archive/tar: simplify use of constants in test case.

Replace setsid with c_ISGID since the constant is already defined.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/7403048

Committer: Brad Fitzpatrick <bradfitz@golang.org>