misc/emacs: Add tab completion for godoc command, completing from known installed packages

R=golang-dev, adonovan, bradfitz, cw, patrick.allen.higgins, sameer, ugorji
CC=golang-dev
https://codereview.appspot.com/7373051

Committer: Alan Donovan <adonovan@google.com>
spec: cyclic imports are illegal

Fixes issue 4976.

R=r
CC=golang-dev
https://codereview.appspot.com/7421050
spec: terminating statements for functions

The only functional change is the new section
on terminating statements.

There is a minor syntax rewrite (not change)
of function declarations to make it easier to
refer to the notion of a function from all places
where it is used (function decls, method decls,
and function literals).

Includes some minor fixes/additions of missing links.

Based closely on Russ' proposal.

Fixes issue 65.

R=rsc, r, iant, ken, bradfitz
CC=golang-dev
https://codereview.appspot.com/7415050
cmd/gc: implement new return requirements

Fixes issue 65.

R=ken2
CC=golang-dev
https://codereview.appspot.com/7441049
go/types: "missing return" check

Implementation closely based on Russ' CL 7440047.

Future work: The error messages could be better
(e.g., instead of "missing return" it might say
"missing return (no default in switch)", etc.).

R=adonovan, rsc
CC=golang-dev
https://codereview.appspot.com/7437049
vet: clean up taglit error print when typechecking fails.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/7416050
text/template/parse: remove self-assignment.

R=golang-dev, adg
CC=golang-dev
https://codereview.appspot.com/7431054
runtime: restrict stack root scan to locals and arguments

R=rsc
CC=golang-dev
https://codereview.appspot.com/7301062
runtime: declare addtimer/deltimer in runtime.h
In preparation for integrated network poller
(https://codereview.appspot.com/7326051),
this is required to handle deadlines.

R=golang-dev, remyoudompheng, rsc
CC=golang-dev
https://codereview.appspot.com/7446047
runtime: fix false positive deadlock when using runtime.Goexit
Fixes issue 4893.
Actually it's fixed by cl/7314062 (improved scheduler),
just submitting the test.

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7422054
runtime: add atomic xchg64
It will be handy for network poller.

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7429048
syscall: handle getsockname for unix sockets on openbsd 5.2

On OpenBSD 5.2, calling getsockname on an unbound Unix domain socket
results in a successful syscall, however the AF is unset and the length
is returned as zero. This has been changed to more portable behaviour,
which will be included in the OpenBSD 5.3 release.

For now, work around this by treating a successful getsockname() call
that returns a family of AF_UNSPEC and length of zero as a AF_UNIX
socket.

Makes TestPassFD work on OpenBSD 5.2.

Fixes issue 4956.

R=golang-dev, minux.ma, rsc, mikioh.mikioh
CC=golang-dev
https://codereview.appspot.com/7449046
go/types: add test typechecking std lib

- run time is limited if -short is set
- also added missing TODO to unrelated file return.go

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