cmd/ld: fix PC deltas in DWARF line number table

The putpclcdelta function set the DWARF line number PC to
s->value + pcline->pc, which is correct, but the code then set
the local variable pc to epc, which can be a different value.
This caused the next delta in the DWARF table to be wrong.

Fixes issue 8098.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://codereview.appspot.com/104950045
net/http: fix double Content-Length in response

Fixes Issue 8180

LGTM=rsc
R=rsc
CC=golang-codereviews
https://codereview.appspot.com/105040043
nacltest.bash, misc/nacl/README: update NaCl docs.

LGTM=rsc
R=dave, rsc
CC=golang-codereviews
https://codereview.appspot.com/105030043
cmd/gc: fix escape analysis for &x inside switch x := v.(type)

The analysis for &x was using the loop depth on x set
during x's declaration. A type switch creates a list of
implicit declarations that were not getting initialized
with loop depths.

Fixes issue 8176.

LGTM=iant
R=iant
CC=golang-codereviews
https://codereview.appspot.com/108860043
math: implement Nextafter32

Provide Nextafter64 as alias to Nextafter.
For submission after the 1.3 release.

Fixes issue 8117.

LGTM=adonovan
R=adonovan
CC=golang-codereviews
https://codereview.appspot.com/101750048
math/big: implement Rat.Float32

Pending CL 101750048.
For submission after the 1.3 release.

Fixes issue 8065.

LGTM=adonovan
R=adonovan
CC=golang-codereviews
https://codereview.appspot.com/93550043
cmd/gc: fix &result escaping into result

There is a hierarchy of location defined by loop depth:

        -1 = the heap
        0 = function results
        1 = local variables (and parameters)
        2 = local variable declared inside a loop
        3 = local variable declared inside a loop inside a loop
        etc

In general if an address from loopdepth n is assigned to
something in loop depth m < n, that indicates an extended
lifetime of some form that requires a heap allocation.

Function results can be local variables too, though, and so
they don't actually fit into the hierarchy very well.
Treat the address of a function result as level 1 so that
if it is written back into a result, the address is treated
as escaping.

Fixes issue 8185.

LGTM=iant
R=iant
CC=golang-codereviews
https://codereview.appspot.com/108870044
encoding/base64, encoding/base32: make DecodeString faster

Previously, an input string was stripped of newline
characters at the beginning of DecodeString and then passed
to Decode. Decode again tried to strip newline characters.
That's waste of time.

benchmark                 old MB/s     new MB/s  speedup
BenchmarkDecodeString        38.37        65.20    1.70x

LGTM=dave, bradfitz
R=golang-codereviews, dave, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/91770051

Committer: Brad Fitzpatrick <bradfitz@golang.org>
math: remove Nextafter64 alias in favor of existing Nextafter

LGTM=adonovan
R=rsc, adonovan
CC=golang-codereviews
https://codereview.appspot.com/104050045
runtime: add test for issue 8047.

Make sure stack copier doesn't barf on a nil defer.
Bug was fixed in https://codereview.appspot.com/101800043
This change just adds a test.

Fixes issue 8047

LGTM=dvyukov, rsc
R=dvyukov, rsc
CC=golang-codereviews
https://codereview.appspot.com/108840043

Committer: Russ Cox <rsc@golang.org>
mime/multipart: fix format

Remove unnecessary blank line.

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://codereview.appspot.com/105040045

Committer: Ian Lance Taylor <iant@golang.org>
bytes, strings: optimize Repeat

Call copy with as large buffer as possible to reduce the
number of function calls.

benchmark                 old ns/op    new ns/op    delta
BenchmarkBytesRepeat            540          162  -70.00%
BenchmarkStringsRepeat          563          177  -68.56%

LGTM=josharian
R=golang-codereviews, josharian, dave, dvyukov
CC=golang-codereviews
https://codereview.appspot.com/90550043

Committer: Josh Bleecher Snyder <josharian@gmail.com>
misc/makerelease: update default tag to release-branch.go1.3

TBR=bradfitz
R=golang-codereviews
CC=golang-codereviews
https://codereview.appspot.com/104090044
doc: link to release history from /doc/

Fixes issue 8168.

TBR=bradfitz
R=golang-codereviews
CC=golang-codereviews
https://codereview.appspot.com/107950043
net: do not call time.Now() twice

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/104080043
net: efficient text processing

Optimize IP.String, IPMask.String and ParseIP.

benchmark                old ns/op    new ns/op    delta
BenchmarkParseIP              2216         1849  -16.56%
BenchmarkIPString             7828         2486  -68.24%
BenchmarkIPMaskString         3872          659  -82.98%

LGTM=mikioh.mikioh, dave, bradfitz
R=golang-codereviews, mikioh.mikioh, dave, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/95750043
encoding/ascii85: remove unused field

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/105890044