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
exp/types: set non-embedded method type during GcImport.

R=golang-dev, gri
CC=golang-dev
http://codereview.appspot.com/6445068

Committer: Robert Griesemer <gri@golang.org>
html: make the low-level tokenizer also skip end-tag attributes.

R=andybalholm
CC=golang-dev
http://codereview.appspot.com/6453071
exp/html: in parse tests, discard only one trailing newline

Pass 2 additional tests.

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

Committer: Nigel Tao <nigeltao@golang.org>
go/ast: ast.Print must not crash with unexported fields

Don't print unexported struct fields; their values are
not accessible via reflection.

Fixes issue 3898.

Also:
- added support for arrays
- print empty maps, arrays, slices, structs on one line
  for a denser output
- added respective test cases

R=r
CC=golang-dev
http://codereview.appspot.com/6454089
go/scanner: fix minor typo

R=r
CC=golang-dev
http://codereview.appspot.com/6442076
os: test that IsExist and IsNotExist handle PathError and LinkError

R=golang-dev, r
CC=golang-dev
http://codereview.appspot.com/6442080
exp/locale/collate: changed API of Builder to be more convenient
for dealing with CLDR files:
- Add now taxes a list of indexes of colelems that are variables. Checking and
  handling is now done by the Builder.  VariableTop is now also properly generated
  using the Build method.
- Introduced separate Builder, called Tailoring, for creating tailorings of root
  table.  This clearly separates the functionality for building a table based on
  weights (the allkeys* files) versus tables based on LDML XML files.
- Tailorings are now added by two calls instead of one: SetAnchor and Insert.
  This more closely reflects the structure of LDML side and simplifies the
  implementation of both the client and library side.  It also preserves
  some information that is otherwise hard to recover for the Builder.
- Allow the LDML XML element extend to be passed to Insert.  This simplifies
  both client and library implementation.

R=r
CC=golang-dev
http://codereview.appspot.com/6454061
crypto/x509: support ECDSA keys when generating certificates.

We already support reading ECDSA certificates and this change adds
write support.

R=golang-dev, bradfitz, rsc
CC=golang-dev
http://codereview.appspot.com/6422046
crypto/tls: remove flakey tests

This removes some (non-short only) tests that involved connections to
the outside world and thus were flakey. This does remove some test
coverage of the root fetchers on non-Windows platforms, but the right
place for that is crypto/x509.

R=golang-dev, krautz, rsc
CC=golang-dev
http://codereview.appspot.com/6455085
go/build: tiny cleanup

R=rsc
CC=golang-dev
http://codereview.appspot.com/6453083
debug/elf: Add support for getting DynTag string table values.

R=rsc
CC=golang-dev
http://codereview.appspot.com/6430064

Committer: Russ Cox <rsc@golang.org>
cmd/ld: add PT_PAX_FLAGS ELF header

PAX systems are Linux systems that are more paranoid about memory permissions.
These flags tell them to relax when running Go binaries.

Fixes issue 47.

R=iant
CC=golang-dev
http://codereview.appspot.com/6326054
crypto/elliptic: explicitly handle P+P, ∞+P and P+∞

These aren't needed for scalar multiplication, but since we export a
generic Add function we should handle it.

This change also corrects two bugs in p224Contract that it turned up.

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/6458076
cmd/gc: accept switches on comparable arrays.

The compiler is incorrectly rejecting switches on arrays of
comparable types. It also doesn't catch incomparable structs
when typechecking the switch, leading to unreadable errors
during typechecking of the generated code.

Fixes issue 3894.

R=rsc
CC=gobot, golang-dev, r, remy
http://codereview.appspot.com/6442074
cmd/8g: fix miscompilation due to BADWIDTH.

Fixes issue 3899.

R=rsc
CC=golang-dev, remy
http://codereview.appspot.com/6453084
5a, 5l, math: Add support for ABSD, ABSF floating point instructions.

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

Committer: Russ Cox <rsc@golang.org>
cmd/go, go/build, misc/swig: add SWIG support to Go tool

R=adg, rsc, franciscossouza, seb.binet, gen.battle
CC=golang-dev
http://codereview.appspot.com/5845071
cmd/cc: allow to call nested packages from within C code
E.g. sync/atomic.LoadInt32() can be called as sync»atomic·LoadInt32()

R=rsc
CC=golang-dev
http://codereview.appspot.com/6448057
cmd/go: allow to use syso files with cgo
I have C functions implemented in .syso file (rather than .so or inlined in .go file).
W/o this change the gcc invocation fails with undefined symbols.

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