cmd/8g: factor out prog information

Like CL 12637051, but for 8g instead of 6g.
Fix a few minor 6g errors too.

R=ken2
CC=golang-dev
https://codereview.appspot.com/12778043
syscall: Convert textflags from numbers to symbols.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/12773043
math: convert textflags from numbers to symbols

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/12773044
all: change textflags from numbers to symbols.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/12774043
runtime: fix ARM assembly formatting

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/12702048
cmd/5l: fix encoding of new MOVB, MOVH instructions

They are just like MOVW and should be setting only
two register fields, not three.

R=ken2
CC=golang-dev, remyoudompheng
https://codereview.appspot.com/12781043
cmd/5g: factor out prog information

Like CL 12637051, but for 5g instead of 6g.

R=ken2
CC=golang-dev
https://codereview.appspot.com/12779043
sync/atomic: specify argsize for asm routines
Fixes issue 6098.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/12717043
runtime: remove unused m->racepc
The original plan was to collect allocation stacks
for all memory blocks. But it was never implemented
and it's not in near plans and it's unclear how to do it at all.

R=golang-dev, dave, bradfitz
CC=golang-dev
https://codereview.appspot.com/12724044
runtime/race: add end-to-end test
Fixes issue 5933.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/12699051
runtime: change textflags from numbers to symbols

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/12798043
net/http: do not send malformed cookie domain attribute

Malformed domain attributes are not sent in a Set-Cookie header.
Instead the domain attribute is dropped which turns the cookie
into a host-only cookie. This is much safer than dropping characters
from domain attribute.

Domain attributes with a leading dot '.' are still allowed, even
if discouraged by RFC 6265 section 4.1.1.


Fixes issue 6013

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

Committer: Brad Fitzpatrick <bradfitz@golang.org>
cmd/gc: support for "portable" optimization logic

Code in gc/popt.c is compiled as part of 5g, 6g, and 8g,
meaning it can use arch-specific headers but there's
just one copy of the code.

This is the same arrangement we use for the portable
code generation logic in gc/pgen.c.

Move fixjmp and noreturn there to get the ball rolling.

R=ken2
CC=golang-dev
https://codereview.appspot.com/12789043
cmd/6g, cmd/8g: proginfo carry fixes

Bugs pointed out by cshapiro in CL 12637051.

R=cshapiro
CC=golang-dev
https://codereview.appspot.com/12815043
text/template: Make function call builtin handle nil errors correctly

The call builtin unconditionally tries to convert a second return value from a function to the error type. This fails in case nil is returned, effectively making call useless for functions returning two values.

This CL adds a nil check for the second return value, and adds a test.

Note that for regular function and method calls the nil error case is handled correctly and is verified by a test.

R=r
CC=golang-dev
https://codereview.appspot.com/12804043

Committer: Rob Pike <r@golang.org>
go/build: change the wording of NoGoError and comment it better
Out of context, it can be very confusing because there can be lots of Go
files in the directory, but the error message says there aren't.

R=golang-dev, dsymonds, rsc
CC=golang-dev
https://codereview.appspot.com/12823043
cmd/gc: move flow graph into portable opt

Now there's only one copy of the flow graph construction
and dominator computation, and different optimizations
can attach different annotations to the instructions.

R=ken2
CC=golang-dev
https://codereview.appspot.com/12797045
cmd/6l: fix printing of frame size in TEXT instruction

R=ken2
CC=golang-dev
https://codereview.appspot.com/12827043
cmd/api: don't fail API check if there's no network

If the hg checkout of go.tools fails, check for Internet
connectivity before failing.

R=golang-dev, shivakumar.gn
CC=golang-dev
https://codereview.appspot.com/12814043
doc/go1.2.txt: bufio.{Writer,Reader}.Reset

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