text/template/parse: fix data race
The situation only affects diagnostics but is easy to fix.
When computing lineNumber, use the position of the last item
returned by nextItem rather than the current state of the lexer.
This is internal only and does not affect the API.

Fixes issue 3886.

R=golang-dev, iant
CC=golang-dev
http://codereview.appspot.com/6445061
pkg/syscall: unexport Prlimit.

This syscall was inadvertently exported when fixing
Getrlimit/Setrlimit on 32-bit platforms.

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

Committer: Brad Fitzpatrick <bradfitz@golang.org>
text/template/parse/lex.go: fix typo

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/6448081
httputil: accumulate X-Forwarded-For header info

If the X-Forwarded-For header already exists on a request, we
should append our client's IP to it after a comma+space instead
of overwriting it.

Fixes issue 3846.

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/6448053

Committer: Brad Fitzpatrick <bradfitz@golang.org>
cmd/cgo: use 1 as last entry for __cgodebug_data
        LLVM-based gcc will place all-zero data in a zero-filled
        section, but our debug/macho can't handle that.
        Fixes issue 3821.

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/6444049
cmd/5l, cmd/ld: add support for R_ARM_GOT_PREL
Android NDK's gcc 4.6 generates this relocation for runtime/cgo.

R=rsc
CC=golang-dev
http://codereview.appspot.com/6450056
net: disable IPv6 multicast tests unless external IPv6 connection is present

R=rsc
CC=golang-dev
http://codereview.appspot.com/6398052
misc/cgo/test: fix darwin build

uuid_t is defined in unistd.h on OS X, unfortunately.

R=iant, rsc
CC=golang-dev
http://codereview.appspot.com/6455057
cmd/gc: fix inlining bug with receive operator.

The receive operator was given incorrect precedence
resulting in incorrect deletion of parentheses.

Fixes issue 3843.

R=rsc
CC=golang-dev, remy
http://codereview.appspot.com/6442049
image/png: tRNS chunk is *non*-alpha-premultiplied.

R=r
CC=golang-dev
http://codereview.appspot.com/6446062
exp/html: tokenize attributes of end tags

If an end tag has an attribute that is a quoted string containing '>',
the tokenizer would end the tag prematurely. Now it reads the attributes
on end tags just as it does on start tags, but the high-level interface
still doesn't return them, because their presence is a parse error.

Pass 1 additional test.

R=nigeltao
CC=golang-dev
http://codereview.appspot.com/6457060

Committer: Nigel Tao <nigeltao@golang.org>
exp/types: implement Type.String methods for testing/debugging

Also:
- replaced existing test with a more comprehensive test
- fixed bug in map type creation

R=r
CC=golang-dev
http://codereview.appspot.com/6450072
exp/types: Replace String method with TypeString function

This is more in sync with the rest of the package;
for instance, we have functions (not methods) to
deref or find the underlying type of a Type.

In the process use a single bytes.Buffer to create
the string representation for a type rather than
the (occasional) string concatenation.

R=r
CC=golang-dev
http://codereview.appspot.com/6458057
os: Rename error to fit IsExist

Fixes issue 3828.

R=golang-dev, iant, rsc
CC=golang-dev
http://codereview.appspot.com/6420056
runtime: round return value address in runtime.equal
     Fixes issue 3866.

R=rsc, r, nigeltao
CC=golang-dev
http://codereview.appspot.com/6452046
test/run.go: fix compiledir test on windows
    we can't import "./bug0" on windows, as it will trigger
"import path contains invalid character ':'" error.
    instead, we pass "-D." and "-I." to gc to override this
behavior. this idea is due to remyoudompheng.

R=golang-dev, r, alex.brainman, remyoudompheng
CC=golang-dev
http://codereview.appspot.com/6441074
exp/html: implement escaping and double-escaping in scripts

The text inside <script> tags is not ordinary raw text; there are all sorts
of other complications. This CL implements those complications.

Pass 76 additional tests.

R=nigeltao
CC=golang-dev
http://codereview.appspot.com/6443070

Committer: Nigel Tao <nigeltao@golang.org>
exp/types: enable cycle checks again

Process a package's object in a reproducible
order (rather then in map order) so that we
get error messages in reproducible order.

R=r
CC=golang-dev
http://codereview.appspot.com/6449076