]> Cypherpunks repositories - gostls13.git/log
gostls13.git
15 years ago8g: float->uint64 conversion optimization
Evan Shaw [Thu, 7 Jan 2010 03:28:19 +0000 (19:28 -0800)]
8g: float->uint64 conversion optimization

Using FUCOMIP instead of the FUCOMP-FSTSW-SAHF sequence gives better performance and saves code space.

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

15 years agolibmach: Add disassembly for newly implemented opcodes
Evan Shaw [Thu, 7 Jan 2010 03:26:04 +0000 (19:26 -0800)]
libmach: Add disassembly for newly implemented opcodes

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

15 years agoruntime: close TODO now that 8c bug is fixed
Russ Cox [Thu, 7 Jan 2010 03:24:11 +0000 (19:24 -0800)]
runtime: close TODO now that 8c bug is fixed

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

15 years agoadd a standard interface that wraps ReadByte, io.ReadByter
Rob Pike [Thu, 7 Jan 2010 02:29:43 +0000 (13:29 +1100)]
add a standard interface that wraps ReadByte, io.ReadByter

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

15 years agosync make-arm.bash with make.bash
Russ Cox [Thu, 7 Jan 2010 02:19:56 +0000 (18:19 -0800)]
sync make-arm.bash with make.bash

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

15 years ago8c: only refer to extern register variables in MOVL instructions
Russ Cox [Thu, 7 Jan 2010 02:18:07 +0000 (18:18 -0800)]
8c: only refer to extern register variables in MOVL instructions

R=ken2
https://golang.org/cl/183136

15 years agodeps.bash: handle space between .go and \ in GOFILES=
Russ Cox [Thu, 7 Jan 2010 01:59:15 +0000 (17:59 -0800)]
deps.bash: handle space between .go and \ in GOFILES=

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

15 years agoPorted runtime to Windows.
Hector Chu [Thu, 7 Jan 2010 01:58:55 +0000 (17:58 -0800)]
Ported runtime to Windows.

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

15 years agotime: fix Makefile so deps.bash is happy (fixes build)
Russ Cox [Thu, 7 Jan 2010 00:35:28 +0000 (16:35 -0800)]
time: fix Makefile so deps.bash is happy (fixes build)

TBR=r
https://golang.org/cl/183133

15 years agogodoc: serve index.html in place of directory listing, when present
Russ Cox [Wed, 6 Jan 2010 23:59:03 +0000 (15:59 -0800)]
godoc: serve index.html in place of directory listing, when present

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

15 years agoadd release log as doc/devel/release.html
Russ Cox [Wed, 6 Jan 2010 23:46:09 +0000 (15:46 -0800)]
add release log as doc/devel/release.html

won't appear online until next release

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

15 years agoUse remove-text-properties instead of
Austin Clements [Wed, 6 Jan 2010 23:45:43 +0000 (15:45 -0800)]
Use remove-text-properties instead of
remove-list-of-test-properties, since the latter is missing
from XEmacs.

Fixes #462.

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

15 years agohttp: avoid header duplication - take struct fields out of Header map
Russ Cox [Wed, 6 Jan 2010 23:45:30 +0000 (15:45 -0800)]
http: avoid header duplication - take struct fields out of Header map

R=r
CC=golang-dev, petar-m
https://golang.org/cl/183132

15 years agocgo: Use -fno-eliminate-unused-debug-types when calling gcc to for dwarf stabs.
Devon H. O'Dell [Wed, 6 Jan 2010 23:45:08 +0000 (15:45 -0800)]
cgo: Use -fno-eliminate-unused-debug-types when calling gcc to for dwarf stabs.

This keeps debug symbols in for e.g. unreferenced enums.

Fixes #479

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

15 years agoNew time formatter, time.Format(formatString)
Rob Pike [Wed, 6 Jan 2010 23:32:48 +0000 (10:32 +1100)]
New time formatter, time.Format(formatString)
The model is that formatString is a a representation of a standard time,
and that Format converts the time to that representation.
Standard representaitons are defined for ANSIC, RFC850, RFC1123, and ISO8601.
There's also a humane Kitchen fomat: 3:04PM.

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

15 years agoAdded me to authors and contributors.
Jan H. Hosang [Wed, 6 Jan 2010 21:55:47 +0000 (13:55 -0800)]
Added me to authors and contributors.

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

15 years agoFix missing explicit GOBIN in src/pkg/Makefile. Clean up creation of
Devon H. O'Dell [Wed, 6 Jan 2010 15:47:56 +0000 (07:47 -0800)]
Fix missing explicit GOBIN in src/pkg/Makefile. Clean up creation of
QUOTED_GOBIN. Re-take of 181077; fixes copy-pasta that broke build.

Fixes #468

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

15 years agoAdd http.CanonicalPath and tests for it. Remove BUG(rsc) from url.go.
Ivan Krasin [Wed, 6 Jan 2010 15:47:40 +0000 (07:47 -0800)]
Add http.CanonicalPath and tests for it. Remove BUG(rsc) from url.go.

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

15 years agoPropagate error to the caller in json.Marshal. Fixes issue 445.
Ivan Krasin [Wed, 6 Jan 2010 15:25:17 +0000 (07:25 -0800)]
Propagate error to the caller in json.Marshal. Fixes issue 445.

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

15 years agorelease.2010-01-05
Russ Cox [Wed, 6 Jan 2010 01:15:56 +0000 (17:15 -0800)]
release.2010-01-05

R=r
https://golang.org/cl/183124

15 years agohgtags: delete "release" (prepare for new release) weekly.2010-01-05
Russ Cox [Wed, 6 Jan 2010 01:12:44 +0000 (17:12 -0800)]
hgtags: delete "release" (prepare for new release)

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

15 years ago8a, 8l: Add FCOMI, FCOMIP, FUCOMI, FUCOMIP instructions
Evan Shaw [Wed, 6 Jan 2010 01:06:41 +0000 (17:06 -0800)]
8a, 8l: Add FCOMI, FCOMIP, FUCOMI, FUCOMIP instructions

Fixes #447

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

15 years agorollback of https://golang.org/cl/181077
Russ Cox [Wed, 6 Jan 2010 00:54:27 +0000 (16:54 -0800)]
rollback of https://golang.org/cl/181077
(broke build)

TBR=dho
https://golang.org/cl/181139

15 years agoxml: Fix comment so that example code compiles
Evan Shaw [Wed, 6 Jan 2010 00:50:52 +0000 (16:50 -0800)]
xml: Fix comment so that example code compiles

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

15 years agoUpdate Emacs go-mode for new semicolon rule.
Austin Clements [Wed, 6 Jan 2010 00:50:36 +0000 (16:50 -0800)]
Update Emacs go-mode for new semicolon rule.

Fixes #415.

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

15 years agobig: fix ProbablyPrime bug, comments
Russ Cox [Wed, 6 Jan 2010 00:49:05 +0000 (16:49 -0800)]
big: fix ProbablyPrime bug, comments

(changes adopted from alc, agl)

R=agl1, agl
CC=golang-dev
https://golang.org/cl/181137

15 years agoFix missing explicit GOBIN in src/pkg/Makefile. Clean up creation of QUOTED_GOBIN
Devon H. O'Dell [Wed, 6 Jan 2010 00:22:40 +0000 (16:22 -0800)]
Fix missing explicit GOBIN in src/pkg/Makefile. Clean up creation of QUOTED_GOBIN

Fixes #468

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

15 years agosyscall: add nanosleep on FreeBSD
Devon H. O'Dell [Tue, 5 Jan 2010 17:21:15 +0000 (09:21 -0800)]
syscall: add nanosleep on FreeBSD

Fixes #461

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

15 years agonet: make Dial correctly return nil on error.
Roger Peppe [Tue, 5 Jan 2010 17:20:02 +0000 (09:20 -0800)]
net: make Dial correctly return nil on error.

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

15 years agoremove reference to "basic literal" since it's never defined
Robert Griesemer [Tue, 5 Jan 2010 01:28:02 +0000 (17:28 -0800)]
remove reference to "basic literal" since it's never defined

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

15 years agoSimplified parser interface.
Robert Griesemer [Tue, 5 Jan 2010 01:26:01 +0000 (17:26 -0800)]
Simplified parser interface.

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

15 years agoCheck for errors when writing fields of a struct.
Rob Pike [Tue, 5 Jan 2010 00:33:06 +0000 (11:33 +1100)]
Check for errors when writing fields of a struct.

R=rsc
CC=golang-dev, jack.palevich
https://golang.org/cl/183109

15 years agoAllow a nil Ident to print without crashing.
Roger Peppe [Mon, 4 Jan 2010 18:34:37 +0000 (10:34 -0800)]
Allow a nil Ident to print without crashing.
Allow Walk of []Decl

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

15 years agofix up YB and add ZB, EB in example
Rob Pike [Sun, 3 Jan 2010 20:36:39 +0000 (07:36 +1100)]
fix up YB and add ZB, EB in example

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

15 years agoRemove redundant size check in resize. Let callers worry about that and resize should...
Yongjian Xu [Sat, 2 Jan 2010 00:09:22 +0000 (11:09 +1100)]
Remove redundant size check in resize. Let callers worry about that and resize should just do "resize".

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

15 years agotrivial bug: []byte is special but [3]byte is not.
Rob Pike [Thu, 31 Dec 2009 01:47:20 +0000 (12:47 +1100)]
trivial bug: []byte is special but [3]byte is not.
modify a test to verify the fix.

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

15 years agoMore Xcode support.
Robert Griesemer [Wed, 30 Dec 2009 23:30:57 +0000 (15:30 -0800)]
More Xcode support.
Recognize special comments starting
with TODO or BUG.

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

15 years agoDocument how to build gccgo to use gold.
Ian Lance Taylor [Tue, 29 Dec 2009 22:59:08 +0000 (14:59 -0800)]
Document how to build gccgo to use gold.

This provides full support for discontiguous stacks.

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

15 years agoTest case for issue 475 and related bug.
Robert Griesemer [Tue, 29 Dec 2009 22:44:56 +0000 (14:44 -0800)]
Test case for issue 475 and related bug.

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

15 years agoImproved Xcode support
Ken Friedenbach [Tue, 29 Dec 2009 22:43:54 +0000 (14:43 -0800)]
Improved Xcode support

Added definition for raw string.
Added definitions for function and method declarations.
Enabled function, method, and type declarations to appear in Editor pop up menu.
Fixes #466.

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

15 years agoadded author/contributor
Robert Griesemer [Tue, 29 Dec 2009 22:43:25 +0000 (14:43 -0800)]
added author/contributor

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

15 years agotest case for issue 471
Robert Griesemer [Tue, 29 Dec 2009 22:01:09 +0000 (14:01 -0800)]
test case for issue 471

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

15 years agoimprove some type switches now that multiple types per case are supported.
Rob Pike [Tue, 29 Dec 2009 21:33:48 +0000 (08:33 +1100)]
improve some type switches now that multiple types per case are supported.

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

15 years agoApply symmetric changes to sha1 and sha256 as to md4 and md5.
Robert Griesemer [Tue, 29 Dec 2009 19:41:44 +0000 (11:41 -0800)]
Apply symmetric changes to sha1 and sha256 as to md4 and md5.

R=agl, agl1
CC=golang-dev
https://golang.org/cl/183083

15 years agoPNG decoder now handles transparent paletted images.
Nigel Tao [Tue, 29 Dec 2009 04:23:55 +0000 (15:23 +1100)]
PNG decoder now handles transparent paletted images.
Fixes #439.

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

15 years agoJPEG decoder now handles RST (restart) markers.
Nigel Tao [Tue, 29 Dec 2009 04:20:53 +0000 (15:20 +1100)]
JPEG decoder now handles RST (restart) markers.

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

15 years agoadd a debugging printer to the gob package.
Rob Pike [Tue, 29 Dec 2009 03:03:33 +0000 (14:03 +1100)]
add a debugging printer to the gob package.
used only for debugging, debug.go is not normally part of the package source.

also add a dump program to call it.

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

15 years agoremove all references to gobType() from the decoder.
Rob Pike [Tue, 29 Dec 2009 03:03:12 +0000 (14:03 +1100)]
remove all references to gobType() from the decoder.
Fixes #470.

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

15 years agoFix bug in godoc tab conversion filter:
Robert Griesemer [Tue, 29 Dec 2009 01:24:53 +0000 (17:24 -0800)]
Fix bug in godoc tab conversion filter:
tabs after an empty line where not converted.

Also, made it more robust in the presence of
(unexpected) ' ' and '\v' chars in indentation
mode.

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

15 years agoSymmetric changes to md4.go as for md5.go.
Robert Griesemer [Tue, 29 Dec 2009 01:20:33 +0000 (17:20 -0800)]
Symmetric changes to md4.go as for md5.go.

Use uint index variables in some cases instead
of int to enable strength reduction; this makes
it possible for the compiler to reduce % into
masks.

Old code: 6g -S md4.go md4block.go | grep "md4block.go:44"
0471 (md4block.go:44) MOVL    AX,BX
0472 (md4block.go:44) MOVL    AX,BP
0473 (md4block.go:44) MOVL    AX,R8
0474 (md4block.go:44) SARL    $31,R8
0475 (md4block.go:44) SHRL    $30,R8
0476 (md4block.go:44) ADDL    R8,BP
0477 (md4block.go:44) SARL    $2,BP
0478 (md4block.go:44) IMULL   $4,BP
0479 (md4block.go:44) SUBL    BP,BX
0480 (md4block.go:44) MOVLQSX BX,BX
0481 (md4block.go:44) LEAQ    shift1+0(SB),BP
0482 (md4block.go:44) CMPL    BX,8(BP)
0483 (md4block.go:44) JCS     ,485
0484 (md4block.go:44) CALL    ,runtime.throwindex+0(SB)
0485 (md4block.go:44) MOVQ    (BP),BP
0486 (md4block.go:44) MOVL    (BP)(BX*4),DI

New code: 6g -S md4.go md4block.go | grep "md4block.go:44"
0471 (md4block.go:44) MOVL    AX,BX
0472 (md4block.go:44) ANDL    $3,BX
0473 (md4block.go:44) MOVLQZX BX,BX
0474 (md4block.go:44) LEAQ    shift1+0(SB),BP
0475 (md4block.go:44) CMPL    BX,8(BP)
0476 (md4block.go:44) JCS     ,478
0477 (md4block.go:44) CALL    ,runtime.throwindex+0(SB)
0478 (md4block.go:44) MOVQ    (BP),BP
0479 (md4block.go:44) MOVL    (BP)(BX*4),DI

R=agl, agl1
CC=golang-dev
https://golang.org/cl/181086

15 years agoA couple of tighter loops.
Robert Griesemer [Mon, 28 Dec 2009 23:48:58 +0000 (15:48 -0800)]
A couple of tighter loops.

(I was looking at this code accidentally because of some gofmt
issues and thought that one could write this more effectively.
You may have deliberately chosen not to use ranges here to make
the index range clearer. Just let me know.)

R=agl, agl1
CC=golang-dev
https://golang.org/cl/181084

15 years agoClarify section on tokens.
Robert Griesemer [Mon, 28 Dec 2009 22:40:42 +0000 (14:40 -0800)]
Clarify section on tokens.
Fixes #457.

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

15 years agofix dumb bug: must write out default values inside arrays and slices
Rob Pike [Mon, 28 Dec 2009 20:41:53 +0000 (07:41 +1100)]
fix dumb bug: must write out default values inside arrays and slices

Fixes #459.

R=rsc, imkrasin, sonia
CC=golang-dev
https://golang.org/cl/181073

15 years agosimplify some code that is using vectors
Robert Griesemer [Mon, 28 Dec 2009 20:27:43 +0000 (12:27 -0800)]
simplify some code that is using vectors

R=agl, agl1
CC=golang-dev
https://golang.org/cl/181080

15 years agocrypto/tls: make Listener a pointer.
Adam Langley [Mon, 28 Dec 2009 19:40:01 +0000 (11:40 -0800)]
crypto/tls: make Listener a pointer.

Listener contains private members and 6g now enforces that private
members cannot be assigned outside of their package.

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

15 years agogc: various C nits, found by plan 9 compiler.
Russ Cox [Sun, 27 Dec 2009 17:32:30 +0000 (09:32 -0800)]
gc: various C nits, found by plan 9 compiler.
reported by erik quanstrom.

R=ken2
https://golang.org/cl/181071

15 years agoadd exceptions to the road map. i think this just was an oversight.
Rob Pike [Sat, 26 Dec 2009 20:57:57 +0000 (07:57 +1100)]
add exceptions to the road map.  i think this just was an oversight.
also a way to run code when object is deleted.
both of these are possibilities, not certainties.

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

15 years agoUpdate documentation around time.Sleep to specify its precision, and suggest
Devon H. O'Dell [Thu, 24 Dec 2009 21:24:00 +0000 (08:24 +1100)]
Update documentation around time.Sleep to specify its precision, and suggest
a possible interface for more granular sleep times.

Fixes issue #260.

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

15 years agofix naked < and > as reported by Peter Williams <>
Rob Pike [Thu, 24 Dec 2009 20:13:14 +0000 (07:13 +1100)]
fix naked < and > as reported by Peter Williams <>
(i thought these were legal in <pre> blocks)

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

15 years agoUse t.Errorf for formatted error output.
Ian Lance Taylor [Thu, 24 Dec 2009 06:08:49 +0000 (22:08 -0800)]
Use t.Errorf for formatted error output.

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

15 years agoAdd a test for issue 337.
Ian Lance Taylor [Thu, 24 Dec 2009 06:08:27 +0000 (22:08 -0800)]
Add a test for issue 337.

gccgo currently miscompiles this test.

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

15 years agogo_spec: use PrimaryExpr as type switch expression
Russ Cox [Wed, 23 Dec 2009 21:48:44 +0000 (13:48 -0800)]
go_spec: use PrimaryExpr as type switch expression

Without this change, the spec parses <-c.(type) as (<-c).(type)
but parses <-c.(int) as <-(c.(int)).

With this change, the former parses as <-(c.(type)).

All three parsers already implement this rule, because
they look for the "type" word during parsing of a standard
type assertion.  This change merely brings the
spec in line with the implementations.

http://code.google.com/p/go/source/browse/src/cmd/gc/go.y#801
http://code.google.com/p/go/source/browse/src/pkg/go/parser/parser.go#900
http://gcc.gnu.org/viewcvs/branches/gccgo/gcc/go/parse.cc?revision=155389&view=markup#l2469

Pointed out by Brett Kail on golang-nuts.

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

15 years agoAdd query to find number of subexpressions.
Peter Froehlich [Wed, 23 Dec 2009 21:43:35 +0000 (08:43 +1100)]
Add query to find number of subexpressions.

This was convenient for me to have without being forced
to parse the regexp myself. I'd understand if it's not
really wanted, but I also think that some meta information
about compiled regexps would be fine.

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

15 years agoremove nums.sh
Robert Griesemer [Wed, 23 Dec 2009 21:15:00 +0000 (13:15 -0800)]
remove nums.sh

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

15 years agoimplement .repeats for maps.
Rob Pike [Wed, 23 Dec 2009 20:41:56 +0000 (07:41 +1100)]
implement .repeats for maps.
Fixes #309.

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

15 years agomake 6prof (sic) architecture-independent.
Rob Pike [Wed, 23 Dec 2009 20:17:49 +0000 (07:17 +1100)]
make 6prof (sic) architecture-independent.
for now, it's amd64 and 386 only but it's trivial to add more.

Fixes #385.

(why couldn't it have been issue 386?)

tested for amd64 and 386 on darwin.

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

15 years agocrypto/tls: extensions and Next Protocol Negotiation
Adam Langley [Wed, 23 Dec 2009 19:13:09 +0000 (11:13 -0800)]
crypto/tls: extensions and Next Protocol Negotiation

Add support for TLS extensions in general and Next Protocol
Negotiation in particular.

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

15 years agocgo: don't overwrite p.Crefs
Devon H. O'Dell [Wed, 23 Dec 2009 17:26:21 +0000 (09:26 -0800)]
cgo: don't overwrite p.Crefs

It's expected to be shared between all files so that all types are output.
Fixes bug reported on mailing list by Peter Froehlich.

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

15 years agoFix comment for Chmod.
Peter Froehlich [Wed, 23 Dec 2009 16:49:38 +0000 (08:49 -0800)]
Fix comment for Chmod.

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

15 years agofix documentation bug in example
Rob Pike [Wed, 23 Dec 2009 02:47:58 +0000 (13:47 +1100)]
fix documentation bug in example
Fixes #452.

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

15 years agoCleanup: remove Exp ending in identifiers
Robert Griesemer [Wed, 23 Dec 2009 02:45:36 +0000 (18:45 -0800)]
Cleanup: remove Exp ending in identifiers
as it is not needed anymore (only one impl.
of vector package).

Makefile, vector_test.go, and nogen_test.go
were modified manually (find/replace), the
other files (intvector_test.go, strinvector_test.go
are generated).

Runs all tests.

R=r
https://golang.org/cl/182041

15 years agoReplace container/vector with exp/vector (faster).
Robert Griesemer [Wed, 23 Dec 2009 02:25:27 +0000 (18:25 -0800)]
Replace container/vector with exp/vector (faster).

Manual changes to the following files:
src/pkg/Makefile
src/pkg/exp/vector/Makefile (now: src/pkg/container/vector/Makefile)

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

15 years agoadd comment (warning about generated files)
Robert Griesemer [Tue, 22 Dec 2009 23:14:10 +0000 (15:14 -0800)]
add comment (warning about generated files)

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

15 years agohgtags: release.2009-12-22
Russ Cox [Tue, 22 Dec 2009 21:23:23 +0000 (13:23 -0800)]
hgtags: release.2009-12-22

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

15 years agohgtags: delete "release" (step 1 of new release) weekly.2009-12-22
Russ Cox [Tue, 22 Dec 2009 21:05:23 +0000 (13:05 -0800)]
hgtags: delete "release" (step 1 of new release)

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

15 years agofix up %p
Rob Pike [Tue, 22 Dec 2009 20:34:17 +0000 (07:34 +1100)]
fix up %p
- use an interface {Get()}
- implement Get for maps, slices
- for slices, retrieves the address of the end of the array, which will give the
same value for every slice of the same array.

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

15 years agojson: fix doc comment
Russ Cox [Tue, 22 Dec 2009 17:47:02 +0000 (09:47 -0800)]
json: fix doc comment

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

15 years agoAllow %p on reference types, for debugging.
Rob Pike [Tue, 22 Dec 2009 06:02:00 +0000 (17:02 +1100)]
Allow %p on reference types, for debugging.
(Also fix case sensitivity in test for PTR inside fmt_test.go)
Fixes #441.

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

15 years agoupdate test.sh so it can run to completion again
Robert Griesemer [Mon, 21 Dec 2009 23:05:50 +0000 (15:05 -0800)]
update test.sh so it can run to completion again

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

15 years agoExperimental alternative implementation of the vector package
Jan Mercl [Mon, 21 Dec 2009 22:34:54 +0000 (14:34 -0800)]
Experimental alternative implementation of the vector package

R=gri
CC=rsc
https://golang.org/cl/178048

15 years agoadding individual contributor
Robert Griesemer [Mon, 21 Dec 2009 22:34:16 +0000 (14:34 -0800)]
adding individual contributor

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

15 years ago8g: add TESTL etc to reg opt
Russ Cox [Mon, 21 Dec 2009 19:02:18 +0000 (11:02 -0800)]
8g: add TESTL etc to reg opt

Fixes #436.

R=ken2
https://golang.org/cl/180105

15 years agocgo: interpret $CGOPKGDIR as absolute path if rooted
Russ Cox [Mon, 21 Dec 2009 16:31:02 +0000 (08:31 -0800)]
cgo: interpret $CGOPKGDIR as absolute path if rooted

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

15 years agoMore evaluation order tests, for global variables and switch.
Ian Lance Taylor [Sat, 19 Dec 2009 05:59:47 +0000 (21:59 -0800)]
More evaluation order tests, for global variables and switch.

gccgo currently fails this test.

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

15 years agogc: method expressions on concrete types
Russ Cox [Sat, 19 Dec 2009 01:24:58 +0000 (17:24 -0800)]
gc: method expressions on concrete types

R=ken2
https://golang.org/cl/180092

15 years agonew comments for bytes.NewBuffer and NewBufferString.
Rob Pike [Fri, 18 Dec 2009 21:42:31 +0000 (08:42 +1100)]
new comments for bytes.NewBuffer and NewBufferString.
corrects a common misunderstanding about NewBuffer.

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

15 years agoruntime: fix race condition
Adam Langley [Fri, 18 Dec 2009 20:25:53 +0000 (12:25 -0800)]
runtime: fix race condition

(Thanks to ken and rsc for pointing this out)

rsc:
ken pointed out that there's a race in the new
one-lock-per-channel code.  the issue is that
if one goroutine has gone to sleep doing

select {
case <-c1:
case <-c2:
}

and then two more goroutines try to send
on c1 and c2 simultaneously, the way that
the code makes sure only one wins is the
selgen field manipulation in dequeue:

       // if sgp is stale, ignore it
       if(sgp->selgen != sgp->g->selgen) {
       //prints("INVALID PSEUDOG POINTER\n");
       freesg(c, sgp);
       goto loop;
       }

       // invalidate any others
       sgp->g->selgen++;

but because the global lock is gone both
goroutines will be fiddling with sgp->g->selgen
at the same time.

This results in a 7% slowdown in the single threaded case for a
ping-pong microbenchmark.

Since the cas predominantly succeeds, adding a simple check first
didn't make any difference.

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

15 years agofix build, enable an exp/eval's assignment check
Robert Griesemer [Fri, 18 Dec 2009 19:21:11 +0000 (11:21 -0800)]
fix build, enable an exp/eval's assignment check
now that the parser doesn't do this test anymore

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

15 years agoreport an error for illegal octal numbers instead of treating them as floats
Robert Griesemer [Fri, 18 Dec 2009 18:52:11 +0000 (10:52 -0800)]
report an error for illegal octal numbers instead of treating them as floats
added more test cases
some capitalization cleanups

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

15 years agoremoved semantic check from parsers
Robert Griesemer [Fri, 18 Dec 2009 18:51:47 +0000 (10:51 -0800)]
removed semantic check from parsers

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

15 years agoMake.pkg: fix cgo for TARG=a/b
Russ Cox [Fri, 18 Dec 2009 01:28:22 +0000 (17:28 -0800)]
Make.pkg: fix cgo for TARG=a/b

R=dho, phf
CC=golang-dev
https://golang.org/cl/180082

15 years agocgo: include line number information to keep go/printer happy
Russ Cox [Fri, 18 Dec 2009 01:04:48 +0000 (17:04 -0800)]
cgo: include line number information to keep go/printer happy

Fixes #443.

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

15 years ago first stub for softfloats, intercepts float instructions and skips
Kai Backman [Fri, 18 Dec 2009 00:08:42 +0000 (16:08 -0800)]
first stub for softfloats, intercepts float instructions and skips
        them in the stream.

R=rsc
https://golang.org/cl/174052

15 years agofix for gofmt rewrite matcher bug
Robert Griesemer [Thu, 17 Dec 2009 23:23:19 +0000 (15:23 -0800)]
fix for gofmt rewrite matcher bug

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

15 years agogc: fix compiler crash
Russ Cox [Thu, 17 Dec 2009 23:08:55 +0000 (15:08 -0800)]
gc: fix compiler crash

R=ken2
CC=dho
https://golang.org/cl/179097

15 years agouse new tab indentation format in godoc, but convert
Robert Griesemer [Thu, 17 Dec 2009 22:10:49 +0000 (14:10 -0800)]
use new tab indentation format in godoc, but convert
leading tabs into spaces to ensure a good outcome in
most browsers

R=rsc
https://golang.org/cl/165051

15 years agotime: add ISO 8601 time format
Ben Olive [Thu, 17 Dec 2009 21:39:13 +0000 (13:39 -0800)]
time: add ISO 8601 time format

Fixes #431.

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

15 years agoA+C: Ben Olive (individual CLA)
Russ Cox [Thu, 17 Dec 2009 21:38:28 +0000 (13:38 -0800)]
A+C: Ben Olive (individual CLA)

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

15 years agoAllow cgo to accept multiple .go inputs for a package
Devon H. O'Dell [Thu, 17 Dec 2009 21:20:56 +0000 (13:20 -0800)]
Allow cgo to accept multiple .go inputs for a package

Fixes #342.

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

15 years agoUse BitSize instead of the field's type native ByteSize when calculating
Devon H. O'Dell [Thu, 17 Dec 2009 20:38:29 +0000 (12:38 -0800)]
Use BitSize instead of the field's type native ByteSize when calculating
structs containing bitfields.

Fixes #163.

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