]> Cypherpunks repositories - gostls13.git/log
gostls13.git
15 years ago...T is now implemented
Rob Pike [Tue, 2 Feb 2010 02:59:23 +0000 (18:59 -0800)]
...T  is now implemented

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

15 years agoupdate printer tests to use new syntax
Robert Griesemer [Tue, 2 Feb 2010 01:51:55 +0000 (17:51 -0800)]
update printer tests to use new syntax

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

15 years agoio: revised Pipe implementation
Russ Cox [Tue, 2 Feb 2010 01:43:15 +0000 (17:43 -0800)]
io: revised Pipe implementation

* renamed channels to say what gets sent
* use channel closed status instead of racy check of boolean

R=nigeltao_golang
CC=golang-dev
https://golang.org/cl/196065

15 years agoallow any scalar type in xml.Unmarshal.
Rob Pike [Tue, 2 Feb 2010 00:53:10 +0000 (11:53 +1100)]
allow any scalar type in xml.Unmarshal.

Fixes #574.

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

15 years agoMatch gccgo error messages.
Ian Lance Taylor [Tue, 2 Feb 2010 00:35:23 +0000 (16:35 -0800)]
Match gccgo error messages.

import1.go:12:8: error: redefinition of ‘bufio’
import1.go:11:8: note: previous definition of ‘bufio’ was here
import1.go:16:2: error: redefinition of ‘fmt’
import1.go:15:2: note: previous definition of ‘fmt’ was here
import1.go:11:8: error: imported and not used: bufio

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

15 years agoIgnore the temporary files used for improved error messages.
Ian Lance Taylor [Tue, 2 Feb 2010 00:34:25 +0000 (16:34 -0800)]
Ignore the temporary files used for improved error messages.

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

15 years agoFix for gccgo, which uses a package prefix.
Ian Lance Taylor [Tue, 2 Feb 2010 00:26:50 +0000 (16:26 -0800)]
Fix for gccgo, which uses a package prefix.

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

15 years agoMatch gccgo error messages.
Ian Lance Taylor [Tue, 2 Feb 2010 00:25:55 +0000 (16:25 -0800)]
Match gccgo error messages.

I have to admit that "cannot use type p.T as type p.T" is a
bit weak.  8g gives a similar error ("cannot use v1 (type p.T)
as type p.T in assignment").

bug3.go:37:5: error: incompatible type in initialization (incompatible type for method ‘M’ (different parameter types))
bug3.go:38:5: error: incompatible type in initialization (incompatible type for method ‘M’ (different parameter types))
bug3.go:43:5: error: incompatible type in initialization (incompatible type for method ‘M’ (different parameter types))
bug3.go:44:5: error: incompatible type in initialization (incompatible type for method ‘M’ (different parameter types))
bug3.go:49:5: error: incompatible types in assignment (cannot use type p.T as type p.T)
bug3.go:50:5: error: incompatible types in assignment (cannot use type p.T as type p.T)
bug3.go:55:5: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types))
bug3.go:56:5: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types))
bug3.go:57:6: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types))
bug3.go:58:6: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types))
bug3.go:59:5: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types))
bug3.go:60:5: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types))
bug3.go:61:6: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types))
bug3.go:62:6: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types))

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

15 years agogc: final ...T bug for the day
Russ Cox [Tue, 2 Feb 2010 00:22:16 +0000 (16:22 -0800)]
gc: final ...T bug for the day

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

15 years agoCorrected broken assertion.
Robert Griesemer [Tue, 2 Feb 2010 00:14:22 +0000 (16:14 -0800)]
Corrected broken assertion.
Fixes #571.

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

15 years agodon't report a couple of meaningless errors in command-line mode
Robert Griesemer [Tue, 2 Feb 2010 00:13:58 +0000 (16:13 -0800)]
don't report a couple of meaningless errors in command-line mode

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

15 years agoChange type of Printf's args to ... interface{}
Rob Pike [Mon, 1 Feb 2010 23:53:37 +0000 (10:53 +1100)]
Change type of Printf's args to ... interface{}

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

15 years agonacl: fix build, finally fixed 8l convergence bug
Russ Cox [Mon, 1 Feb 2010 23:20:19 +0000 (15:20 -0800)]
nacl: fix build, finally fixed 8l convergence bug

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

15 years agodashboard: avoid seeing cron's sh -c in ps check
Russ Cox [Mon, 1 Feb 2010 19:36:44 +0000 (11:36 -0800)]
dashboard: avoid seeing cron's sh -c in ps check

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

15 years agohttp: test for ReadReqeust
Petar Maymounkov [Mon, 1 Feb 2010 19:23:38 +0000 (11:23 -0800)]
http: test for ReadReqeust

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

15 years agogc: ... T corner cases
Russ Cox [Mon, 1 Feb 2010 18:49:24 +0000 (10:49 -0800)]
gc: ... T corner cases

more to come, but should suffice for Printf work.

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

15 years agolanguage FAQ entry on braces and semicolons
Rob Pike [Mon, 1 Feb 2010 09:45:29 +0000 (20:45 +1100)]
language FAQ entry on braces and semicolons

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

15 years agogc: add ... T, rework plain ...
Russ Cox [Mon, 1 Feb 2010 08:25:59 +0000 (00:25 -0800)]
gc: add ... T, rework plain ...

No longer a distinct type; now a property of func types.

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

15 years agoadd link to go build dashboard.
Rob Pike [Mon, 1 Feb 2010 06:38:26 +0000 (17:38 +1100)]
add link to go build dashboard.
break the list into two pieces

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

15 years agoFix redirection if the page is in a subdirectory.
Rob Pike [Mon, 1 Feb 2010 06:17:25 +0000 (17:17 +1100)]
Fix redirection if the page is in a subdirectory.
Fixes buggy links in the devel subdirectory.
Code from rsc; tested by me.

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

15 years agothe package global name space problem is addressed; update road map
Rob Pike [Mon, 1 Feb 2010 05:59:42 +0000 (16:59 +1100)]
the package global name space problem is addressed; update road map

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

15 years agoFix expected string.
Ian Lance Taylor [Mon, 1 Feb 2010 04:31:15 +0000 (20:31 -0800)]
Fix expected string.

I got it wrong because gccgo was incorrectly failing to clear
the value when a nonblocking receive did not receive
anything.

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

15 years agoMatch gccgo error messages.
Ian Lance Taylor [Sat, 30 Jan 2010 19:38:06 +0000 (11:38 -0800)]
Match gccgo error messages.

bug238.go:11:7: error: invalid constant type
bug238.go:12:7: error: invalid constant type
bug238.go:13:7: error: invalid constant type
bug238.go:14:7: error: invalid constant type
bug238.go:15:7: error: invalid constant type
bug238.go:16:7: error: invalid constant type
bug238.go:17:7: error: invalid constant type

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

15 years agoNew gccgo error message; match both compilers with one string.
Ian Lance Taylor [Sat, 30 Jan 2010 19:31:30 +0000 (11:31 -0800)]
New gccgo error message; match both compilers with one string.

8g:
runtime.go:19: cannot refer to unexported name runtime.printbool

gccgo:
runtime.go:19:10: error: invalid reference to unexported identifier ‘runtime.printbool’

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

15 years agoMatch gccgo error message.
Ian Lance Taylor [Sat, 30 Jan 2010 19:31:06 +0000 (11:31 -0800)]
Match gccgo error message.

bug231.go:20:4: error: incompatible types in assignment (type has no methods)

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

15 years agoRecognize gccgo error messages.
Ian Lance Taylor [Sat, 30 Jan 2010 06:38:39 +0000 (22:38 -0800)]
Recognize gccgo error messages.

bug228.go:11:25: error: invalid use of ‘...’
bug228.go:13:13: error: ‘...’ only permits one name
bug228.go:15:20: error: ‘...’ must be last parameter
bug228.go:17:7: error: expected type
bug228.go:19:8: error: expected type

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

15 years agoCheck gzip strings for NUL elements, since they are NUL-terminated
Nigel Tao [Sat, 30 Jan 2010 01:21:51 +0000 (12:21 +1100)]
Check gzip strings for NUL elements, since they are NUL-terminated
on the wire.

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

15 years agoAdd a GZIP test for the empty payload.
Nigel Tao [Sat, 30 Jan 2010 00:54:39 +0000 (11:54 +1100)]
Add a GZIP test for the empty payload.

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

15 years agohttp: increase header line limit, let req.Host override req.URL.Host
Petar Maymounkov [Sat, 30 Jan 2010 00:51:42 +0000 (16:51 -0800)]
http: increase header line limit, let req.Host override req.URL.Host

Fixes #566.

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

15 years agoLong-overdue update for semicolon change.
Ian Lance Taylor [Sat, 30 Jan 2010 00:37:50 +0000 (16:37 -0800)]
Long-overdue update for semicolon change.

Fixes #485.

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

15 years agoThe gccgo frontend has moved to a new repository.
Ian Lance Taylor [Sat, 30 Jan 2010 00:37:20 +0000 (16:37 -0800)]
The gccgo frontend has moved to a new repository.

Update the documents accordingly.  Also document gccgo
specific options.

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

15 years agofix bug in tick
Rob Pike [Fri, 29 Jan 2010 21:10:33 +0000 (13:10 -0800)]
fix bug in tick

Fixes #576.

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

15 years agomath: Change veryclose to close for Sinh and Exp tests.
Devon H. O'Dell [Fri, 29 Jan 2010 20:54:05 +0000 (12:54 -0800)]
math: Change veryclose to close for Sinh and Exp tests.

Fixes #550.

R=rsc
CC=eds, golang-dev, jtomaschke
https://golang.org/cl/196063

15 years agotwo minor build fixes
Russ Cox [Fri, 29 Jan 2010 02:18:40 +0000 (18:18 -0800)]
two minor build fixes

Fixes #572.
Fixes #570.

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

15 years agomove comment on StringHeader to fix godoc output.
Rob Pike [Fri, 29 Jan 2010 01:43:46 +0000 (12:43 +1100)]
move comment on StringHeader to fix godoc output.

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

15 years agoio: fix nil Write bug in Pipe
Russ Cox [Fri, 29 Jan 2010 01:38:51 +0000 (17:38 -0800)]
io: fix nil Write bug in Pipe

R=nigeltao_golang
CC=golang-dev
https://golang.org/cl/194132

15 years agoadded StringHeader to reflect
Ken Thompson [Fri, 29 Jan 2010 01:14:29 +0000 (17:14 -0800)]
added StringHeader to reflect

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

15 years agoavoid overflow of symb buffer in 5a/6a/8a/5c/6c/8c
Dean Prichard [Fri, 29 Jan 2010 00:11:38 +0000 (16:11 -0800)]
avoid overflow of symb buffer in 5a/6a/8a/5c/6c/8c

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

15 years agogzip deflater (i.e., writer).
Nigel Tao [Fri, 29 Jan 2010 00:00:05 +0000 (11:00 +1100)]
gzip deflater (i.e., writer).

Also, the unused Inflater.eof field was removed.
It has been unused since revision aaa0b24538.
"introduce os.EOF and io.ErrUnexpectedEOF. remove io.ErrEOF."
http://code.google.com/p/go/source/diff?spec=svnaaa0b24538ed1e3e54cbbfdd030a3c35785e74c5&r=aaa0b24538ed1e3e54cbbfdd030a3c35785e74c5&format=side&path=/src/pkg/compress/gzip/gunzip.go

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

15 years agogc: tweak error messages, avoid internalization settings in bison
Russ Cox [Thu, 28 Jan 2010 23:57:44 +0000 (15:57 -0800)]
gc: tweak error messages, avoid internalization settings in bison

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

15 years agohttp: add lexing functions
Petar Maymounkov [Thu, 28 Jan 2010 23:14:54 +0000 (15:14 -0800)]
http: add lexing functions

In particular, add field-value tokenizer which respects quoting rules.
The code is intended for use in tokenizing the Transfer-Encoding and Trailer fields.
The lexing function is not connected to the main parsing code yet (in the next CL).

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

15 years agoCosmetic bug or compliance fixes in http.Response.
Petar Maymounkov [Thu, 28 Jan 2010 23:13:26 +0000 (15:13 -0800)]
Cosmetic bug or compliance fixes in http.Response.

(1) http.Response must close resp.Body after writing.
(2) Case when resp.Body != nil and resp.ContentLength = 0 should not be
treated as an error in Response.Write, because this is what
ReadResponse often returns.
(3) Changed body.th to body.hdr for readability.

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

15 years agoAn experimental implemenation of Ticker using two goroutines for all tickers.
Rob Pike [Thu, 28 Jan 2010 21:34:40 +0000 (08:34 +1100)]
An experimental implemenation of Ticker using two goroutines for all tickers.
Feel free to suggest other approaches.

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

15 years agosupport for ...T parameters (go/* packages)
Robert Griesemer [Thu, 28 Jan 2010 21:24:48 +0000 (13:24 -0800)]
support for ...T parameters (go/* packages)

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

15 years agocodereview: make sure each mail has a reviewer
Russ Cox [Thu, 28 Jan 2010 20:48:21 +0000 (12:48 -0800)]
codereview: make sure each mail has a reviewer

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

15 years agodashboard: move key.py out of the way,
Russ Cox [Thu, 28 Jan 2010 20:48:09 +0000 (12:48 -0800)]
dashboard: move key.py out of the way,
so that if you have a key.py with the real key,
there is no chance hg change will accidentally
make a CL with the real key and upload it to codereview.

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

15 years agoAllow underscores in XML element names (except for leading characters)
Michael Hoisie [Thu, 28 Jan 2010 05:13:22 +0000 (21:13 -0800)]
Allow underscores in XML element names (except for leading characters)

Fixes #569

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

15 years agoRegularize the comments for the websocket package and document all functions and...
Rob Pike [Thu, 28 Jan 2010 04:38:32 +0000 (15:38 +1100)]
Regularize the comments for the websocket package and document all functions and methods.

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

15 years agorelease.2010-01-27, take 2
Russ Cox [Thu, 28 Jan 2010 02:31:54 +0000 (18:31 -0800)]
release.2010-01-27, take 2

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

15 years agoprepare for take 2 on release.2010-01-27 weekly.2010-01-27
Russ Cox [Thu, 28 Jan 2010 02:28:21 +0000 (18:28 -0800)]
prepare for take 2 on release.2010-01-27

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

15 years agogo/parser: disable scoping code always
Russ Cox [Thu, 28 Jan 2010 02:28:13 +0000 (18:28 -0800)]
go/parser: disable scoping code always

Seems to be enabled spuriously during godoc (can't see why),
producing errors like:

parser.parseDir: src/pkg/http/server.go:159:16: 'Write' declared already at src/pkg/http/request.go:140:21 (and 4 more errors)

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

15 years agorelease.2010-01-27
Russ Cox [Thu, 28 Jan 2010 00:23:15 +0000 (16:23 -0800)]
release.2010-01-27

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

15 years agoprepare for release.2010-01-27
Russ Cox [Thu, 28 Jan 2010 00:18:33 +0000 (16:18 -0800)]
prepare for release.2010-01-27

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

15 years agocodereview: correct handling of files created with hg cp
Russ Cox [Thu, 28 Jan 2010 00:14:11 +0000 (16:14 -0800)]
codereview: correct handling of files created with hg cp

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

15 years agoucsd cns talk, focused on networking
Russ Cox [Wed, 27 Jan 2010 23:50:29 +0000 (15:50 -0800)]
ucsd cns talk, focused on networking

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

15 years agodashboard: builder tweaks
Russ Cox [Wed, 27 Jan 2010 23:42:37 +0000 (15:42 -0800)]
dashboard: builder tweaks

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

15 years agochange print print buffer size
Ken Thompson [Wed, 27 Jan 2010 23:37:46 +0000 (15:37 -0800)]
change print print buffer size
to go with the full path names

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

15 years agogc: implement defer print/println/panic/panicln
Russ Cox [Wed, 27 Jan 2010 23:37:08 +0000 (15:37 -0800)]
gc: implement defer print/println/panic/panicln

Fixes #219.

R=ken2, r
CC=golang-dev
https://golang.org/cl/194097

15 years agonote that ...T is not yet implemented.
Rob Pike [Wed, 27 Jan 2010 21:45:16 +0000 (13:45 -0800)]
note that ...T is not yet implemented.

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

15 years agodashboard: look for key in $GOROOT before $HOME
Russ Cox [Wed, 27 Jan 2010 21:27:10 +0000 (13:27 -0800)]
dashboard: look for key in $GOROOT before $HOME

TBR=agl1
CC=golang-dev
https://golang.org/cl/195076

15 years agoadd definition of new parameter style
Rob Pike [Wed, 27 Jan 2010 21:14:40 +0000 (13:14 -0800)]
add definition of new parameter style
... T
for trailing arguments of type T.

R=rsc, gri, ken2, iant
CC=golang-dev
https://golang.org/cl/194100

15 years agogodashboard: fiddling
Russ Cox [Wed, 27 Jan 2010 21:09:58 +0000 (13:09 -0800)]
godashboard: fiddling
  * some tweaks to dashboard html/css layout
  * use hmac to generate per-builder subkeys

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

15 years agoMore steps towards tracking of identifier scopes.
Robert Griesemer [Wed, 27 Jan 2010 17:44:28 +0000 (09:44 -0800)]
More steps towards tracking of identifier scopes.
- provide scope to parse functions; if non-nil, parser uses the scope
  to declare and lookup identifiers
- resolve forward references where possible

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

15 years agoClarify parsing of channel types.
Robert Griesemer [Wed, 27 Jan 2010 17:35:39 +0000 (09:35 -0800)]
Clarify parsing of channel types.

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

15 years agogc: improved syntax errors
Russ Cox [Wed, 27 Jan 2010 07:13:22 +0000 (23:13 -0800)]
gc: improved syntax errors

* example-based syntax errors (go.errors)

* enable bison's more specific errors
  and translate grammar token names into
  tokens like ++

* test cases

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

15 years agosmall embedded target for arm.
Kai Backman [Wed, 27 Jan 2010 04:22:59 +0000 (20:22 -0800)]
small embedded target for arm.

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

15 years agocgo: update for package global name space
Russ Cox [Wed, 27 Jan 2010 02:20:15 +0000 (18:20 -0800)]
cgo: update for package global name space

Fixes #560.

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

15 years agopatch: handle text diffs from git
Russ Cox [Wed, 27 Jan 2010 01:49:33 +0000 (17:49 -0800)]
patch: handle text diffs from git

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

15 years agonet: fix segfault if /etc/hosts fails to open or doesn't exist
Michael Hoisie [Wed, 27 Jan 2010 00:18:29 +0000 (16:18 -0800)]
net: fix segfault if /etc/hosts fails to open or doesn't exist

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

15 years agogc: do not treat .6 different from .a anymore
Russ Cox [Wed, 27 Jan 2010 00:12:50 +0000 (16:12 -0800)]
gc: do not treat .6 different from .a anymore

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

15 years agoos: in test, allow Hostname to return FQDN even if /bin/hostname does not
Icarus Sparry [Tue, 26 Jan 2010 21:16:03 +0000 (13:16 -0800)]
os: in test, allow Hostname to return FQDN even if /bin/hostname does not

Hostname reads the file /proc/sys/kernel/hostname to determine
the value it returns. Some people set this to a Fully Qualified
Doamin Name. At least one implementation of /bin/hostname
truncates the name it gets (often from the "uname" system call)
at the first dot unless it is given a "-f" flag. This change makes
the unit test also truncate at the first dot and checks if the strings
then match. This seems more portable than adding an extra flag
to the called /bin/hostname program.

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

15 years agogotest still assumes that gopack is in your PATH
Icarus Sparry [Tue, 26 Jan 2010 21:15:59 +0000 (13:15 -0800)]
gotest still assumes that gopack is in your PATH

If your $PATH does not include $GOBIN then
the build fails at the first *.a file, which
is probably when running the tests for tar

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

15 years agoA+C: add Icarus Sparry (individual CLA)
Russ Cox [Tue, 26 Jan 2010 21:15:53 +0000 (13:15 -0800)]
A+C: add Icarus Sparry (individual CLA)

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

15 years agodashboard: add benchmarking support.
Adam Langley [Tue, 26 Jan 2010 20:56:29 +0000 (12:56 -0800)]
dashboard: add benchmarking support.

This has actually been running for a while and gathering benchmark
data. I haven't had a chance to add a UI for it yet however.

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

15 years agomath: 386 FPU hypot
Charles L. Dorian [Tue, 26 Jan 2010 20:53:02 +0000 (12:53 -0800)]
math: 386 FPU hypot

Added 386 FPU version of Hypot; modified all_test.go to test
Hypot with large arguments.  Also edited sqrt.go to remove
Sqrt(0) as a special case.

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

15 years agoAllow func() func().
Robert Griesemer [Tue, 26 Jan 2010 19:49:49 +0000 (11:49 -0800)]
Allow func() func().
Update gofmt test script.

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

15 years agoBug in go/parser when coverting identifier lists.
Robert Griesemer [Tue, 26 Jan 2010 19:41:38 +0000 (11:41 -0800)]
Bug in go/parser when coverting identifier lists.
Fixes #567.

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

15 years agogc: fix chan <- chan precedence.
Russ Cox [Tue, 26 Jan 2010 18:40:28 +0000 (10:40 -0800)]
gc: fix chan <- chan precedence.
also allow func() func().

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

15 years agospec: allow func() func().
Russ Cox [Tue, 26 Jan 2010 18:25:56 +0000 (10:25 -0800)]
spec: allow func() func().
no longer ambiguous at top level, thanks to new semicolon rules.

use gofmt layout for function types.

Fixes #528.

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

15 years agochannel types parsed not according to spec by 6g
Robert Griesemer [Tue, 26 Jan 2010 06:10:35 +0000 (22:10 -0800)]
channel types parsed not according to spec by 6g

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

15 years agosalvaging 183105 from dead client
Kai Backman [Tue, 26 Jan 2010 05:38:27 +0000 (21:38 -0800)]
salvaging 183105 from dead client

a number of fixes for arm elf generation in 5l. -T now works as
advertised, -D now works properly.

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

15 years agoin C and asm, replace pkg·name with ·name
Russ Cox [Tue, 26 Jan 2010 02:52:55 +0000 (18:52 -0800)]
in C and asm, replace pkg·name with ·name
(eliminate assumption of package global name space,
make code easier to move between packages).

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

15 years agoxml: add Escape, copied from template.HTMLEscape.
Stephen Weinberg [Tue, 26 Jan 2010 02:50:51 +0000 (18:50 -0800)]
xml: add Escape, copied from template.HTMLEscape.

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

15 years agoA+C: add Stephen Weinberg (individual CLA)
Russ Cox [Tue, 26 Jan 2010 02:50:46 +0000 (18:50 -0800)]
A+C: add Stephen Weinberg (individual CLA)

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

15 years agohttp: make Request.Body an io.ReadCloser, matching Response.Body.
Petar Maymounkov [Tue, 26 Jan 2010 02:49:08 +0000 (18:49 -0800)]
http: make Request.Body an io.ReadCloser, matching Response.Body.

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

15 years agold: typo
Russ Cox [Tue, 26 Jan 2010 02:48:18 +0000 (18:48 -0800)]
ld: typo

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

15 years agocc: correct handling of leading ·
Russ Cox [Tue, 26 Jan 2010 02:31:44 +0000 (18:31 -0800)]
cc: correct handling of leading ·

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

15 years agoeliminate package global name space
Russ Cox [Tue, 26 Jan 2010 02:31:35 +0000 (18:31 -0800)]
eliminate package global name space

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

15 years agoruntime, type switch: eliminate package global name space assumption
Russ Cox [Tue, 26 Jan 2010 02:23:20 +0000 (18:23 -0800)]
runtime, type switch: eliminate package global name space assumption

bonus: type switch now detects multiple uses of identical interface types.
bonus: interface types are now order-independent, following the spec.

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

15 years ago5l, 6l, 8l: accept only one object file
Russ Cox [Tue, 26 Jan 2010 01:53:43 +0000 (17:53 -0800)]
5l, 6l, 8l: accept only one object file
(package main; others are pulled in automatically)

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

15 years agosteps towards a simplified parser interface
Robert Griesemer [Tue, 26 Jan 2010 01:24:50 +0000 (17:24 -0800)]
steps towards a simplified parser interface
minor cleanups (which I did at home before
but missed this morning at work)

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

15 years agoAdd an explicit patent grant to the Go license.
Ian Lance Taylor [Mon, 25 Jan 2010 23:39:32 +0000 (15:39 -0800)]
Add an explicit patent grant to the Go license.

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

15 years agonet: parse aliases in /etc/hosts correctly
Andrey Mirtchovski [Mon, 25 Jan 2010 22:57:04 +0000 (14:57 -0800)]
net: parse aliases in /etc/hosts correctly

Previous behaviour only picked the first entry (official hostname) but not the aliases.

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

15 years agoA <- token in an expression may introduce a channel type.
Robert Griesemer [Mon, 25 Jan 2010 20:03:53 +0000 (12:03 -0800)]
A <- token in an expression may introduce a channel type.
Fixes #530.

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

15 years agoScoping snapshot.
Robert Griesemer [Mon, 25 Jan 2010 18:06:18 +0000 (10:06 -0800)]
Scoping snapshot.
- separate parsing from declaration
- setup of correct scopes

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

15 years agold: do not load the same object file multiple times.
Russ Cox [Mon, 25 Jan 2010 16:53:27 +0000 (08:53 -0800)]
ld: do not load the same object file multiple times.
eliminates spurious multiple initialization errors.

give more information in the multiple init errors that remain.

Fixes #87.

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

15 years agoRemove top-level (src/) Makefile.
Christopher Wedgwood [Mon, 25 Jan 2010 08:09:46 +0000 (00:09 -0800)]
Remove top-level (src/) Makefile.

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

15 years agogc: record full package paths in runtime type data
Russ Cox [Mon, 25 Jan 2010 07:33:59 +0000 (23:33 -0800)]
gc: record full package paths in runtime type data

detect compilation of special package runtime with
compiler flag instead of package name.

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

15 years agogc: bug247, reported by rob
Russ Cox [Mon, 25 Jan 2010 06:42:18 +0000 (22:42 -0800)]
gc: bug247, reported by rob

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

15 years agogc: cut some dead code, fix 6g -S output
Russ Cox [Mon, 25 Jan 2010 06:36:26 +0000 (22:36 -0800)]
gc: cut some dead code, fix 6g -S output

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