]> Cypherpunks repositories - gostls13.git/log
gostls13.git
14 years ago5g/8g, 8l, ld, prof: fix output of 32-bit values
Eoghan Sherry [Sun, 12 Dec 2010 19:40:19 +0000 (14:40 -0500)]
5g/8g, 8l, ld, prof: fix output of 32-bit values

If an %lld argument can be 32 or 64 bits wide, cast to vlong.
If always 32 bits, drop the ll.
Fixes #1336.

R=brainman, rsc
CC=golang-dev
https://golang.org/cl/3580041

14 years agoreflect: rename reflect.ArrayCopy to be reflect.Copy.
Nigel Tao [Sun, 12 Dec 2010 09:27:29 +0000 (20:27 +1100)]
reflect: rename reflect.ArrayCopy to be reflect.Copy.

R=r
CC=golang-dev
https://golang.org/cl/3601041

14 years agogofmt -s -w src
Mikio Hara [Sat, 11 Dec 2010 21:49:45 +0000 (13:49 -0800)]
gofmt -s -w src

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/3592041

14 years agogodoc: first cut at textual search
Robert Griesemer [Fri, 10 Dec 2010 22:40:22 +0000 (14:40 -0800)]
godoc: first cut at textual search

To enable use -fulltext flag; e.g.: godoc -v -fulltext -http=:7777

Enabling the fulltext index will use significantly more memory as
the text of all source code, the respective suffixarray, and the
file set data structure is kept in memory. At the moment there is
about 6Mb of source code (~1400 files) indexed under GOROOT.
Source code + suffix array together consume 5*(size of source) or
about 30Mb. The file set data structure consumes about 4b/src line.
By default only up to 5000 results are shown for now.

The presentation of the results needs tuning. In particular,
if a string is found, clicking on the respective file does not
highlight them, yet.

At the moment, only Go source files are indexed. Eventually,
the full text index should encompass other files as well.

R=rsc, adg
CC=golang-dev
https://golang.org/cl/3182043

14 years agomath: s/MinFloat/SmallestNonzeroFloat/
Russ Cox [Fri, 10 Dec 2010 19:39:09 +0000 (11:39 -0800)]
math: s/MinFloat/SmallestNonzeroFloat/

R=r, gri
CC=golang-dev
https://golang.org/cl/3547042

14 years agocgo: avoid self-interference of global names
Russ Cox [Fri, 10 Dec 2010 19:32:58 +0000 (11:32 -0800)]
cgo: avoid self-interference of global names

Fixes #1332.

R=iant, iant2
CC=golang-dev
https://golang.org/cl/3555041

14 years agonm: silently ignore .o files in .a files
Russ Cox [Fri, 10 Dec 2010 19:32:48 +0000 (11:32 -0800)]
nm: silently ignore .o files in .a files

Update #1334.

R=r
CC=golang-dev
https://golang.org/cl/3553041

14 years agohtml: parse <table><tr><td> tags.
Nigel Tao [Fri, 10 Dec 2010 01:20:14 +0000 (12:20 +1100)]
html: parse <table><tr><td> tags.

Also, shorten fooInsertionMode to fooIM.

R=gri
CC=golang-dev
https://golang.org/cl/3504042

14 years agoos: make MkdirAll work with symlinks
Ryan Hitchman [Thu, 9 Dec 2010 23:43:45 +0000 (10:43 +1100)]
os: make MkdirAll work with symlinks

Fixes #1149.

R=adg
CC=golang-dev
https://golang.org/cl/3564041

14 years agoarm floating point simulation
Ken Thompson [Thu, 9 Dec 2010 22:45:27 +0000 (14:45 -0800)]
arm floating point simulation

R=rsc
CC=golang-dev
https://golang.org/cl/3565041

14 years agohttp: ServeFile to handle Range header for partial requests
Andrew Gerrand [Thu, 9 Dec 2010 21:51:13 +0000 (08:51 +1100)]
http: ServeFile to handle Range header for partial requests
and send Content-Length.

Also includes some testing of the server code.

R=rsc
CC=golang-dev
https://golang.org/cl/2831041

14 years agodashboard: fix project tag filter
Andrew Gerrand [Thu, 9 Dec 2010 21:29:34 +0000 (08:29 +1100)]
dashboard: fix project tag filter

R=rsc
CC=golang-dev
https://golang.org/cl/3439043

14 years agotutorial: a couple of minor fixes.
Rob Pike [Thu, 9 Dec 2010 21:18:31 +0000 (16:18 -0500)]
tutorial: a couple of minor fixes.
Fixes #1333.

R=rsc, gri
CC=golang-dev
https://golang.org/cl/3556041

14 years agoxml: disallow invalid Unicode code points
Nigel Kerr [Thu, 9 Dec 2010 19:51:01 +0000 (14:51 -0500)]
xml: disallow invalid Unicode code points

Fixes #1259.

R=rsc
CC=golang-dev
https://golang.org/cl/2967041

14 years agoA+C: Lorenzo Stoakes, Nigel Kerr (both individual CLA)
Russ Cox [Thu, 9 Dec 2010 19:49:21 +0000 (14:49 -0500)]
A+C: Lorenzo Stoakes, Nigel Kerr (both individual CLA)

R=r
CC=golang-dev, lstoakes, nk
https://golang.org/cl/3549041

14 years agoos: fix test of RemoveAll
Russ Cox [Thu, 9 Dec 2010 19:49:13 +0000 (14:49 -0500)]
os: fix test of RemoveAll

Fixes #22. (again)

R=r
CC=golang-dev
https://golang.org/cl/3547041

14 years agosyscall: add network interface constants for linux/386, linux/amd64
Mikio Hara [Thu, 9 Dec 2010 18:55:59 +0000 (13:55 -0500)]
syscall: add network interface constants for linux/386, linux/amd64

R=rsc
CC=golang-dev
https://golang.org/cl/3266042

14 years agogc: syntax error for incomplete chan type
Ryan Hitchman [Thu, 9 Dec 2010 18:41:24 +0000 (13:41 -0500)]
gc: syntax error for incomplete chan type

Fixes #932.

R=rsc
CC=golang-dev
https://golang.org/cl/3515041

14 years agogo/ast: fix ast.Walk
Robert Griesemer [Thu, 9 Dec 2010 18:22:01 +0000 (10:22 -0800)]
go/ast: fix ast.Walk

- change Walk signature to use an ast.Node instead of interface{}
- add Pos functions to a couple of ast types to make them proper nodes
- explicit nil checks where a node can be nil; incorrect ASTs cause Walk to crash

For now ast.Walk is exercised extensively as part of godoc's indexer;
so we have some confidence in its correctness. But this needs a test,
eventually.

Fixes #1326.

R=rsc, r
CC=golang-dev
https://golang.org/cl/3481043

14 years agogofmt: simplify "x, _ = range y" to "x = range y"
Robert Griesemer [Thu, 9 Dec 2010 18:11:57 +0000 (10:11 -0800)]
gofmt: simplify "x, _ = range y" to "x = range y"

(inspired by CL 3529041 by hitchmanr@gmail.com)

R=rsc
CC=golang-dev
https://golang.org/cl/3527042

14 years agoos/inotify: new package
Balazs Lecz [Thu, 9 Dec 2010 18:11:39 +0000 (13:11 -0500)]
os/inotify: new package

This patch adds a new package: os/inotify, which
provides a Go wrapper to the Linux inotify system.

R=rsc, albert.strasheim, rog, jacek.masiulaniec
CC=golang-dev
https://golang.org/cl/2049043

14 years agogo/token,scanner: fix comments so godoc aligns properly
Robert Griesemer [Thu, 9 Dec 2010 18:11:00 +0000 (10:11 -0800)]
go/token,scanner: fix comments so godoc aligns properly

R=iant, r2
CC=golang-dev
https://golang.org/cl/3532042

14 years agogovet: a new static checker for Go programs.
Rob Pike [Thu, 9 Dec 2010 17:37:18 +0000 (12:37 -0500)]
govet: a new static checker for Go programs.
At the moment, and for the forseeable future, it only checks arguments to print calls.

R=rsc, gri, niemeyer, iant2, rog, lstoakes, jacek.masiulaniec, cw
CC=golang-dev
https://golang.org/cl/3522041

14 years agogob: fix bug sending zero-length top-level slices and maps
Rob Pike [Thu, 9 Dec 2010 16:01:32 +0000 (11:01 -0500)]
gob: fix bug sending zero-length top-level slices and maps
Fixes #1278.

R=rsc
CC=golang-dev
https://golang.org/cl/3434046

14 years agothroughout: simplify two-variable ranges with unused second variable
Ryan Hitchman [Thu, 9 Dec 2010 05:36:56 +0000 (21:36 -0800)]
throughout: simplify two-variable ranges with unused second variable

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/3529041

14 years agoevent.go: another print glitch from gocheck.
Rob Pike [Wed, 8 Dec 2010 22:12:25 +0000 (17:12 -0500)]
event.go: another print glitch from gocheck.

R=rsc
CC=golang-dev
https://golang.org/cl/3524041

14 years agodoc: fix invalid id attribute in faq
Andrew Gerrand [Wed, 8 Dec 2010 21:59:29 +0000 (08:59 +1100)]
doc: fix invalid id attribute in faq

R=r
CC=golang-dev
https://golang.org/cl/3516042

14 years agoarm: more fixes
Russ Cox [Wed, 8 Dec 2010 21:49:49 +0000 (16:49 -0500)]
arm: more fixes

R=ken2
CC=golang-dev
https://golang.org/cl/3523041

14 years agoruntime/cgo: adapt files copied from libcgo
Russ Cox [Wed, 8 Dec 2010 21:35:05 +0000 (16:35 -0500)]
runtime/cgo: adapt files copied from libcgo

Necessary but not sufficient step toward
making those builds work.

R=r
CC=golang-dev
https://golang.org/cl/3411043

14 years agoa few more errors caught by the print checker
Rob Pike [Wed, 8 Dec 2010 21:25:14 +0000 (16:25 -0500)]
a few more errors caught by the print checker

R=rsc
CC=golang-dev
https://golang.org/cl/3431046

14 years ago5l (and 6l, 8l, ld): more arm build fixes
Russ Cox [Wed, 8 Dec 2010 20:44:59 +0000 (15:44 -0500)]
5l (and 6l, 8l, ld): more arm build fixes

R=ken2
CC=golang-dev
https://golang.org/cl/3521041

14 years ago5l: fix build
Russ Cox [Wed, 8 Dec 2010 20:37:51 +0000 (15:37 -0500)]
5l: fix build

Makes 5l build with recent changes, but not yet tested on ARM hardware.

R=ken2
CC=golang-dev
https://golang.org/cl/3449044

14 years ago crypto/elliptic: remove mistakenly commited code
Adam Langley [Wed, 8 Dec 2010 20:01:53 +0000 (15:01 -0500)]
crypto/elliptic: remove mistakenly commited code

        One of my own experiments ended up getting mistakenly commited when
        switching to Jacobian transformations.

R=rsc
CC=golang-dev
https://golang.org/cl/3473044

14 years agofix build: more libcgo references
Russ Cox [Wed, 8 Dec 2010 19:36:45 +0000 (14:36 -0500)]
fix build: more libcgo references

R=r
CC=golang-dev
https://golang.org/cl/3448043

14 years agolibcgo: delete (replaced by runtime/cgo)
Russ Cox [Wed, 8 Dec 2010 19:33:17 +0000 (14:33 -0500)]
libcgo: delete (replaced by runtime/cgo)

Move unported files (freebsd*, windows*, nacl*) to runtime/cgo.

Step toward fixing FreeBSD build.

R=r
TBR=r
CC=golang-dev
https://golang.org/cl/3497042

14 years agosyscall: fix linux/arm build
Russ Cox [Wed, 8 Dec 2010 19:31:46 +0000 (14:31 -0500)]
syscall: fix linux/arm build

bug introduced at
https://golang.org/cl/2331044

R=ken2
CC=golang-dev
https://golang.org/cl/3440046

14 years agoruntime/cgo: take 2
Russ Cox [Wed, 8 Dec 2010 19:10:00 +0000 (14:10 -0500)]
runtime/cgo: take 2

This is a second attempt at submitting
https://golang.org/cl/3420043

A Mercurial problem lost the new files
in that submit.

TBR=r
CC=golang-dev
https://golang.org/cl/3511043

14 years agocgo: new cgo
Russ Cox [Wed, 8 Dec 2010 18:56:51 +0000 (13:56 -0500)]
cgo: new cgo

Very few changes here: the subtle ones are in Make.pkg.

Note that incredibly (and importantly) there are
no changes necessary to the test programs in misc/cgo.

R=iant
CC=golang-dev
https://golang.org/cl/3504041

14 years ago6l, 8l: support for linking ELF and Mach-O .o files
Russ Cox [Wed, 8 Dec 2010 18:56:43 +0000 (13:56 -0500)]
6l, 8l: support for linking ELF and Mach-O .o files

More support for references to dynamic symbols,
including full GOT and PLT for ELF objects.

For Mach-O everything ends up in the GOT: dealing
with the real lazy PLT is too hard for now so we punt.

R=iant, iant2
CC=golang-dev
https://golang.org/cl/3491042

14 years agoruntime/cgo: runtime changes for new cgo
Russ Cox [Wed, 8 Dec 2010 18:53:30 +0000 (13:53 -0500)]
runtime/cgo: runtime changes for new cgo

Formerly known as libcgo.
Almost no code here is changing; the diffs
are shown relative to the originals in libcgo.

R=r
CC=golang-dev
https://golang.org/cl/3420043

14 years agold: reading of Mach-O object files
Russ Cox [Wed, 8 Dec 2010 18:53:24 +0000 (13:53 -0500)]
ld: reading of Mach-O object files

R=iant
CC=golang-dev
https://golang.org/cl/3431045

14 years agodebug/elf, debug/macho: add ImportedLibraries, ImportedSymbols
Russ Cox [Wed, 8 Dec 2010 18:53:19 +0000 (13:53 -0500)]
debug/elf, debug/macho: add ImportedLibraries, ImportedSymbols

R=r, iant
CC=golang-dev
https://golang.org/cl/3470044

14 years agogopack: allow ELF/Mach-O objects in .a files without clearing allobj
Russ Cox [Wed, 8 Dec 2010 18:53:13 +0000 (13:53 -0500)]
gopack: allow ELF/Mach-O objects in .a files without clearing allobj

R=iant
CC=golang-dev
https://golang.org/cl/3503041

14 years ago6l, 8l: minor changes & cleanup
Russ Cox [Wed, 8 Dec 2010 18:53:07 +0000 (13:53 -0500)]
6l, 8l: minor changes & cleanup

R=ken2, ken3
CC=golang-dev
https://golang.org/cl/3505041

14 years agold: reading of ELF object files
Russ Cox [Wed, 8 Dec 2010 18:52:59 +0000 (13:52 -0500)]
ld: reading of ELF object files

R=iant
CC=golang-dev
https://golang.org/cl/3507041

14 years agold: re-add ELF symbol tables
Russ Cox [Wed, 8 Dec 2010 18:52:50 +0000 (13:52 -0500)]
ld: re-add ELF symbol tables

R=iant
CC=golang-dev
https://golang.org/cl/3506041

14 years agopath: fix printf glitch in test
Rob Pike [Wed, 8 Dec 2010 14:58:46 +0000 (09:58 -0500)]
path: fix printf glitch in test

R=rh, gri
CC=golang-dev
https://golang.org/cl/3514041

14 years agodoc: fix installation $GOOS choices
Peter Mundy [Wed, 8 Dec 2010 09:27:45 +0000 (20:27 +1100)]
doc: fix installation $GOOS choices

The $GOOS choices text and combinations list should match.

R=adg
CC=golang-dev
https://golang.org/cl/3485046

14 years agogodoc: use file instead of file set for computing line info
Robert Griesemer [Wed, 8 Dec 2010 05:55:32 +0000 (21:55 -0800)]
godoc: use file instead of file set for computing line info

Reduces indexing time by ~10%; from ~44s to ~39s, best of 3 runs.

R=rsc
CC=golang-dev
https://golang.org/cl/3510041

14 years agotoken/position.go: provide FileSet.File(), minor optimizations
Robert Griesemer [Wed, 8 Dec 2010 05:50:08 +0000 (21:50 -0800)]
token/position.go: provide FileSet.File(), minor optimizations

R=rsc
CC=golang-dev
https://golang.org/cl/3399042

14 years agosyscall: restrict access rights param of OpenProcess() to the minimum needed
Alex Brainman [Wed, 8 Dec 2010 05:20:30 +0000 (16:20 +1100)]
syscall: restrict access rights param of OpenProcess() to the minimum needed

Fixes #1270.

R=vcc, rsc
CC=golang-dev
https://golang.org/cl/3299041

14 years agotag release.2010-12-08
Andrew Gerrand [Wed, 8 Dec 2010 03:30:44 +0000 (14:30 +1100)]
tag release.2010-12-08

R=rsc
CC=golang-dev
https://golang.org/cl/3426042

14 years agorelease.2010-12-08 weekly.2010-12-08
Andrew Gerrand [Wed, 8 Dec 2010 03:24:35 +0000 (14:24 +1100)]
release.2010-12-08

R=rsc
CC=golang-dev
https://golang.org/cl/3463043

14 years agoruntime: fix windows build
Alex Brainman [Wed, 8 Dec 2010 01:52:36 +0000 (12:52 +1100)]
runtime: fix windows build

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/3419043

14 years agoruntime: add Goroutines
Keith Rarick [Tue, 7 Dec 2010 23:06:31 +0000 (18:06 -0500)]
runtime: add Goroutines

R=rsc
CC=golang-dev
https://golang.org/cl/3508041

14 years agold: fix dwarf decoding of 64-bit reflect values
Eoghan Sherry [Tue, 7 Dec 2010 22:20:52 +0000 (17:20 -0500)]
ld: fix dwarf decoding of 64-bit reflect values

R=rsc
CC=golang-dev
https://golang.org/cl/3002041

14 years agoruntime: debugging help on 386
Russ Cox [Tue, 7 Dec 2010 22:19:36 +0000 (17:19 -0500)]
runtime: debugging help on 386

R=r
CC=golang-dev
https://golang.org/cl/3502041

14 years agohtml: handle unexpected EOF during parsing.
Nigel Tao [Tue, 7 Dec 2010 21:59:20 +0000 (08:59 +1100)]
html: handle unexpected EOF during parsing.

This lets us parse HTML like "<html>foo".

R=gri
CC=golang-dev
https://golang.org/cl/3460043

14 years agocc: allow $ as letter in pragma arguments
Russ Cox [Tue, 7 Dec 2010 21:45:06 +0000 (16:45 -0500)]
cc: allow $ as letter in pragma arguments

(Needed for Mac OS X symbol names.)

R=ken2
CC=golang-dev
https://golang.org/cl/3499041

14 years agogo/parser: Better comment for ParseFile.
Robert Griesemer [Tue, 7 Dec 2010 21:44:01 +0000 (13:44 -0800)]
go/parser: Better comment for ParseFile.

The name ParseFile was kept as it indicates that
this function parses a Go 'SourceFile' per the
Go spec. Similarly, the other functions (ParseExpr,
ParseStmtList, ParseDeclList) parse the corresponding
constructs as defined in the Go spec.

Fixes #1311.

R=r, rsc
CC=golang-dev
https://golang.org/cl/3453042

14 years agothroughout: fix broken calls to Printf etc.
Rob Pike [Tue, 7 Dec 2010 21:42:54 +0000 (16:42 -0500)]
throughout: fix broken calls to Printf etc.
I have written a tool to verify Printf calls, and although it's not
ready to be reviewed yet it's already uncovered a spate of problems
in the repository.  I'm sending this CL to break the changes into
pieces; as the tool improves it will find more, I'm sure.

R=rsc
CC=golang-dev
https://golang.org/cl/3427043

14 years agodoc: add link to WindowsPort page from install.html
Andrew Gerrand [Tue, 7 Dec 2010 21:31:26 +0000 (08:31 +1100)]
doc: add link to WindowsPort page from install.html

R=r
CC=golang-dev
https://golang.org/cl/3442042

14 years agohttp: fix build
Russ Cox [Tue, 7 Dec 2010 21:20:15 +0000 (16:20 -0500)]
http: fix build

R=dsymonds
TBR=dsymonds
CC=golang-dev
https://golang.org/cl/3425044

14 years agogc: skip undefined symbols in import .
Eoghan Sherry [Tue, 7 Dec 2010 21:16:01 +0000 (16:16 -0500)]
gc: skip undefined symbols in import .

Fixes #1284.

R=ken3, rsc
CC=golang-dev
https://golang.org/cl/3210041

14 years agocrypto/tls: add *Config argument to Dial
Russ Cox [Tue, 7 Dec 2010 21:15:15 +0000 (16:15 -0500)]
crypto/tls: add *Config argument to Dial

Document undocumented exported names.
Allow nil Rand, Time, RootCAs in Config.

Fixes #1248.

R=agl1
CC=golang-dev
https://golang.org/cl/3481042

14 years agocrypto/tls: fix build of certificate generation example
Christian Himpel [Tue, 7 Dec 2010 21:14:55 +0000 (16:14 -0500)]
crypto/tls: fix build of certificate generation example

R=agl1, rsc
CC=golang-dev
https://golang.org/cl/3366041

14 years agoCONTRIBUTORS: add alias chressie@googlemail.com == chressie@gmail.com
Russ Cox [Tue, 7 Dec 2010 21:14:45 +0000 (16:14 -0500)]
CONTRIBUTORS: add alias chressie@googlemail.com == chressie@gmail.com

R=r
CC=golang-dev
https://golang.org/cl/3485044

14 years agoexec.LookPath: return os.PathError instad of os.ENOENT, it's more descriptive.
Michael Hoisie [Tue, 7 Dec 2010 20:57:00 +0000 (15:57 -0500)]
exec.LookPath: return os.PathError instad of os.ENOENT, it's more descriptive.

R=rsc
CC=golang-dev
https://golang.org/cl/3448042

14 years agohtml: move the sanity checking of the entity map from runtime
Nigel Tao [Tue, 7 Dec 2010 20:55:03 +0000 (07:55 +1100)]
html: move the sanity checking of the entity map from runtime
(during init) to test-time (via gotest).

R=gri
CC=golang-dev
https://golang.org/cl/3466044

14 years agohttp: Add EncodeQuery, a handy helper function for constructing URL query strings.
David Symonds [Tue, 7 Dec 2010 20:54:04 +0000 (15:54 -0500)]
http: Add EncodeQuery, a handy helper function for constructing URL query strings.

R=stephenm, rsc
CC=golang-dev
https://golang.org/cl/2985042

14 years ago8l : add dynimport to import table in Windows PE, initial make cgo dll work.
Wei Guangjing [Tue, 7 Dec 2010 20:28:33 +0000 (15:28 -0500)]
8l : add dynimport to import table in Windows PE, initial make cgo dll work.

R=rsc, brainman, Joe Poirier, mattn
CC=golang-dev
https://golang.org/cl/2166041

14 years agobuild: Allow archiver to be specified in the environment with HOST_AR.
Albert Strasheim [Tue, 7 Dec 2010 20:28:26 +0000 (15:28 -0500)]
build: Allow archiver to be specified in the environment with HOST_AR.

R=rsc
CC=golang-dev
https://golang.org/cl/2515043

14 years agoerrchk: accept multiple source files
Eoghan Sherry [Tue, 7 Dec 2010 20:28:21 +0000 (15:28 -0500)]
errchk: accept multiple source files

R=rsc, iant
CC=golang-dev
https://golang.org/cl/3217042

14 years agobufio: make Reader.Read implement io.Reader semantics
Roger Peppe [Tue, 7 Dec 2010 19:54:15 +0000 (14:54 -0500)]
bufio: make Reader.Read implement io.Reader semantics

R=rsc
CC=golang-dev
https://golang.org/cl/3395042

14 years agosyscall, net: Add Recvmsg and Sendmsg on Linux.
Albert Strasheim [Tue, 7 Dec 2010 18:40:14 +0000 (13:40 -0500)]
syscall, net: Add Recvmsg and Sendmsg on Linux.

Working on issue 1101.

R=rsc
CC=golang-dev
https://golang.org/cl/2331044

14 years agoflag: handle multiple calls to flag.Parse
Russ Cox [Tue, 7 Dec 2010 18:19:01 +0000 (13:19 -0500)]
flag: handle multiple calls to flag.Parse

R=r
CC=golang-dev
https://golang.org/cl/3071041

14 years agogo/scanner: remove Tokenize() - was only used in tests
Robert Griesemer [Tue, 7 Dec 2010 18:08:00 +0000 (10:08 -0800)]
go/scanner: remove Tokenize() - was only used in tests

R=r
CC=golang-dev
https://golang.org/cl/3415042

14 years agogc: fix method offsets of anonymous interfaces
Eoghan Sherry [Tue, 7 Dec 2010 17:56:26 +0000 (12:56 -0500)]
gc: fix method offsets of anonymous interfaces

Fixes #1290.

R=rsc
CC=golang-dev
https://golang.org/cl/3259043

14 years agosync: small naming fix for armv5
Dean Prichard [Tue, 7 Dec 2010 17:05:00 +0000 (12:05 -0500)]
sync: small naming fix for armv5

R=rsc
CC=golang-dev
https://golang.org/cl/3268042

14 years agoruntime: fix build for nacl
Andrew Gerrand [Tue, 7 Dec 2010 04:24:46 +0000 (15:24 +1100)]
runtime: fix build for nacl

R=lvd
CC=golang-dev
https://golang.org/cl/3391044

14 years agohtml: unescape numeric entities, and complete the named entities table, including...
Ryan Hitchman [Tue, 7 Dec 2010 01:13:47 +0000 (12:13 +1100)]
html: unescape numeric entities, and complete the named entities table, including two-character entities.

Fixes #1233.

R=nigeltao
CC=golang-dev
https://golang.org/cl/3445041

14 years agohtml: first cut at a parser.
Nigel Tao [Tue, 7 Dec 2010 01:02:36 +0000 (12:02 +1100)]
html: first cut at a parser.

R=gri
CC=golang-dev
https://golang.org/cl/3355041

14 years agogodoc: don't call flush if position is not valid
Robert Griesemer [Mon, 6 Dec 2010 23:34:23 +0000 (15:34 -0800)]
godoc: don't call flush if position is not valid
(fixes new godoc crash when looking at spec)

R=rsc, r, iant
CC=golang-dev
https://golang.org/cl/3488041

14 years ago go/ast: use token.Pos instead of token.Position; adjust all dependent code
Robert Griesemer [Mon, 6 Dec 2010 22:23:18 +0000 (14:23 -0800)]
go/ast: use token.Pos instead of token.Position; adjust all dependent code

Specifically:

* lib/godoc:
- provide file set (FSet) argument to formatters where needed

* src/cmd:
- cgo, ebnflint, godoc, gofmt, goinstall: provide file set (fset) where needed
- godoc: remove local binary search with sort.Search (change by rsc),
  extract file set for formatters

* src/pkg:
- exp/eval: remove embedded token.Position fields from nodes and replace
  with named token.Pos fields; add corresponding Pos() accessor methods
- go/token: added file.Line(), changed signature of File.Position()

* test/fixedbugs/:
- bug206.go: change test to not rely on token.Pos details

* added various extra comments
* Runs all.bash
* gofmt formats all of src, misc w/o changes
* godoc runs

* performance:
- The new version of godoc consumes about the same space after indexing
  has completed, but indexing is half the speed. Significant space savings
  are expected from smaller ASTs, but since they are thrown away after a
  file has been indexed, this is not visible anymore. The slower indexing
  time is due to the much more expensive computation of line information.
  However, with the new compressed position information, indexing can be
  rewritten and simplified. Furthermore, computing the line info can be
  done more efficiently.

        New godoc, immediately after indexing completed (best of three runs):

  PID COMMAND      %CPU   TIME   #TH #PRTS #MREGS RPRVT  RSHRD  RSIZE  VSIZE
44381 godoc        0.0%  0:38.00   4    19    149  145M   184K   148M   176M

2010/12/03 17:58:35 index updated (39.231s, 18505 unique words, 386387 spots)
2010/12/03 17:58:35 bytes=90858456 footprint=199182584
2010/12/03 17:58:36 bytes=47858568 footprint=167295224

Old godoc, immediately after indexing completed (best of three runs):

  PID COMMAND      %CPU   TIME   #TH #PRTS #MREGS RPRVT  RSHRD  RSIZE  VSIZE
23167 godoc        0.0%  0:22.02   4    17    132  129M   184K   132M   173M

2010/12/03 14:51:32 index updated (24.892s, 18765 unique words, 393830 spots)
2010/12/03 14:51:32 bytes=66404528 footprint=163907832
2010/12/03 14:51:32 bytes=46282224 footprint=163907832

The different numbers for unique words/spots stem from the fact the the
two workspaces are not exactly identical. The new godoc maintains a large
file set data structure during indexing which (probably) is the reason
for the larger heap (90858456 vs 66404528) before garbage collection.

R=rsc, r
CC=golang-dev
https://golang.org/cl/3050041

14 years agonet: fix TestDialGoogle
Russ Cox [Mon, 6 Dec 2010 22:07:36 +0000 (14:07 -0800)]
net: fix TestDialGoogle

TBR=r
CC=golang-dev
https://golang.org/cl/3417042

14 years ago8l, runtime: fix Plan 9 386 build.
Yuval Pavel Zholkover [Mon, 6 Dec 2010 21:38:28 +0000 (16:38 -0500)]
8l, runtime: fix Plan 9 386 build.
8l was broken by commit 7ac0d2eed9, it caused .data to be page aligned in the file - which is not how Plan 9 expects things to be.
Also .rodata was layed out in a similar fashion.

Not sure when signame was introduced, but added a stub.
Removed the symo assignment in asm.c as it is not currently used.

Fix runtime breakage after commit 629c065d36 which prefixes all external symbols with runtimeĀ·.

R=rsc
CC=golang-dev
https://golang.org/cl/2674041

14 years agoLICENSE: separate, change PATENTS text
Russ Cox [Mon, 6 Dec 2010 21:31:59 +0000 (16:31 -0500)]
LICENSE: separate, change PATENTS text

Split patent grant clause out of LICENSE file
and update text to be more like that used by WebM.
These changes should make Go more acceptable
to the Fedora project and they are acceptable to the FSF.

R=iant
CC=golang-dev
https://golang.org/cl/3103042

14 years agomath: improve accuracy of Exp2
Eoghan Sherry [Mon, 6 Dec 2010 21:24:51 +0000 (16:24 -0500)]
math: improve accuracy of Exp2

Note:
* Exp2 doesn't have a special case for very small arguments
* Exp2 hasn't been subject to a proper error analysis

Also:
* add tests for Exp2 with integer argument
* always test Go versions of Exp and Exp2

R=rsc
CC=Charlie Dorian, PeterGo, golang-dev
https://golang.org/cl/3481041

14 years agotime: fix build
Russ Cox [Mon, 6 Dec 2010 21:22:32 +0000 (16:22 -0500)]
time: fix build

Allow less precise timing on build machines.

TBR=r
CC=golang-dev
https://golang.org/cl/3391043

14 years agouse the new %U format for runes
Rob Pike [Mon, 6 Dec 2010 19:38:25 +0000 (14:38 -0500)]
use the new %U format for runes

R=rsc
CC=golang-dev
https://golang.org/cl/3483041

14 years agonetchan: fix dumb locking bug introduced in recent editing.
Rob Pike [Mon, 6 Dec 2010 19:29:05 +0000 (14:29 -0500)]
netchan: fix dumb locking bug introduced in recent editing.
-found by Dave Cheney

R=rsc
CC=golang-dev
https://golang.org/cl/3460042

14 years agoflag: fix format error in boolean error report. just use %q; the values are strings.
Rob Pike [Mon, 6 Dec 2010 19:23:52 +0000 (14:23 -0500)]
flag: fix format error in boolean error report. just use %q; the values are strings.

R=rsc
CC=golang-dev
https://golang.org/cl/3418043

14 years agofmt: add %U format for standard Unicode representation of integer values.
Rob Pike [Mon, 6 Dec 2010 19:23:37 +0000 (14:23 -0500)]
fmt: add %U format for standard Unicode representation of integer values.
fmt.Printf("%U", 1) yields "U+0001"
It's essentially "U+%.4x" but lets you override the precision works in scan, too.

R=rsc
CC=golang-dev
https://golang.org/cl/3423043

14 years agotime: make After use fewer goroutines and host processes.
Roger Peppe [Mon, 6 Dec 2010 19:19:30 +0000 (14:19 -0500)]
time: make After use fewer goroutines and host processes.
With credit to Gustavo Niemeyer, who hinted at this approach
in #go-nuts.

R=adg, rsc, niemeyer, r
CC=golang-dev
https://golang.org/cl/3416043

14 years agobytes: add Buffer.UnreadRune, Buffer.UnreadByte
Roger Peppe [Mon, 6 Dec 2010 19:10:10 +0000 (14:10 -0500)]
bytes: add Buffer.UnreadRune, Buffer.UnreadByte

R=rsc, r
CC=golang-dev
https://golang.org/cl/3421041

14 years agobuilder: Allow buildroot to be passed as command-line argument
Devon H. O'Dell [Sun, 5 Dec 2010 23:34:39 +0000 (10:34 +1100)]
builder: Allow buildroot to be passed as command-line argument

R=adg
CC=golang-dev
https://golang.org/cl/3473041

14 years agoA+C: add Ryan Hitchman.
Nigel Tao [Sun, 5 Dec 2010 22:20:39 +0000 (09:20 +1100)]
A+C: add Ryan Hitchman.

R=adg, r2
CC=golang-dev
https://golang.org/cl/3430042

14 years agodoc/install: describe GOHOSTOS and GOHOSTARCH
Andrew Gerrand [Sun, 5 Dec 2010 03:04:15 +0000 (12:04 +0900)]
doc/install: describe GOHOSTOS and GOHOSTARCH

Fixes #1303.

R=rsc, PeterGo
CC=golang-dev
https://golang.org/cl/3442041

14 years ago[68]l: generate debug info for builtin structured types. prettyprinting in gdb.
Luuk van Dijk [Fri, 3 Dec 2010 18:19:33 +0000 (19:19 +0100)]
[68]l: generate debug info for builtin structured types.  prettyprinting in gdb.

R=rsc
CC=golang-dev
https://golang.org/cl/3309041

14 years agogodoc: add separators between quick reference topics
Andrew Gerrand [Fri, 3 Dec 2010 03:37:55 +0000 (14:37 +1100)]
godoc: add separators between quick reference topics

R=bradfitz, dangabrad
CC=golang-dev
https://golang.org/cl/3433042