]> Cypherpunks repositories - gostls13.git/log
gostls13.git
16 years agoRecognize gccgo error messages:
Ian Lance Taylor [Fri, 6 Feb 2009 23:57:02 +0000 (15:57 -0800)]
Recognize gccgo error messages:

func4.go:8:11: error: invalid operand for unary '&'
func4.go:9:8: error: invalid left hand side of assignment

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=24294
CL=24603

16 years agosnapshot:
Robert Griesemer [Fri, 6 Feb 2009 23:26:30 +0000 (15:26 -0800)]
snapshot:
- first stab at a Go Documentation Server (gds)
- various fixes to make initial version of gds work

R=r
OCL=24588
CL=24588

16 years agopowser cleanup.
Rob Pike [Fri, 6 Feb 2009 23:03:14 +0000 (15:03 -0800)]
powser cleanup.
- don't need *struct
- don't need item/rat both
- closures make the inner slaves easier
- delete some old BUG comments

powser2 is left mostly alone, for variety.

R=rsc
DELTA=134  (2 added, 20 deleted, 112 changed)
OCL=24579
CL=24581

16 years agotgs's gc bug.
Russ Cox [Fri, 6 Feb 2009 22:41:21 +0000 (14:41 -0800)]
tgs's gc bug.

R=r
DELTA=10  (7 added, 0 deleted, 3 changed)
OCL=24577
CL=24577

16 years agoadd a trivial visitor method, just for fun
Rob Pike [Fri, 6 Feb 2009 22:32:09 +0000 (14:32 -0800)]
add a trivial visitor method, just for fun

R=gri
DELTA=31  (30 added, 1 deleted, 0 changed)
OCL=24568
CL=24575

16 years agoclosures - 6g support
Russ Cox [Fri, 6 Feb 2009 21:47:10 +0000 (13:47 -0800)]
closures - 6g support

R=ken
OCL=24501
CL=24566

16 years agoclosures - runtime and debugger support, test case
Russ Cox [Fri, 6 Feb 2009 21:46:56 +0000 (13:46 -0800)]
closures - runtime and debugger support, test case

R=r
DELTA=257  (250 added, 1 deleted, 6 changed)
OCL=24509
CL=24565

16 years ago- preparation for setting up types
Robert Griesemer [Fri, 6 Feb 2009 19:10:25 +0000 (11:10 -0800)]
- preparation for setting up types
  - moved Object, Type, Scope  out of AST into symboltable
  - moved universe into symboltable
  - removed dead code
- fixed dependency computation (pretty -d filename.go)
- lots of cleanups
- removed tocken channel connection between parser and scanner
  (was cute, but not really needed)

R=r
OCL=24545
CL=24545

17 years ago6c: byte* - byte* should be int64, not int32.
Russ Cox [Fri, 6 Feb 2009 03:09:04 +0000 (19:09 -0800)]
6c: byte* - byte* should be int64, not int32.

R=ken
OCL=24507
CL=24507

17 years agomaking go-spec conform with 6g:
Robert Griesemer [Fri, 6 Feb 2009 00:11:14 +0000 (16:11 -0800)]
making go-spec conform with 6g:
- equality of struct types requires equality of field names

DELTA=4  (0 added, 1 deleted, 3 changed)
OCL=24478
CL=24487

17 years agofurther pedagogy: a channel that satisfies the HTTP server interface
Rob Pike [Thu, 5 Feb 2009 23:56:31 +0000 (15:56 -0800)]
further pedagogy: a channel that satisfies the HTTP server interface

R=rsc
DELTA=18  (18 added, 0 deleted, 0 changed)
OCL=24482
CL=24484

17 years agobug064
Russ Cox [Thu, 5 Feb 2009 23:22:49 +0000 (15:22 -0800)]
bug064

make f(g()) work when g returns multiple
args with names different than f expects.

func swap(a, b int) (c, d int) {
return b, a
}

swap(swap(1,2))

R=ken
OCL=24474
CL=24476

17 years agotake advantage of methods on funcs
Russ Cox [Thu, 5 Feb 2009 23:09:08 +0000 (15:09 -0800)]
take advantage of methods on funcs

R=r
DELTA=14  (0 added, 13 deleted, 1 changed)
OCL=24458
CL=24470

17 years agodo not generate Init proto for sys and unsafe.
Russ Cox [Thu, 5 Feb 2009 22:49:53 +0000 (14:49 -0800)]
do not generate Init proto for sys and unsafe.

R=ken
OCL=24455
CL=24455

17 years ago- caseify parser functions (all but a few should not be exported)
Robert Griesemer [Thu, 5 Feb 2009 22:22:09 +0000 (14:22 -0800)]
- caseify parser functions (all but a few should not be exported)
- more elegant tracing code
- removed some dead code, cleanups

R=r
OCL=24452
CL=24452

17 years agoheuristic to stop pulling .6 in from .a
Russ Cox [Thu, 5 Feb 2009 21:58:43 +0000 (13:58 -0800)]
heuristic to stop pulling .6 in from .a
is not right if the .6 is only for data and
the init function.

instead of that, pick up everything and
let the dead code/data eliminator throw
away the parts that weren't useful.

R=r
DELTA=25  (0 added, 22 deleted, 3 changed)
OCL=24446
CL=24446

17 years agoallow methods on funcs.
Russ Cox [Thu, 5 Feb 2009 21:33:07 +0000 (13:33 -0800)]
allow methods on funcs.

R=ken
OCL=24442
CL=24442

17 years agofix build on thresher - missing constants
Russ Cox [Thu, 5 Feb 2009 21:00:12 +0000 (13:00 -0800)]
fix build on thresher - missing constants

TBR=r
OCL=24439
CL=24439

17 years agoRename function to avoid function redefinition error. Remove
Ian Lance Taylor [Thu, 5 Feb 2009 20:54:15 +0000 (12:54 -0800)]
Rename function to avoid function redefinition error.  Remove
.* from regexp since it confuses DejaGNU which runs gcc's
testsuite.

R=rsc
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=24435
CL=24438

17 years agosnapshot:
Robert Griesemer [Thu, 5 Feb 2009 19:05:02 +0000 (11:05 -0800)]
snapshot:
- ast statements now use interfaces
- deleted old (now unused) code

R=r
OCL=24422
CL=24422

17 years agotoday's snapshot: steps towards using interfaces for statements in ast
Robert Griesemer [Thu, 5 Feb 2009 02:28:41 +0000 (18:28 -0800)]
today's snapshot: steps towards using interfaces for statements in ast

R=r
OCL=24380
CL=24380

17 years agoa few tweaks triggered by tgs's comments
Rob Pike [Wed, 4 Feb 2009 23:13:07 +0000 (15:13 -0800)]
a few tweaks triggered by tgs's comments

DELTA=46  (25 added, 1 deleted, 20 changed)
OCL=24342
CL=24354

17 years agoclean up flags package a bit.
Rob Pike [Wed, 4 Feb 2009 19:46:39 +0000 (11:46 -0800)]
clean up flags package a bit.
fix a bug in Usage message - would print current value instead of default.

R=rsc
DELTA=53  (7 added, 4 deleted, 42 changed)
OCL=24323
CL=24323

17 years agofix interface not satisifed message:
Russ Cox [Wed, 4 Feb 2009 18:37:11 +0000 (10:37 -0800)]
fix interface not satisifed message:

x.go:13: T is not I - missing M()

NOT
x.go:13: T is not I - missing Mfunc()

R=ken
OCL=24316
CL=24316

17 years ago- converted expr representation of ast into a new representation
Robert Griesemer [Wed, 4 Feb 2009 01:44:01 +0000 (17:44 -0800)]
- converted expr representation of ast into a new representation
using interfaces properly => much cleaner code
- converted tracing code to use 'defer' statement
- next steps: convert rest of ast as well

R=r
OCL=24277
CL=24277

17 years agobugs cleanup, including deleting one near-identical duplicate bug
Rob Pike [Wed, 4 Feb 2009 00:59:26 +0000 (16:59 -0800)]
bugs cleanup, including deleting one near-identical duplicate bug

R=rsc
DELTA=52  (15 added, 37 deleted, 0 changed)
OCL=24274
CL=24274

17 years agofix build. missed this file
Russ Cox [Tue, 3 Feb 2009 23:58:13 +0000 (15:58 -0800)]
fix build.  missed this file

TBR=r
OCL=24269
CL=24269

17 years agolibmach:
Russ Cox [Tue, 3 Feb 2009 23:00:09 +0000 (15:00 -0800)]
libmach:
* heuristic to go farther during stack traces.
* significantly improved Linux thread handing.

acid:
* update to new libmach interface.

prof:
* use new libmach interface.
* multiple thread support (derived from Rob's copy).
* first steps toward pprof-like graphs:
  keep counters indexed by pc,callerpc pairs.

R=r
DELTA=909  (576 added, 123 deleted, 210 changed)
OCL=24240
CL=24259

17 years agobufio:
Russ Cox [Tue, 3 Feb 2009 22:16:22 +0000 (14:16 -0800)]
bufio:
* avoid large copies
* NewBufRead, NewBufWrite never fail
* add BufReadWrite

io:
* add io.Close

http, google/net/rpc:
* add, use http.Conn.Hijack

R=r
DELTA=416  (202 added, 123 deleted, 91 changed)
OCL=24153
CL=24238

17 years agominor tweaks
Russ Cox [Tue, 3 Feb 2009 02:59:20 +0000 (18:59 -0800)]
minor tweaks

R=r
DELTA=9  (2 added, 5 deleted, 2 changed)
OCL=24107
CL=24152

17 years agoflesh out http server.
Russ Cox [Tue, 3 Feb 2009 02:01:32 +0000 (18:01 -0800)]
flesh out http server.

convert to uppercase names.

R=r
DELTA=613  (460 added, 61 deleted, 92 changed)
OCL=24139
CL=24145

17 years ago6g return struct fix:
Russ Cox [Mon, 2 Feb 2009 21:41:38 +0000 (13:41 -0800)]
6g return struct fix:
make t->width of funarg struct be width of struct.

emit MOVSL for 4-byte copy.

R=ken
OCL=24108
CL=24111

17 years agomarginally better thread debugging on Linux.
Russ Cox [Mon, 2 Feb 2009 21:26:40 +0000 (13:26 -0800)]
marginally better thread debugging on Linux.

if you clone inside a traced pid, the child
is automatically attached and stopped,
apparently.

R=r
DELTA=63  (41 added, 12 deleted, 10 changed)
OCL=24096
CL=24106

17 years ago- added experimental flag '-def': will print (not parse!)
Robert Griesemer [Mon, 2 Feb 2009 19:51:07 +0000 (11:51 -0800)]
- added experimental flag '-def': will print (not parse!)
'def' instead of 'func', 'const', or 'type'

R=r
OCL=24092
CL=24094

17 years agoslightly better code for the frog fix
Rob Pike [Sun, 1 Feb 2009 00:44:52 +0000 (16:44 -0800)]
slightly better code for the frog fix

R=ken
OCL=24025
CL=24025

17 years agoComplain about control characters that are not white space.
Rob Pike [Sun, 1 Feb 2009 00:42:10 +0000 (16:42 -0800)]
Complain about control characters that are not white space.
Bitten by invisible chars too many times.

R=ken
OCL=24024
CL=24024

17 years agocan finally close this TODO - 6l was broken
Russ Cox [Sat, 31 Jan 2009 01:14:39 +0000 (17:14 -0800)]
can finally close this TODO - 6l was broken

R=r
DELTA=2  (0 added, 2 deleted, 0 changed)
OCL=23993
CL=23995

17 years agokeep line number history even when
Russ Cox [Sat, 31 Jan 2009 01:10:10 +0000 (17:10 -0800)]
keep line number history even when
throwing away dead code at end of file.

also fix an uninitialized memory error
found by valgrind.

R=r
DELTA=7  (5 added, 2 deleted, 0 changed)
OCL=23991
CL=23994

17 years agoavoid memcpy(x, x),
Russ Cox [Sat, 31 Jan 2009 00:31:26 +0000 (16:31 -0800)]
avoid memcpy(x, x),
which valgrind complains about.

R=ken
OCL=23990
CL=23990

17 years ago- changed pretty parser to parse and print new function type syntax
Robert Griesemer [Fri, 30 Jan 2009 23:31:04 +0000 (15:31 -0800)]
- changed pretty parser to parse and print new function type syntax
- added more test cases
- fixed a bug in test script which prevented errors to show up...

R=r
OCL=23832
CL=23974

17 years agotwo uses of uninitialized memory,
Russ Cox [Fri, 30 Jan 2009 23:11:46 +0000 (15:11 -0800)]
two uses of uninitialized memory,
picked up by valgrind.
fixes test/escape.go on linux.

R=ken
OCL=23971
CL=23971

17 years agoneedless semicolons
Rob Pike [Fri, 30 Jan 2009 23:10:22 +0000 (15:10 -0800)]
needless semicolons

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=23967
CL=23970

17 years agoprint format bug
Russ Cox [Fri, 30 Jan 2009 22:54:49 +0000 (14:54 -0800)]
print format bug

R=ken
OCL=23965
CL=23965

17 years agoTest balloon: Changed the spec to see the implications of changing the
Robert Griesemer [Fri, 30 Jan 2009 22:48:29 +0000 (14:48 -0800)]
Test balloon: Changed the spec to see the implications of changing the
syntax of function types and making them "reference types" like slice,
map, and chan. First step in Russ' proposal.

DELTA=111  (32 added, 15 deleted, 64 changed)
OCL=23669
CL=23964

17 years agoupdate compiler to new func rules
Russ Cox [Fri, 30 Jan 2009 22:39:42 +0000 (14:39 -0800)]
update compiler to new func rules

R=ken
OCL=23958
CL=23961

17 years agoupdate go code tree to new func rules.
Russ Cox [Fri, 30 Jan 2009 22:39:31 +0000 (14:39 -0800)]
update go code tree to new func rules.

R=r
DELTA=367  (111 added, 59 deleted, 197 changed)
OCL=23957
CL=23960

17 years agorename variable at rsc's request
Rob Pike [Fri, 30 Jan 2009 19:14:48 +0000 (11:14 -0800)]
rename variable at rsc's request

R=rsc
DELTA=4  (0 added, 0 deleted, 4 changed)
OCL=23896
CL=23928

17 years agoclean up server code in tutorial
Rob Pike [Fri, 30 Jan 2009 18:18:58 +0000 (10:18 -0800)]
clean up server code in tutorial

R=rsc
DELTA=15  (1 added, 0 deleted, 14 changed)
OCL=23889
CL=23889

17 years agoif take address of local, move to heap.
Russ Cox [Fri, 30 Jan 2009 01:38:58 +0000 (17:38 -0800)]
if take address of local, move to heap.
heuristic to not print bogus strings.
fix one error message format.

R=ken
OCL=23849
CL=23851

17 years ago- removed obsolete files from repository
Robert Griesemer [Fri, 30 Jan 2009 01:00:18 +0000 (17:00 -0800)]
- removed obsolete files from repository
(most of this has been integrated into pretty,
the rest has been archived).

R=r
OCL=23842
CL=23842

17 years ago- make test work with 6g
Robert Griesemer [Thu, 29 Jan 2009 23:16:22 +0000 (15:16 -0800)]
- make test work with 6g

R=r
OCL=23821
CL=23823

17 years agooptimizer bug w STOstring
Ken Thompson [Thu, 29 Jan 2009 23:13:36 +0000 (15:13 -0800)]
optimizer bug w STOstring

R=r
OCL=23820
CL=23820

17 years agoadd stack test
Russ Cox [Thu, 29 Jan 2009 00:58:48 +0000 (16:58 -0800)]
add stack test

R=r
DELTA=48  (48 added, 0 deleted, 0 changed)
OCL=23715
CL=23732

17 years agofix possible infinite recursion in eqtype.
Russ Cox [Thu, 29 Jan 2009 00:42:26 +0000 (16:42 -0800)]
fix possible infinite recursion in eqtype.

don't use intermediate register to move
32-or-fewer-bit immediate constants
into memory.

R=ken
OCL=23726
CL=23726

17 years agoclean up range grammar
Russ Cox [Wed, 28 Jan 2009 23:41:50 +0000 (15:41 -0800)]
clean up range grammar

R=ken
OCL=23712
CL=23714

17 years agoUse explicit allspan list instead of
Russ Cox [Wed, 28 Jan 2009 23:22:16 +0000 (15:22 -0800)]
Use explicit allspan list instead of
trying to find all the places where
spans might be recorded.

Free can cascade into complicated
span manipulations that move them
from list to list; the old code had the
possibility of accidentally processing
a span twice or jumping to a different
list, causing an infinite loop.

R=r
DELTA=70  (28 added, 25 deleted, 17 changed)
OCL=23704
CL=23710

17 years agoadditions to array container:
Robert Griesemer [Wed, 28 Jan 2009 21:32:31 +0000 (13:32 -0800)]
additions to array container:
- added Slice, Cut, InsertArray, AppendArray
- renamed Remove -> Delete (so we have: Insert, Delete, Cut)
- more factoring of code
- extra tests (could use some more)

R=r,rsc
DELTA=179  (127 added, 22 deleted, 30 changed)
OCL=23648
CL=23685

17 years agobug135 is fixed
Rob Pike [Wed, 28 Jan 2009 03:30:44 +0000 (19:30 -0800)]
bug135 is fixed

TBR=ken
OCL=23650
CL=23650

17 years agobug 135
Ken Thompson [Wed, 28 Jan 2009 02:21:03 +0000 (18:21 -0800)]
bug 135

R=r
OCL=23646
CL=23646

17 years agomake "size 6.out" work on mac.
Russ Cox [Tue, 27 Jan 2009 23:40:36 +0000 (15:40 -0800)]
make "size 6.out" work on mac.

R=r
DELTA=11  (6 added, 0 deleted, 5 changed)
OCL=23629
CL=23631

17 years agotest for defer
Rob Pike [Tue, 27 Jan 2009 23:08:08 +0000 (15:08 -0800)]
test for defer

R=rsc
DELTA=48  (48 added, 0 deleted, 0 changed)
OCL=23624
CL=23626

17 years agochange dotdotdot interfaces to be structs,
Russ Cox [Tue, 27 Jan 2009 23:05:25 +0000 (15:05 -0800)]
change dotdotdot interfaces to be structs,
not pointers to structs.

fix defered dotdotdot.

R=r,ken
DELTA=25  (7 added, 5 deleted, 13 changed)
OCL=23620
CL=23625

17 years ago- added missing sections on comparisons for some types
Robert Griesemer [Tue, 27 Jan 2009 22:51:24 +0000 (14:51 -0800)]
- added missing sections on comparisons for some types
- clarified legal map key types (must support comparison)
- updated open issues/todo list

R=r
DELTA=81  (48 added, 19 deleted, 14 changed)
OCL=23580
CL=23621

17 years agopragma textflag
Ken Thompson [Tue, 27 Jan 2009 22:12:35 +0000 (14:12 -0800)]
pragma textflag
fixes latent bugs in go and defer

R=r
OCL=23613
CL=23613

17 years agovarious race conditions.
Russ Cox [Tue, 27 Jan 2009 22:01:20 +0000 (14:01 -0800)]
various race conditions.

R=r
DELTA=43  (29 added, 5 deleted, 9 changed)
OCL=23608
CL=23611

17 years agospelling
Ken Thompson [Tue, 27 Jan 2009 21:23:28 +0000 (13:23 -0800)]
spelling

R=r
OCL=23602
CL=23602

17 years agodefer
Ken Thompson [Tue, 27 Jan 2009 20:03:53 +0000 (12:03 -0800)]
defer

R=r
OCL=23592
CL=23592

17 years ago defer statement
Robert Griesemer [Tue, 27 Jan 2009 17:29:40 +0000 (09:29 -0800)]
 defer statement

R=r
DELTA=30  (26 added, 0 deleted, 4 changed)
OCL=23533
CL=23569

17 years agof, ok := i.(Foo) does not compile if i already is equivalent to Foo
Rob Pike [Tue, 27 Jan 2009 02:35:18 +0000 (18:35 -0800)]
f, ok := i.(Foo) does not compile if i already is equivalent to Foo

R=rsc
DELTA=18  (18 added, 0 deleted, 0 changed)
OCL=23544
CL=23547

17 years agodefer statement
Robert Griesemer [Tue, 27 Jan 2009 01:48:27 +0000 (17:48 -0800)]
defer statement

R=r
OCL=23542
CL=23542

17 years agogc #0. mark and sweep collector.
Russ Cox [Tue, 27 Jan 2009 01:37:05 +0000 (17:37 -0800)]
gc #0.  mark and sweep collector.

R=r,gri
DELTA=472  (423 added, 2 deleted, 47 changed)
OCL=23522
CL=23541

17 years agoassignment count mismatch: 2 = 1.
Russ Cox [Tue, 27 Jan 2009 01:20:29 +0000 (17:20 -0800)]
assignment count mismatch: 2 = 1.

R=ken
OCL=23534
CL=23534

17 years agobug134
Russ Cox [Tue, 27 Jan 2009 01:06:20 +0000 (17:06 -0800)]
bug134

R=ken
OCL=23532
CL=23532

17 years agobug133
Russ Cox [Tue, 27 Jan 2009 00:57:24 +0000 (16:57 -0800)]
bug133

R=ken
OCL=23528
CL=23528

17 years agoin hash implementation, if data >= 8, align to 8.
Russ Cox [Mon, 26 Jan 2009 23:36:39 +0000 (15:36 -0800)]
in hash implementation, if data >= 8, align to 8.

R=ken
OCL=23519
CL=23521

17 years agoprint(map) and print(chan) as pointers.
Russ Cox [Mon, 26 Jan 2009 23:36:28 +0000 (15:36 -0800)]
print(map) and print(chan) as pointers.

R=ken
OCL=23520
CL=23520

17 years agoimproved logging formats.
Rob Pike [Mon, 26 Jan 2009 23:34:16 +0000 (15:34 -0800)]
improved logging formats.

R=rsc
DELTA=210  (118 added, 60 deleted, 32 changed)
OCL=23508
CL=23518

17 years agointerface speedups and fixes.
Russ Cox [Mon, 26 Jan 2009 20:36:21 +0000 (12:36 -0800)]
interface speedups and fixes.
more caching, better hash functions, proper locking.
fixed a bug in interface comparison too.

R=ken
DELTA=177  (124 added, 10 deleted, 43 changed)
OCL=23491
CL=23493

17 years agoremoved a:b in range syntax
Ken Thompson [Mon, 26 Jan 2009 19:34:38 +0000 (11:34 -0800)]
removed a:b in range syntax
added another channel test

R=r
OCL=23488
CL=23488

17 years agomake time fields public
Russ Cox [Mon, 26 Jan 2009 19:22:21 +0000 (11:22 -0800)]
make time fields public

R=r
DELTA=49  (0 added, 0 deleted, 49 changed)
OCL=23480
CL=23487

17 years agoAdd an accessor function os.FD.Fd() to get the file
Ian Lance Taylor [Mon, 26 Jan 2009 19:10:14 +0000 (11:10 -0800)]
Add an accessor function os.FD.Fd() to get the file
descriptor.  Use it in the PollServer code.

6g currently accepts this code without this change, but it
should not.  Test case for the bug is bug133.go.

R=rsc
DELTA=10  (0 added, 0 deleted, 10 changed)
OCL=23451
CL=23486

17 years agoAdd a test for a case where 6g thinks that a field is visible
Ian Lance Taylor [Mon, 26 Jan 2009 17:59:59 +0000 (09:59 -0800)]
Add a test for a case where 6g thinks that a field is visible
when it should not be.  I couldn't get this any simpler; the
error seems to have to do with the order of the imports in
bug2.go.

R=rsc
DELTA=26  (26 added, 0 deleted, 0 changed)
OCL=23450
CL=23482

17 years agoimplement new restrictions on what
Russ Cox [Mon, 26 Jan 2009 17:56:42 +0000 (09:56 -0800)]
implement new restrictions on what
can be compared/hashed.

R=r
DELTA=351  (201 added, 80 deleted, 70 changed)
OCL=23423
CL=23481

17 years ago- clarified slice index bounds rules
Robert Griesemer [Mon, 26 Jan 2009 17:34:19 +0000 (09:34 -0800)]
- clarified slice index bounds rules
- clarified comparisons of interfaces, slices, maps, channels
- removed respective TODO's

R=r
DELTA=76  (42 added, 16 deleted, 18 changed)
OCL=23132
CL=23479

17 years agoadd start to a logging package.
Rob Pike [Mon, 26 Jan 2009 17:28:07 +0000 (09:28 -0800)]
add start to a logging package.

R=rsc
DELTA=205  (205 added, 0 deleted, 0 changed)
OCL=23448
CL=23478

17 years agobug in async select read
Ken Thompson [Sat, 24 Jan 2009 23:58:44 +0000 (15:58 -0800)]
bug in async select read
buganizer 1589219
channel is returning same values multiple times

R=r
OCL=23447
CL=23447

17 years agomake test/chan/nonblock work even with real os threads
Russ Cox [Sat, 24 Jan 2009 01:04:56 +0000 (17:04 -0800)]
make test/chan/nonblock work even with real os threads

R=ken
OCL=23422
CL=23422

17 years agofix typo in comment. s/put/Put/
Rob Pike [Fri, 23 Jan 2009 23:57:52 +0000 (15:57 -0800)]
fix typo in comment. s/put/Put/

R=ken
OCL=23419
CL=23419

17 years agoremove the "open" concept from reflect and go with slices and arrays.
Rob Pike [Fri, 23 Jan 2009 23:56:04 +0000 (15:56 -0800)]
remove the "open" concept from reflect and go with slices and arrays.
the two still share an interface and Kind; that's probably ok but might be worth revisiting.

R=rsc
DELTA=74  (1 added, 8 deleted, 65 changed)
OCL=23416
CL=23418

17 years ago- snapshot before making larger change
Robert Griesemer [Fri, 23 Jan 2009 21:50:14 +0000 (13:50 -0800)]
- snapshot before making larger change

R=r
OCL=23403
CL=23403

17 years agochange the representation of arrays in protobufs from *[]item to []item.
Rob Pike [Fri, 23 Jan 2009 20:40:55 +0000 (12:40 -0800)]
change the representation of arrays in protobufs from *[]item to []item.
for simplicity of user's code, optional arrays of bytes also don't have a pointer.
requires adding a "Set()" method to arrays in reflect.
still to do: protocol compilers, google/net/rpc.

R=rsc
DELTA=227  (36 added, 95 deleted, 96 changed)
OCL=23387
CL=23389

17 years agosnapshot before making more changes:
Robert Griesemer [Fri, 23 Jan 2009 17:44:01 +0000 (09:44 -0800)]
snapshot before making more changes:
- fine-tuning of ast
- more accurate block pos info (improved printing in some cases)
- collecting local variables and fields
- more work on type checking
- lots of minor tweaks

R=r
OCL=23375
CL=23375

17 years agofix build - missed this file
Russ Cox [Fri, 23 Jan 2009 00:49:11 +0000 (16:49 -0800)]
fix build - missed this file

TBR=r
OCL=23335
CL=23335

17 years agomove math routines from package sys to package math,
Russ Cox [Fri, 23 Jan 2009 00:23:44 +0000 (16:23 -0800)]
move math routines from package sys to package math,
though they still build in src/runtime.

use cgo instead of hand-written wrappers.

R=r
DELTA=740  (289 added, 300 deleted, 151 changed)
OCL=23326
CL=23331

17 years agouse $GC, $GL in gotest, to match gccgo's gotest.
Russ Cox [Thu, 22 Jan 2009 23:41:12 +0000 (15:41 -0800)]
use $GC, $GL in gotest, to match gccgo's gotest.

use $GC in all_test.go for portability.

R=r
DELTA=19  (12 added, 0 deleted, 7 changed)
OCL=23305
CL=23325

17 years agocosmetic change only:
Robert Griesemer [Thu, 22 Jan 2009 23:16:48 +0000 (15:16 -0800)]
cosmetic change only:
- slightly simplified a couple of productions (CommClause, SwitchClause)
  by reordering

R=r
DELTA=5  (0 added, 0 deleted, 5 changed)
OCL=23304
CL=23323

17 years agolet test sources specify commands to run
Russ Cox [Thu, 22 Jan 2009 22:23:50 +0000 (14:23 -0800)]
let test sources specify commands to run
before their compilation.

R=r
OCL=23300
CL=23300

17 years agochange reflect.CopyArray into a method on ArrayValue called CopyFrom
Rob Pike [Wed, 21 Jan 2009 23:45:54 +0000 (15:45 -0800)]
change reflect.CopyArray into a method on ArrayValue called CopyFrom

R=rsc
DELTA=16  (12 added, 0 deleted, 4 changed)
OCL=23242
CL=23242

17 years ago- added comment with various viewpoints so we have whole story
Robert Griesemer [Wed, 21 Jan 2009 22:57:47 +0000 (14:57 -0800)]
- added comment with various viewpoints so we have whole story
once we close this

R=r
OCL=23239
CL=23239

17 years agodisallow P.t for lowercase t and not our package P.
Russ Cox [Wed, 21 Jan 2009 22:51:57 +0000 (14:51 -0800)]
disallow P.t for lowercase t and not our package P.

implement hiding lowercase methods m in
signatures by adding in a hash of the package name
to the type hash code.

remove remaining checks for internally-generated _ names:
they are all gone.

R=ken
OCL=23236
CL=23238