]> Cypherpunks repositories - gostls13.git/log
gostls13.git
15 years agofix bugs in gob.
Rob Pike [Mon, 12 Oct 2009 00:37:22 +0000 (17:37 -0700)]
fix bugs in gob.
1) didn't handle attempts to encode non-structs properly.
2) if there were multiple indirections involving allocation, didn't allocate the
intermediate cells.
tests added.

R=rsc
DELTA=82  (65 added, 5 deleted, 12 changed)
OCL=35582
CL=35582

15 years agointerpreter checkpoint.
Russ Cox [Sun, 11 Oct 2009 09:35:53 +0000 (02:35 -0700)]
interpreter checkpoint.
  * generate different versions of binary operators
    for each size of int and float, so that proper
    truncating happens after each operation to
    simulate the various sized ops.
  * add slice expressions
  * publish World.CompileStmtList, CompileDeclList, CompileExpr
  * handle type-less expressions in CompileExpr

R=austin
DELTA=1459  (1327 added, 11 deleted, 121 changed)
OCL=34382
CL=35581

15 years agofix float <-> int64 conversions
Kai Backman [Sun, 11 Oct 2009 05:06:26 +0000 (22:06 -0700)]
fix float <-> int64 conversions

R=rsc
APPROVED=rsc
DELTA=25  (25 added, 0 deleted, 0 changed)
OCL=35566
CL=35574

15 years agochange Title to ToTitle for consistency. (the doc comment was already right)
Rob Pike [Sun, 11 Oct 2009 01:56:13 +0000 (18:56 -0700)]
change Title to ToTitle for consistency. (the doc comment was already right)

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=35572
CL=35572

15 years agoreallocate library, libraryobj: 50 isn't nearly enough
Rob Pike [Sat, 10 Oct 2009 19:29:06 +0000 (12:29 -0700)]
reallocate library, libraryobj: 50 isn't nearly enough

R=rsc
DELTA=7  (2 added, 0 deleted, 5 changed)
OCL=35569
CL=35569

15 years agoIn the PNG reader inner loop, collapse the two ReadFull calls into one.
Nigel Tao [Sat, 10 Oct 2009 05:44:40 +0000 (22:44 -0700)]
In the PNG reader inner loop, collapse the two ReadFull calls into one.

R=rsc,r
APPROVED=rsc
DELTA=29  (2 added, 4 deleted, 23 changed)
OCL=35460
CL=35565

15 years agoacid bug fix.
Russ Cox [Fri, 9 Oct 2009 23:45:20 +0000 (16:45 -0700)]
acid bug fix.
lock printf output to avoid interlacing debug prints.

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

15 years agohandle compiler crash better:
Russ Cox [Fri, 9 Oct 2009 23:44:40 +0000 (16:44 -0700)]
handle compiler crash better:
need to use exec to avoid seeing
shell output about the crash.

R=iant
DELTA=2  (1 added, 0 deleted, 1 changed)
OCL=35542
CL=35560

15 years agobug209
Russ Cox [Fri, 9 Oct 2009 23:01:32 +0000 (16:01 -0700)]
bug209

R=ken
OCL=35546
CL=35546

15 years agochange date format in logs - was missing slash between month and day
Rob Pike [Fri, 9 Oct 2009 22:44:57 +0000 (15:44 -0700)]
change date format in logs - was missing slash between month and day

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=35526
CL=35540

15 years agokeep a list of all the M's,
Russ Cox [Fri, 9 Oct 2009 22:35:33 +0000 (15:35 -0700)]
keep a list of all the M's,
so that the garbage collector doesn't free them.

R=ken
OCL=35538
CL=35538

15 years agobug209.go
Robert Griesemer [Fri, 9 Oct 2009 22:28:09 +0000 (15:28 -0700)]
bug209.go

R=rsc
DELTA=23  (22 added, 1 deleted, 0 changed)
OCL=35529
CL=35537

15 years agoMove rand.go to rng.go to prepare for some surgery.
Dave Bort [Fri, 9 Oct 2009 22:16:00 +0000 (15:16 -0700)]
Move rand.go to rng.go to prepare for some surgery.

R=rsc
APPROVED=rsc
DELTA=637  (318 added, 318 deleted, 1 changed)
OCL=35534
CL=35536

15 years agotime tests; sort -nr times.out | sed 10q is illuminating.
Russ Cox [Fri, 9 Oct 2009 18:18:32 +0000 (11:18 -0700)]
time tests; sort -nr times.out | sed 10q is illuminating.
cut the slowest tests  down from a few seconds
to under half a second.

R=r
DELTA=21  (6 added, 1 deleted, 14 changed)
OCL=35509
CL=35519

15 years agofix nacl build
Russ Cox [Fri, 9 Oct 2009 18:15:19 +0000 (11:15 -0700)]
fix nacl build

R=r
DELTA=23  (5 added, 0 deleted, 18 changed)
OCL=35510
CL=35518

15 years agofloating point calc, added a few more packages that pass
Kai Backman [Fri, 9 Oct 2009 14:37:49 +0000 (07:37 -0700)]
floating point calc, added a few more packages that pass

go/test: passes 80% (274/340)

R=rsc
APPROVED=rsc
DELTA=61  (59 added, 0 deleted, 2 changed)
OCL=35506
CL=35517

15 years agorewrite errchk in perl for speed (compared to bash)
Russ Cox [Fri, 9 Oct 2009 07:39:32 +0000 (00:39 -0700)]
rewrite errchk in perl for speed (compared to bash)

R=iant
DELTA=125  (51 added, 53 deleted, 21 changed)
OCL=35508
CL=35511

15 years agoadd & fix bug208, from ken.
Russ Cox [Fri, 9 Oct 2009 06:03:34 +0000 (23:03 -0700)]
add & fix bug208, from ken.
fix bug198.

R=ken
OCL=35504
CL=35507

15 years agodupok, gcc compile fix, sync and syscall asm fix
Kai Backman [Fri, 9 Oct 2009 05:16:08 +0000 (22:16 -0700)]
dupok, gcc compile fix, sync and syscall asm fix

R=rsc
APPROVED=rsc
DELTA=27  (18 added, 0 deleted, 9 changed)
OCL=35503
CL=35505

15 years ago- debugging support
Robert Griesemer [Thu, 8 Oct 2009 22:23:49 +0000 (15:23 -0700)]
- debugging support

R=rsc
DELTA=110  (98 added, 0 deleted, 12 changed)
OCL=35487
CL=35490

15 years agomore lgtm files from gofmt
Russ Cox [Thu, 8 Oct 2009 22:14:54 +0000 (15:14 -0700)]
more lgtm files from gofmt

R=gri
OCL=35485
CL=35488

15 years agoOnly clean the relevant installed files, not everything. This
Ian Lance Taylor [Thu, 8 Oct 2009 20:35:46 +0000 (13:35 -0700)]
Only clean the relevant installed files, not everything.  This
should let a 6g build and an 8g build be done in sequence
without stepping on each other.

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=35478
CL=35481

15 years ago- rewrite declaration printing to take full use of discardable tabwriter columns
Robert Griesemer [Thu, 8 Oct 2009 15:48:33 +0000 (08:48 -0700)]
- rewrite declaration printing to take full use of discardable tabwriter columns
- honor line breaks in multi-line expressions
- do not add extra indentation to multi-line string lists
- don't put blanks around simple function calls and conversions
- do not modify `` strings
- added extra test cases

R=rsc
DELTA=398  (246 added, 51 deleted, 101 changed)
OCL=35453
CL=35465

15 years agoPNG encoder unit test.
Nigel Tao [Thu, 8 Oct 2009 06:14:23 +0000 (23:14 -0700)]
PNG encoder unit test.

R=rsc,r
APPROVED=r
DELTA=84  (77 added, 6 deleted, 1 changed)
OCL=35456
CL=35458

15 years agoadd & fix bug207: rewritten if condition
Russ Cox [Thu, 8 Oct 2009 05:19:42 +0000 (22:19 -0700)]
add & fix bug207: rewritten if condition
was discarding initialization work.

R=ken
OCL=35454
CL=35457

15 years agobetter handling of mistaken top-level variable
Russ Cox [Wed, 7 Oct 2009 21:55:12 +0000 (14:55 -0700)]
better handling of mistaken top-level variable
references during the parsing of :=.  the base
problem is that when reading

a,b,c,d

the parser makes those refer to existing variables,
which might create a few stub top-level ones
for undefined names, but then if a := is the next
token, we need to undo those stubs.

this was causing problems in multifile packages
in which one file used a := variable named rpc
and the other imported a package named rpc.

R=ken
OCL=35446
CL=35446

15 years agodo not import testing twice when testing testing.
Russ Cox [Wed, 7 Oct 2009 21:52:44 +0000 (14:52 -0700)]
do not import testing twice when testing testing.

R=r
DELTA=3  (2 added, 0 deleted, 1 changed)
OCL=35443
CL=35445

15 years agoapply gofmt to rand reflect regexp rpc runtime sort strconv strings sync syscall...
Russ Cox [Wed, 7 Oct 2009 18:55:06 +0000 (11:55 -0700)]
apply gofmt to rand reflect regexp rpc runtime sort strconv strings sync syscall testing time unicode unsafe utf8

R=gri
DELTA=1409  (79 added, 24 deleted, 1306 changed)
OCL=35415
CL=35437

15 years agosupport for "hard" and "soft" tabs:
Robert Griesemer [Wed, 7 Oct 2009 17:55:45 +0000 (10:55 -0700)]
support for "hard" and "soft" tabs:
- soft-tab separated columns can be discarded if empty and DiscardEmptyColumns is set
- hard-tab separated columns are never discarded

R=rsc
DELTA=63  (42 added, 7 deleted, 14 changed)
OCL=35421
CL=35435

15 years agofactor portable object+library bits out of 5l/6l/8l into ld
Russ Cox [Wed, 7 Oct 2009 07:11:59 +0000 (00:11 -0700)]
factor portable object+library bits out of 5l/6l/8l into ld

R=r
DELTA=3214  (904 added, 2260 deleted, 50 changed)
OCL=35425
CL=35427

15 years agomake reader more useful
Russ Cox [Wed, 7 Oct 2009 05:03:47 +0000 (22:03 -0700)]
make reader more useful
for lower-level clients:
* expose p.Skip
* expose p.Unmarshal
* wildcard struct field "Any"
* unmarshal into bool
* unmarshal into xml.Name
* unmarshal into pointer

R=r
DELTA=61  (50 added, 5 deleted, 6 changed)
OCL=35372
CL=35422

15 years agoapply gofmt to go, gob, hash, http, image, io, json, log
Russ Cox [Wed, 7 Oct 2009 02:41:51 +0000 (19:41 -0700)]
apply gofmt to go, gob, hash, http, image, io, json, log

R=gri
DELTA=1359  (138 added, 32 deleted, 1189 changed)
OCL=35408
CL=35420

15 years agoapply gofmt to malloc math once os
Russ Cox [Wed, 7 Oct 2009 02:40:35 +0000 (19:40 -0700)]
apply gofmt to malloc math once os

R=gri
DELTA=566  (4 added, 14 deleted, 548 changed)
OCL=35410
CL=35419

15 years agoapply gofmt to auto-generated syscall files
Russ Cox [Wed, 7 Oct 2009 02:38:30 +0000 (19:38 -0700)]
apply gofmt to auto-generated syscall files

R=gri
DELTA=4023  (104 added, 27 deleted, 3892 changed)
OCL=35416
CL=35418

15 years ago5l library loading, 64 bit entry points
Kai Backman [Wed, 7 Oct 2009 02:00:30 +0000 (19:00 -0700)]
5l library loading, 64 bit entry points

R=rsc
APPROVED=rsc
DELTA=58  (52 added, 3 deleted, 3 changed)
OCL=35417
CL=35417

15 years ago- moved 3 functions from syscall_linux to _386 and _amd64 (arm lacks them)
Kai Backman [Tue, 6 Oct 2009 23:39:38 +0000 (16:39 -0700)]
- moved 3 functions from syscall_linux to _386 and _amd64 (arm lacks them)
- 64 bit OMINUS
- added bunch of missing arm syscalls

R=rsc
APPROVED=rsc
DELTA=203  (189 added, 3 deleted, 11 changed)
OCL=35412
CL=35414

15 years agofix build - missing from 35404
Russ Cox [Tue, 6 Oct 2009 23:06:34 +0000 (16:06 -0700)]
fix build - missing from 35404

TBR=gri
OCL=35411
CL=35411

15 years ago- set uint type for flags
Robert Griesemer [Tue, 6 Oct 2009 22:44:13 +0000 (15:44 -0700)]
- set uint type for flags
- simplified some code

R=rsc
DELTA=19  (0 added, 0 deleted, 19 changed)
OCL=35405
CL=35407

15 years agoapply gofmt to datafmt, ebnf, exec, expvar, flag, fmt
Russ Cox [Tue, 6 Oct 2009 22:38:57 +0000 (15:38 -0700)]
apply gofmt to datafmt, ebnf, exec, expvar, flag, fmt

R=gri
DELTA=456  (6 added, 3 deleted, 447 changed)
OCL=35398
CL=35406

15 years agomore comment work.
Russ Cox [Tue, 6 Oct 2009 22:28:47 +0000 (15:28 -0700)]
more comment work.
got rid of regexps.
primary bug fix is that // inside /* */ do not get stripped anymore,
so that the text inside

/*
int a;
// int b;
int c;
*/

is

int a;
// int b;
int c;

before, the "int b;" line was being uncommented too.

R=gri
DELTA=65  (13 added, 42 deleted, 10 changed)
OCL=35334
CL=35404

15 years ago- simplify "needsBlanks" logic for identifiers and strings
Robert Griesemer [Tue, 6 Oct 2009 22:22:03 +0000 (15:22 -0700)]
- simplify "needsBlanks" logic for identifiers and strings

TBR=rsc
DELTA=16  (10 added, 4 deleted, 2 changed)
OCL=35379
CL=35403

15 years agoadd IgnoreEmptyColumns feature to tabwriter
Robert Griesemer [Tue, 6 Oct 2009 22:10:36 +0000 (15:10 -0700)]
add IgnoreEmptyColumns feature to tabwriter

R=rsc
DELTA=96  (74 added, 2 deleted, 20 changed)
OCL=35391
CL=35402

15 years agofix build
Rob Pike [Tue, 6 Oct 2009 22:08:32 +0000 (15:08 -0700)]
fix build

R=rsc
DELTA=5  (5 added, 0 deleted, 0 changed)
OCL=35387
CL=35401

15 years agoanother round of gofmt applications
Russ Cox [Tue, 6 Oct 2009 21:55:39 +0000 (14:55 -0700)]
another round of gofmt applications

R=gri
DELTA=900  (106 added, 31 deleted, 763 changed)
OCL=35384
CL=35396

15 years agogofmt on crypto, debug
Russ Cox [Tue, 6 Oct 2009 21:55:06 +0000 (14:55 -0700)]
gofmt on crypto, debug

R=gri
DELTA=2560  (127 added, 177 deleted, 2256 changed)
OCL=35388
CL=35395

15 years agocleaned up cgen() to be a bit more straightforward.
Kai Backman [Tue, 6 Oct 2009 21:48:39 +0000 (14:48 -0700)]
cleaned up cgen() to be a bit more straightforward.

R=rsc
APPROVED=rsc
DELTA=104  (46 added, 56 deleted, 2 changed)
OCL=35392
CL=35394

15 years agoapply gofmt to the LGTM-marked files from 34501
Russ Cox [Tue, 6 Oct 2009 18:42:55 +0000 (11:42 -0700)]
apply gofmt to the LGTM-marked files from 34501
that have not changed since I applied gofmt.

R=gri
DELTA=456  (77 added, 3 deleted, 376 changed)
OCL=35378
CL=35383

15 years agoChange description of time.Time.ZoneOffset to specify east is +ve.
Adam Langley [Tue, 6 Oct 2009 17:01:39 +0000 (10:01 -0700)]
Change description of time.Time.ZoneOffset to specify east is +ve.

Currently, the description says that +ve numbers are westwards of UTC.
Typically, timezones are specified with +ve numbers running east of Greenwich.
For example, San Francisco is specified as UTC-8. Also, when calling
time.Localtime(), the following is returned on my box in PDT:

{Year:2009 Month:10 Day:5 Hour:18 Minute:55 Second:6 Weekday:1 ZoneOffset:-25200
Zone:PDT}

Note that the ZoneOffset is negative. This leads me to suspect that the
description is mistaken.

R=rsc
APPROVED=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=35356
CL=35377

15 years agochange tabwidth to 8 for tests
Robert Griesemer [Tue, 6 Oct 2009 16:52:37 +0000 (09:52 -0700)]
change tabwidth to 8 for tests

R=rsc
DELTA=39  (0 added, 0 deleted, 39 changed)
OCL=35360
CL=35376

15 years ago64 bit cmp and some sgen tweaks
Kai Backman [Tue, 6 Oct 2009 16:47:46 +0000 (09:47 -0700)]
64 bit cmp and some sgen tweaks

go/test: passes 75% (256/339)

R=rsc
APPROVED=rsc
DELTA=142  (53 added, 4 deleted, 85 changed)
OCL=35367
CL=35375

15 years agomove cas out, add dummy runcgo.
Kai Backman [Tue, 6 Oct 2009 04:52:10 +0000 (21:52 -0700)]
move cas out, add dummy runcgo.

R=rsc
APPROVED=rsc
DELTA=73  (45 added, 28 deleted, 0 changed)
OCL=35363
CL=35366

15 years agofix arm test to actual return success/fail and expose runcgo
Kai Backman [Tue, 6 Oct 2009 04:51:34 +0000 (21:51 -0700)]
fix arm test to actual return success/fail and expose runcgo
build breakage.

R=rsc
APPROVED=rsc
DELTA=10  (4 added, 2 deleted, 4 changed)
OCL=35362
CL=35365

15 years agoallow multiple -L options
Rob Pike [Tue, 6 Oct 2009 04:31:50 +0000 (21:31 -0700)]
allow multiple -L options

R=rsc
DELTA=31  (15 added, 3 deleted, 13 changed)
OCL=35364
CL=35364

15 years agovarious go printer fixes:
Robert Griesemer [Tue, 6 Oct 2009 02:37:34 +0000 (19:37 -0700)]
various go printer fixes:
- better handling of line breaks in expression lists
- fixed line breaks around label decls
- remove ()'s around if, for, switch expressions
- simple index expressions don't require blanks
- better line breaks around declarations of different kind

R=rsc
DELTA=404  (369 added, 8 deleted, 27 changed)
OCL=35354
CL=35359

15 years agoremove a file from idempotency test so that the entire suite passes
Robert Griesemer [Tue, 6 Oct 2009 02:32:10 +0000 (19:32 -0700)]
remove a file from idempotency test so that the entire suite passes

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=35355
CL=35358

15 years agoFirst cut at a PNG encoder.
Nigel Tao [Tue, 6 Oct 2009 00:34:15 +0000 (17:34 -0700)]
First cut at a PNG encoder.
TODOs include filtering, and a unit test.

R=rsc
APPROVED=r
DELTA=280  (249 added, 1 deleted, 30 changed)
OCL=35262
CL=35348

15 years agocomment tweaks; implement precise name
Russ Cox [Mon, 5 Oct 2009 23:45:24 +0000 (16:45 -0700)]
comment tweaks; implement precise name
character sets.

R=r
DELTA=339  (257 added, 1 deleted, 81 changed)
OCL=35344
CL=35346

15 years agoadd a little more saturation to the background of <pre> so it doesn't disappear on...
Rob Pike [Mon, 5 Oct 2009 22:17:30 +0000 (15:17 -0700)]
add a little more saturation to the background of <pre> so it doesn't disappear on bright monitors.
verified as acceptable on my calibrated home monitor.

R=gri
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=35340
CL=35342

15 years agoXML parser
Russ Cox [Mon, 5 Oct 2009 22:10:00 +0000 (15:10 -0700)]
XML parser

R=r
DELTA=546  (545 added, 0 deleted, 1 changed)
OCL=35318
CL=35341

15 years agoXML lexing
Russ Cox [Mon, 5 Oct 2009 22:00:50 +0000 (15:00 -0700)]
XML lexing

The lexer is the bottom level.
Most clients will use the Unmarshal method,
not yet implemented, which will behave like
json.Unmarshal.

R=r
DELTA=1115  (766 added, 219 deleted, 130 changed)
OCL=35316
CL=35339

15 years agoaddressing gri's comments.
Rob Pike [Mon, 5 Oct 2009 21:49:51 +0000 (14:49 -0700)]
addressing gri's comments.

R=gri
DELTA=31  (7 added, 17 deleted, 7 changed)
OCL=35336
CL=35338

15 years agoslices
Rob Pike [Mon, 5 Oct 2009 21:48:57 +0000 (14:48 -0700)]
slices
methods on slices, pointers and values.

R=iant,rsc,gri
DELTA=173  (150 added, 1 deleted, 22 changed)
OCL=35333
CL=35337

15 years agopreserve blank lines in // comments
Russ Cox [Mon, 5 Oct 2009 18:24:01 +0000 (11:24 -0700)]
preserve blank lines in // comments

R=gri
DELTA=32  (13 added, 12 deleted, 7 changed)
OCL=35317
CL=35332

15 years agoupdate json comments
Russ Cox [Mon, 5 Oct 2009 18:23:44 +0000 (11:23 -0700)]
update json comments

R=r
DELTA=16  (4 added, 2 deleted, 10 changed)
OCL=35320
CL=35331

15 years agoa few fixups. delete the TODO block.
Rob Pike [Mon, 5 Oct 2009 18:13:56 +0000 (11:13 -0700)]
a few fixups. delete the TODO block.

R=rsc
DELTA=23  (0 added, 20 deleted, 3 changed)
OCL=35330
CL=35330

15 years agoAdd write support for the GNU tar binary numeric field extension.
David Symonds [Mon, 5 Oct 2009 11:08:24 +0000 (04:08 -0700)]
Add write support for the GNU tar binary numeric field extension.

R=rsc
APPROVED=rsc
DELTA=102  (89 added, 1 deleted, 12 changed)
OCL=35321
CL=35327

15 years agofix build
Russ Cox [Sat, 3 Oct 2009 22:02:11 +0000 (15:02 -0700)]
fix build

TBR=r
OCL=35308
CL=35308

15 years agoadd cgo test that doesn't depend on
Russ Cox [Sat, 3 Oct 2009 18:33:51 +0000 (11:33 -0700)]
add cgo test that doesn't depend on
non-standard libraries and add to build.

R=r
DELTA=211  (210 added, 0 deleted, 1 changed)
OCL=35293
CL=35307

15 years agoFixing HTTP POST handling to work with Chrome and Safari.
Bill Neubauer [Sat, 3 Oct 2009 18:09:01 +0000 (11:09 -0700)]
Fixing HTTP POST handling to work with Chrome and Safari.

request.go does not handle Content-Type correctly for the definition of
Media Types.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7

R=rsc
APPROVED=rsc
DELTA=44  (42 added, 0 deleted, 2 changed)
OCL=35274
CL=35306

15 years agoclean more
Russ Cox [Sat, 3 Oct 2009 17:38:03 +0000 (10:38 -0700)]
clean more

R=r
DELTA=40  (9 added, 3 deleted, 28 changed)
OCL=35277
CL=35305

15 years ago8c, 8l dynamic loading support.
Russ Cox [Sat, 3 Oct 2009 17:37:12 +0000 (10:37 -0700)]
8c, 8l dynamic loading support.
better mach binaries.
cgo working on darwin+linux amd64+386.
eliminated context switches - pi is 30x faster.
add libcgo to build.

on snow leopard:
  - non-cgo binaries work; all tests pass.
  - cgo binaries work on amd64 but not 386.

R=r
DELTA=2031  (1316 added, 626 deleted, 89 changed)
OCL=35264
CL=35304

15 years agoexpand error regexp in dns test
Russ Cox [Sat, 3 Oct 2009 17:35:49 +0000 (10:35 -0700)]
expand error regexp in dns test

R=r
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=35292
CL=35303

15 years agogarbage collections, conversions, concurrency
Rob Pike [Sat, 3 Oct 2009 16:38:47 +0000 (09:38 -0700)]
garbage collections, conversions, concurrency

R=iant,rsc,gri
DELTA=106  (87 added, 8 deleted, 11 changed)
OCL=35298
CL=35302

15 years ago- improved handling of white space around declarations and statements
Robert Griesemer [Sat, 3 Oct 2009 05:24:05 +0000 (22:24 -0700)]
- improved handling of white space around declarations and statements
- extra tests

R=rsc
DELTA=366  (264 added, 37 deleted, 65 changed)
OCL=35299
CL=35301

15 years agoadd comment about C API.
Russ Cox [Sat, 3 Oct 2009 01:07:27 +0000 (18:07 -0700)]
add comment about C API.
somehow managed not to Put this before.

R=r
DELTA=3  (3 added, 0 deleted, 0 changed)
OCL=35289
CL=35294

15 years agofinal Native Client package - av
Russ Cox [Fri, 2 Oct 2009 20:25:26 +0000 (13:25 -0700)]
final Native Client package - av

R=r
DELTA=894  (887 added, 0 deleted, 7 changed)
OCL=35115
CL=35286

15 years ago- allow parenthesized [...]T types as in: ([...]int){}
Robert Griesemer [Fri, 2 Oct 2009 17:03:25 +0000 (10:03 -0700)]
- allow parenthesized [...]T types as in: ([...]int){}
- added extra tests

R=rsc
DELTA=55  (37 added, 0 deleted, 18 changed)
OCL=35250
CL=35276

15 years agoa few more code generation bugs and an interface alignment issue.
Kai Backman [Fri, 2 Oct 2009 16:06:51 +0000 (09:06 -0700)]
a few more code generation bugs and an interface alignment issue.

go/test: passes 74% (251/339)

R=rsc
APPROVED=rsc
DELTA=40  (34 added, 0 deleted, 6 changed)
OCL=35254
CL=35275

15 years agoChange deflate.go's default compression level from 4 to 6.
Nigel Tao [Fri, 2 Oct 2009 00:50:16 +0000 (17:50 -0700)]
Change deflate.go's default compression level from 4 to 6.

R=rsc
APPROVED=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=35208
CL=35261

15 years agoreplace "ideal" with "untyped"
Robert Griesemer [Thu, 1 Oct 2009 23:58:17 +0000 (16:58 -0700)]
replace "ideal" with "untyped"

R=r
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=35242
CL=35258

15 years agouse the notion of "untyped constant" instead of "ideal constant"
Robert Griesemer [Thu, 1 Oct 2009 21:12:18 +0000 (14:12 -0700)]
use the notion of "untyped constant" instead of "ideal constant"

R=iant
DELTA=13  (1 added, 0 deleted, 12 changed)
OCL=35241
CL=35246

15 years agoFactored out boilerplate from all html docs in doc directory:
Robert Griesemer [Thu, 1 Oct 2009 21:08:00 +0000 (14:08 -0700)]
Factored out boilerplate from all html docs in doc directory:
- the first HTML comment in those files is extracted as page
  title when serving them
- lib/godoc.html is top-level template for all pages served
- experimented a bit with package documentation layout
  (feedback welcome)
- various related cleanups

TODO:
- The / page (doc/root.html) content repeats links that are
  in the navigation bar. It needs to be cleaned up.

R=rsc
DELTA=826  (86 added, 692 deleted, 48 changed)
OCL=35230
CL=35245

15 years agogenerate float registers correctly.
Kai Backman [Thu, 1 Oct 2009 20:52:55 +0000 (13:52 -0700)]
generate float registers correctly.

go/test: passes 71% (242/339)

R=rsc
APPROVED=rsc
DELTA=9  (5 added, 0 deleted, 4 changed)
OCL=35233
CL=35243

15 years agosome progress on arm linux syscall interface. ztypes_linux_arm
Kai Backman [Thu, 1 Oct 2009 13:55:01 +0000 (06:55 -0700)]
some progress on arm linux syscall interface. ztypes_linux_arm
still has problems with godefs.

R=rsc
APPROVED=rsc
DELTA=801  (134 added, 235 deleted, 432 changed)
OCL=35189
CL=35211

15 years agocgen_asop sudoaddable
Kai Backman [Thu, 1 Oct 2009 13:50:59 +0000 (06:50 -0700)]
cgen_asop sudoaddable

R=rsc
APPROVED=rsc
DELTA=14  (4 added, 0 deleted, 10 changed)
OCL=35190
CL=35210

15 years agofixed a few calls to gcmp and some really bothched OINDEX code
Kai Backman [Thu, 1 Oct 2009 01:56:37 +0000 (18:56 -0700)]
fixed a few calls to gcmp and some really bothched OINDEX code
(how did that happen?)

go/test: passes 70% (238/339)

R=rsc
APPROVED=rsc
DELTA=18  (10 added, 0 deleted, 8 changed)
OCL=35185
CL=35188

15 years agostep toward darwin ffi: factor out macho code
Russ Cox [Thu, 1 Oct 2009 00:33:39 +0000 (17:33 -0700)]
step toward darwin ffi: factor out macho code

R=r
DELTA=771  (374 added, 287 deleted, 110 changed)
OCL=35187
CL=35187

15 years agoload binary op arguments into registers
Kai Backman [Wed, 30 Sep 2009 21:28:18 +0000 (14:28 -0700)]
load binary op arguments into registers

go/test: passes 69% (237/339)

R=rsc
APPROVED=rsc
DELTA=12  (3 added, 9 deleted, 0 changed)
OCL=35178
CL=35180

15 years agocgo working on linux/386
Russ Cox [Wed, 30 Sep 2009 20:47:15 +0000 (13:47 -0700)]
cgo working on linux/386

R=r
DELTA=70  (47 added, 4 deleted, 19 changed)
OCL=35167
CL=35171

15 years agorename the public exvar package to be expvar.
Rob Pike [Wed, 30 Sep 2009 20:11:33 +0000 (13:11 -0700)]
rename the public exvar package to be expvar.

R=rsc
DELTA=684  (324 added, 324 deleted, 36 changed)
OCL=35161
CL=35163

15 years ago- completed section on built-in functions
Robert Griesemer [Wed, 30 Sep 2009 19:00:25 +0000 (12:00 -0700)]
- completed section on built-in functions
- moved Conversions section out of built-in functions and into expressions
- fixed syntax of conversions (parens are not mandatory if the type is not a TypeName)
  (this is the only change to the Conversions section; the rest of the text is just moved;
  old line: 4043, new line: 3078)
- fixed syntax of composite literals (parens are allowed around LiteralType)

DELTA=239  (115 added, 98 deleted, 26 changed)
OCL=35118
CL=35159

15 years agocgo: works on amd64.
Russ Cox [Wed, 30 Sep 2009 18:51:08 +0000 (11:51 -0700)]
cgo: works on amd64.
integrated into Makefiles (see misc/cgo/gmp/Makefile).

R=r
DELTA=1110  (540 added, 525 deleted, 45 changed)
OCL=35153
CL=35158

15 years agodelete
Russ Cox [Wed, 30 Sep 2009 18:06:35 +0000 (11:06 -0700)]
delete

R=r
DELTA=791  (0 added, 791 deleted, 0 changed)
OCL=35154
CL=35154

15 years agoc compiler bug tickled by
Russ Cox [Wed, 30 Sep 2009 17:25:22 +0000 (10:25 -0700)]
c compiler bug tickled by
void f(struct { int x[1]; } p) { }
the "int" was getting attached to f.

R=ken
OCL=35145
CL=35151

15 years agoanother brace of questions: types, maps, bookkeeping
Rob Pike [Wed, 30 Sep 2009 16:58:19 +0000 (09:58 -0700)]
another brace of questions: types, maps, bookkeeping

DELTA=136  (120 added, 13 deleted, 3 changed)
OCL=35133
CL=35147

15 years agoclean up error output;
Russ Cox [Wed, 30 Sep 2009 15:59:56 +0000 (08:59 -0700)]
clean up error output;
do not print entire buffer on error,
since it can be very large.
instead print identifying string.

R=krasin
DELTA=14  (1 added, 3 deleted, 10 changed)
OCL=35141
CL=35143

15 years agofix 386 build - register allocation and shift bug
Russ Cox [Wed, 30 Sep 2009 15:56:01 +0000 (08:56 -0700)]
fix 386 build - register allocation and shift bug

R=ken
OCL=35140
CL=35142

15 years agomissing error checking related to ([...]int){...}
Russ Cox [Wed, 30 Sep 2009 04:23:34 +0000 (21:23 -0700)]
missing error checking related to ([...]int){...}

R=ken
OCL=35132
CL=35132

15 years agonacl system call updates
Russ Cox [Wed, 30 Sep 2009 04:22:25 +0000 (21:22 -0700)]
nacl system call updates

R=r
DELTA=236  (211 added, 18 deleted, 7 changed)
OCL=35084
CL=35131

15 years agoundo 35108 (disallow parens around type in struct literal).
Russ Cox [Wed, 30 Sep 2009 04:21:14 +0000 (21:21 -0700)]
undo 35108 (disallow parens around type in struct literal).
allow parens around [...]int in struct literal.

R=ken
OCL=35112
CL=35130