cmd/go: fix handling of build tags for standard commands
Otherwise if I add '+build !race' to e.g. src/cmd/fix/reflect_test.go,
it does not work.

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/6642044
cmd/fix: disable reflect test under race detector (very slow)

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/6642045
cmd/ld: use 64-bit alignment for large data and bss objects

Check for specific, important misalignment in garbage collector.
Not a complete fix for issue 599 but an important workaround.

Update issue 599.

R=golang-dev, iant, dvyukov
CC=golang-dev
http://codereview.appspot.com/6641049
race: syscall changes
This is a part of a bigger change that adds data race detection feature:
http://codereview.appspot.com/6456044
The purpose of this patch is to provide coarse-grained synchronization
between all Read() and Write() calls.

R=rsc, bradfitz, alex.brainman
CC=golang-dev
http://codereview.appspot.com/6610064
cmd/ld, cmd/6l, cmd/8l: sort exported dynamic symbols for Darwin
Also corrected cmd/8l's .dynsym handling (differentiate between exported symbols and imported symbols)

        Fixes issue 4029.

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/6620075
cmd/5l: generate FreeBSD compatible ELF
1. correctly initialize .plt.got entries (point to the 1st entry)
2. add section .rel.plt (FreeBSD insists PLT relocs to be there)
3. put relocs of .got.plt into .rel.plt
4. set ELFOSABI_FREEBSD in ELF header

R=rsc
CC=golang-dev
http://codereview.appspot.com/6643050
io/ioutil: fix data race on rand
Fixes issue 4212.

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/6641050
crypto/tls: fix NPN extension parsing.

I typoed the code and tried to parse all the way to the end of the
message. Therefore it fails when NPN is not the last extension in the
ServerHello.

Fixes issue 4088.

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/6637052
misc/cgo/test: add -ldl to LDFLAGS on Linux, ignore issue4029 on windows (fix build)

R=golang-dev
CC=golang-dev
http://codereview.appspot.com/6631054
net/http: fix name of result parameter in a comment

R=golang-dev, minux.ma
CC=golang-dev
http://codereview.appspot.com/6632053
cmd/ld: add -B option to set build ID

Background on build ID:
http://fedoraproject.org/wiki/RolandMcGrath/BuildID

R=rsc
CC=golang-dev
http://codereview.appspot.com/6625072
gofmt: apply gofmt -w -s src misc

Preparation for forthcoming CL 6624051: Will make it
easier to see if/what changes are incurred by it.

The alignment changes in this CL are due to CL 6610051
(fix to alignment heuristic) where it appears that an
old version of gofmt was run (and thus the correct
alignment updates were not done).

R=r
CC=golang-dev
http://codereview.appspot.com/6639044
go/printer: idempotent comment formatting

Also:

- Refactored testing framework to permit easier
idempotency testing.

- Applied gofmt -w src misc

This CL depends on CL 6639044 being applied first.

Formatting is not idempotent for all files: In those
files the comment position has changed (due to missing
precise location information) and/or the comment formatting
cannot/is not aware of independent code re-formatting.
In general it is very hard to make format idempotent when
running it in one pass only. Leaving that aside for now.

Fixes issue 1835.

R=r, rsc
CC=golang-dev
http://codereview.appspot.com/6624051
bytes: make examples work in playground

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/6633050
godoc: add dropdown playground to nav bar

R=gri, dsymonds, skybrian
CC=golang-dev
http://codereview.appspot.com/6631057
bytes: fix tests and fix build

R=golang-dev, edsrzf
CC=golang-dev
http://codereview.appspot.com/6633051
A+C: change Sergio Correia's email address

R=golang-dev, r
CC=golang-dev
http://codereview.appspot.com/6631059
spec: clarify defer semantics
It's already there but only in the "for instance" and so not
clear enough: deferred functions run after
the result parameters are updated.

R=golang-dev, dsymonds
CC=golang-dev
http://codereview.appspot.com/6631058
runtime: fix race detector handling of stackalloc()

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/6632051
cmd/gc: fix compiler crash during race instrumentation
The compiler is crashing on the following code:

type TypeID int
func (t *TypeID) encodeType(x int) (tt TypeID, err error) {
        switch x {
        case 0:
                return t.encodeType(x * x)
        }
        return 0, nil
}
The pass marks "return struct" {tt TypeID, err error} as used,
and this causes internal check failure.
I've added the test to:
https://codereview.appspot.com/6525052/diff/7020/src/pkg/runtime/race/regression_test.go

R=golang-dev, minux.ma, rsc
CC=golang-dev
http://codereview.appspot.com/6611049