cmd/godoc: fix buggy use of strings.HasSuffix

This code never worked. Maybe it's not necessary?

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7225070
crypto/cipher: avoid out of bounds error in CryptBlocks

Fixes issue 4699.

R=golang-dev, agl
CC=golang-dev
https://codereview.appspot.com/7231065
cmd/gc: support GNU Bison 2.7 in bisonerrors

R=golang-dev, minux.ma, rsc
CC=golang-dev
https://codereview.appspot.com/7235064
cmd/go: fix build -n for cgo enabled packages

R=golang-dev, minux.ma, rsc
CC=golang-dev
https://codereview.appspot.com/7095067
net/http: fix race

Fixes issue 4724

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7225071
math/big: make tests faster by reducing coverage in --test.short mode.

The time to test all of math/big is now:
 default      => ~3min
 --test.short => 150ms

R=rsc
CC=golang-dev
https://codereview.appspot.com/7223054
A+C: Robert Daniel Kortschak (individual CLA)

Generated by addca.

R=gobot
CC=golang-dev
https://codereview.appspot.com/7245045
encoding/json: improve performance of Unmarshal on primitive types

Attempt 2. The first fix was much faster but ignored syntax errors.

benchmark                      old ns/op    new ns/op    delta
BenchmarkCodeEncoder            74993543     72982390   -2.68%
BenchmarkCodeMarshal            77811181     75610637   -2.83%
BenchmarkCodeDecoder           213337123    190144982  -10.87%
BenchmarkCodeUnmarshal         212180972    190394852  -10.27%
BenchmarkCodeUnmarshalReuse    202113428    182106660   -9.90%
BenchmarkUnmarshalString            1343          919  -31.57%
BenchmarkUnmarshalFloat64           1149          908  -20.97%
BenchmarkUnmarshalInt64              967          778  -19.54%
BenchmarkSkipValue              28851581     28414125   -1.52%

benchmark                       old MB/s     new MB/s  speedup
BenchmarkCodeEncoder               25.88        26.59    1.03x
BenchmarkCodeMarshal               24.94        25.66    1.03x
BenchmarkCodeDecoder                9.10        10.21    1.12x
BenchmarkCodeUnmarshal              9.15        10.19    1.11x
BenchmarkSkipValue                 69.05        70.11    1.02x

Fixes issue 3949.

R=rsc
CC=golang-dev
https://codereview.appspot.com/7231058

Committer: Russ Cox <rsc@golang.org>
fmt: improve go syntax handling of byte-derived arrays and slices

Fixes issue 4685.

R=golang-dev, adg, remyoudompheng, rsc
CC=golang-dev
https://codereview.appspot.com/7205047

Committer: Russ Cox <rsc@golang.org>
exp/cookiejar: update PublicSuffixList doc comment to match the
examples at http://publicsuffix.org/.

That website previously listed pvt.k12.wy.us, but that was an error,
as confirmed by correspondance with submissions@publicsuffix.org, and
the website was fixed on 2013-01-23.

R=adg
CC=dr.volker.dobler, golang-dev
https://codereview.appspot.com/7241053
os: provide access to file LastAccessTime and CreationTime on windows

Fixes issue 4569.

R=bradfitz, rsc
CC=golang-dev
https://codereview.appspot.com/6972047
container/heap: split example into two

This adds a simple IntHeap example, and modifies the more complex
PriorityQueue example to make use of the index field it maintains.

Fixes issue 4331.

R=rsc, adg
CC=golang-dev
https://codereview.appspot.com/7068048

Committer: Russ Cox <rsc@golang.org>
cmd/gc: inlining of variadic functions.

R=rsc, lvd, golang-dev, kardianos
CC=golang-dev
https://codereview.appspot.com/7093050
cmd/8l: fix misassembling of MOVB involving (AX)(BX*1)

The linker accepts MOVB involving non-byte-addressable
registers, by generating XCHG instructions to AX or BX.
It does not handle the case where nor AX nor BX are available.

See also revision 1470920a2804.

Assembling
    TEXT ·Truc(SB),7,$0
    MOVB BP, (BX)(AX*1)
    RET

gives before:
   08048c60 <main.Truc>:
    8048c60:       87 dd         xchg   %ebx,%ebp
    8048c62:       88 1c 03      mov    %bl,(%ebx,%eax,1)
    8048c65:       87 dd         xchg   %ebx,%ebp
    8048c67:       c3            ret

and after:
   08048c60 <main.Truc>:
    8048c60:       87 cd         xchg   %ecx,%ebp
    8048c62:       88 0c 03      mov    %cl,(%ebx,%eax,1)
    8048c65:       87 cd         xchg   %ecx,%ebp
    8048c67:       c3            ret

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7226066
encoding/json: document case-insensitive Unmarshal key matching

Fixes issue 4664.

R=golang-dev, adg
CC=golang-dev
https://codereview.appspot.com/7237060
cmd/ld: retry short writes, to get error detail

Fixes issue 3802.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/7228066
os: use signal strings where possible in ProcessState.String

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/7228067
cmd/vet: handle added string constants in printf format check

Fixes issue 4599.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/7226067
cmd/go: many bug fixes

* Reject import paths of the form cmd/x/y.
* Reject 'go install' of command outside GOPATH
* Clearer error rejecting 'go install' of package outside GOPATH.
* Name temporary binary for first file in 'go run' list or for test.
* Provide a way to pass -ldflags arguments with spaces.
* Pass all Go files (even +build ignored ones) to go fix, go fmt, go vet.
* Reject 'go run foo_test.go'.
* Silence 'exit 1' prints from 'go tool' invocations.
* Make go test -xxxprofile leave binary behind for analysis.
* Reject ~ in GOPATH except on Windows.
* Get a little less confused by symlinks.
* Document that go test x y z runs three test binaries.
* Fix go test -timeout=0.
* Add -tags flag to 'go list'.
* Use pkg/gccgo_$GOOS_$GOARCH for gccgo output.

Fixes issue 3389.
Fixes issue 3500.
Fixes issue 3503.
Fixes issue 3760.
Fixes issue 3941.
Fixes issue 4007.
Fixes issue 4032.
Fixes issue 4074.
Fixes issue 4127.
Fixes issue 4140.
Fixes issue 4311.
Fixes issue 4568.
Fixes issue 4576.
Fixes issue 4702.

R=adg
CC=golang-dev
https://codereview.appspot.com/7225074
crypto/x509: test for negative RSA parameters.

Someone found software that generates negative numbers for the RSA
modulus in an X.509 certificate. Our error messages were very poor in
this case so this change improves that.

Update issue 4728
Return more helpful errors when RSA parameters are negative or zero.

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7228072