summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-10-12sort errors by line numberRuss Cox8-49/+134
turn off testdclstack and "not used" errors when there are syntax errors. BUG=2181825 R=ken OCL=35606 CL=35608
2009-10-12stack overflow debugging and fix.Russ Cox7-30/+77
* in 6l, -K already meant check for stack underflow. add -KK to mean double-check stack overflows even in nosplit functions. * comment out print locks; they deadlock too easily but are still useful to put back for special occasions. * let runcgo assembly switch to scheduler stack without involving scheduler directly. because runcgo gets called from matchmg, it is too hard to keep it from being called on other stacks. R=r DELTA=94 (65 added, 18 deleted, 11 changed) OCL=35591 CL=35604
2009-10-12new builtin.c.boot from arm.Russ Cox3-2/+53
node printing fixes. silence incorrect redeclaration error. R=ken OCL=35602 CL=35602
2009-10-12fix comment on strings.LastIndex.Russ Cox5-3/+59
add bytes.LastIndex. add strings.Reader. R=r DELTA=59 (56 added, 0 deleted, 3 changed) OCL=35585 CL=35601
2009-10-11introduce non-strict mode in xml parser,Russ Cox2-22/+437
good enough to parse some html. in reader, add "comment" tag to collect comment text. do not allocate during Unmarshal unless pointer is nil. R=r DELTA=441 (416 added, 1 deleted, 24 changed) OCL=35586 CL=35594
2009-10-11correct a design flaw: Atoi etc should not guess the base.Russ Cox2-41/+113
leave that for Btoi with base == 0. R=r DELTA=146 (101 added, 29 deleted, 16 changed) OCL=35584 CL=35593
2009-10-11fix buildRuss Cox1-4/+0
TBR=r OCL=35592 CL=35592
2009-10-1164bit and float code generation. fmt compiles butKai Backman5-163/+374
reflect is broken so fmt doesn't work. go/test: passes 83% (285/342) R=rsc APPROVED=rsc DELTA=415 (240 added, 29 deleted, 146 changed) OCL=35576 CL=35588
2009-10-11PNG encoder now filters.Nigel Tao2-20/+122
R=r,rsc APPROVED=r DELTA=122 (102 added, 0 deleted, 20 changed) OCL=35573 CL=35587
2009-10-11better code for allocation through indirectionRob Pike1-8/+6
R=rsc DELTA=11 (3 added, 5 deleted, 3 changed) OCL=35583 CL=35583
2009-10-11fix bugs in gob.Rob Pike3-17/+77
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
2009-10-11interpreter checkpoint.Russ Cox8-132/+1447
* 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
2009-10-10fix float <-> int64 conversionsKai Backman3-0/+25
R=rsc APPROVED=rsc DELTA=25 (25 added, 0 deleted, 0 changed) OCL=35566 CL=35574
2009-10-10change Title to ToTitle for consistency. (the doc comment was already right)Rob Pike1-1/+1
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=35572 CL=35572
2009-10-10reallocate library, libraryobj: 50 isn't nearly enoughRob Pike2-5/+7
R=rsc DELTA=7 (2 added, 0 deleted, 5 changed) OCL=35569 CL=35569
2009-10-09In the PNG reader inner loop, collapse the two ReadFull calls into one.Nigel Tao2-24/+22
R=rsc,r APPROVED=rsc DELTA=29 (2 added, 4 deleted, 23 changed) OCL=35460 CL=35565
2009-10-09acid bug fix.Russ Cox1-0/+5
lock printf output to avoid interlacing debug prints. R=r DELTA=10 (7 added, 0 deleted, 3 changed) OCL=35539 CL=35561
2009-10-09handle compiler crash better:Russ Cox1-1/+2
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
2009-10-09bug209Russ Cox2-2/+2
R=ken OCL=35546 CL=35546
2009-10-09change date format in logs - was missing slash between month and dayRob Pike2-2/+2
R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=35526 CL=35540
2009-10-09keep a list of all the M's,Russ Cox2-1/+8
so that the garbage collector doesn't free them. R=ken OCL=35538 CL=35538
2009-10-09bug209.goRobert Griesemer2-1/+22
R=rsc DELTA=23 (22 added, 1 deleted, 0 changed) OCL=35529 CL=35537
2009-10-09Move rand.go to rng.go to prepare for some surgery.Dave Bort2-1/+1
R=rsc APPROVED=rsc DELTA=637 (318 added, 318 deleted, 1 changed) OCL=35534 CL=35536
2009-10-09time tests; sort -nr times.out | sed 10q is illuminating.Russ Cox9-15/+20
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
2009-10-09fix nacl buildRuss Cox3-18/+23
R=r DELTA=23 (5 added, 0 deleted, 18 changed) OCL=35510 CL=35518
2009-10-09floating point calc, added a few more packages that passKai Backman3-2/+61
go/test: passes 80% (274/340) R=rsc APPROVED=rsc DELTA=61 (59 added, 0 deleted, 2 changed) OCL=35506 CL=35517
2009-10-09rewrite errchk in perl for speed (compared to bash)Russ Cox2-68/+66
R=iant DELTA=125 (51 added, 53 deleted, 21 changed) OCL=35508 CL=35511
2009-10-08add & fix bug208, from ken.Russ Cox6-12/+42
fix bug198. R=ken OCL=35504 CL=35507
2009-10-08dupok, gcc compile fix, sync and syscall asm fixKai Backman4-7/+23
R=rsc APPROVED=rsc DELTA=27 (18 added, 0 deleted, 9 changed) OCL=35503 CL=35505
2009-10-08- debugging supportRobert Griesemer2-12/+110
R=rsc DELTA=110 (98 added, 0 deleted, 12 changed) OCL=35487 CL=35490
2009-10-08more lgtm files from gofmtRuss Cox78-1443/+1519
R=gri OCL=35485 CL=35488
2009-10-08Only clean the relevant installed files, not everything. ThisIan Lance Taylor1-2/+2
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
2009-10-08- rewrite declaration printing to take full use of discardable tabwriter columnsRobert Griesemer6-139/+334
- 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
2009-10-07PNG encoder unit test.Nigel Tao2-7/+78
R=rsc,r APPROVED=r DELTA=84 (77 added, 6 deleted, 1 changed) OCL=35456 CL=35458
2009-10-07add & fix bug207: rewritten if conditionRuss Cox2-2/+32
was discarding initialization work. R=ken OCL=35454 CL=35457
2009-10-07better handling of mistaken top-level variableRuss Cox5-35/+27
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
2009-10-07do not import testing twice when testing testing.Russ Cox1-1/+3
R=r DELTA=3 (2 added, 0 deleted, 1 changed) OCL=35443 CL=35445
2009-10-07apply gofmt to rand reflect regexp rpc runtime sort strconv strings sync ↵Russ Cox41-1301/+1356
syscall testing time unicode unsafe utf8 R=gri DELTA=1409 (79 added, 24 deleted, 1306 changed) OCL=35415 CL=35437
2009-10-07support for "hard" and "soft" tabs:Robert Griesemer2-18/+53
- 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
2009-10-07factor portable object+library bits out of 5l/6l/8l into ldRuss Cox33-2085/+952
R=r DELTA=3214 (904 added, 2260 deleted, 50 changed) OCL=35425 CL=35427
2009-10-06make reader more usefulRuss Cox1-11/+56
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
2009-10-06apply gofmt to go, gob, hash, http, image, io, json, logRuss Cox36-1156/+1262
R=gri DELTA=1359 (138 added, 32 deleted, 1189 changed) OCL=35408 CL=35420
2009-10-06apply gofmt to malloc math once osRuss Cox43-544/+534
R=gri DELTA=566 (4 added, 14 deleted, 548 changed) OCL=35410 CL=35419
2009-10-06apply gofmt to auto-generated syscall filesRuss Cox25-3916/+3993
R=gri DELTA=4023 (104 added, 27 deleted, 3892 changed) OCL=35416 CL=35418
2009-10-065l library loading, 64 bit entry pointsKai Backman2-6/+55
R=rsc APPROVED=rsc DELTA=58 (52 added, 3 deleted, 3 changed) OCL=35417 CL=35417
2009-10-06- moved 3 functions from syscall_linux to _386 and _amd64 (arm lacks them)Kai Backman9-12/+198
- 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
2009-10-06fix build - missing from 35404Russ Cox1-0/+7
TBR=gri OCL=35411 CL=35411
2009-10-06- set uint type for flagsRobert Griesemer1-16/+16
- simplified some code R=rsc DELTA=19 (0 added, 0 deleted, 19 changed) OCL=35405 CL=35407
2009-10-06apply gofmt to datafmt, ebnf, exec, expvar, flag, fmtRuss Cox8-407/+410
R=gri DELTA=456 (6 added, 3 deleted, 447 changed) OCL=35398 CL=35406
2009-10-06more comment work.Russ Cox1-50/+21
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