summaryrefslogtreecommitdiff
path: root/src/cmd
AgeCommit message (Collapse)AuthorFilesLines
2009-10-10fix float <-> int64 conversionsKai Backman2-0/+12
R=rsc APPROVED=rsc DELTA=25 (25 added, 0 deleted, 0 changed) OCL=35566 CL=35574
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-09bug209Russ Cox1-1/+1
R=ken OCL=35546 CL=35546
2009-10-09fix nacl buildRuss Cox1-1/+1
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 Backman1-1/+43
go/test: passes 80% (274/340) R=rsc APPROVED=rsc DELTA=61 (59 added, 0 deleted, 2 changed) OCL=35506 CL=35517
2009-10-08add & fix bug208, from ken.Russ Cox3-4/+20
fix bug198. R=ken OCL=35504 CL=35507
2009-10-08dupok, gcc compile fix, sync and syscall asm fixKai Backman3-4/+17
R=rsc APPROVED=rsc DELTA=27 (18 added, 0 deleted, 9 changed) OCL=35503 CL=35505
2009-10-08more lgtm files from gofmtRuss Cox2-99/+104
R=gri OCL=35485 CL=35488
2009-10-07add & fix bug207: rewritten if conditionRuss Cox1-2/+9
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-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-065l library loading, 64 bit entry pointsKai Backman1-6/+31
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 Backman2-8/+26
- 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 buildRob Pike1-0/+5
R=rsc DELTA=5 (5 added, 0 deleted, 0 changed) OCL=35387 CL=35401
2009-10-06another round of gofmt applicationsRuss Cox1-0/+1
R=gri DELTA=900 (106 added, 31 deleted, 763 changed) OCL=35384 CL=35396
2009-10-06cleaned up cgen() to be a bit more straightforward.Kai Backman1-58/+48
R=rsc APPROVED=rsc DELTA=104 (46 added, 56 deleted, 2 changed) OCL=35392 CL=35394
2009-10-06apply gofmt to the LGTM-marked files from 34501Russ Cox8-148/+145
that have not changed since I applied gofmt. R=gri DELTA=456 (77 added, 3 deleted, 376 changed) OCL=35378 CL=35383
2009-10-0664 bit cmp and some sgen tweaksKai Backman3-89/+133
go/test: passes 75% (256/339) R=rsc APPROVED=rsc DELTA=142 (53 added, 4 deleted, 85 changed) OCL=35367 CL=35375
2009-10-05allow multiple -L optionsRob Pike4-16/+28
R=rsc DELTA=31 (15 added, 3 deleted, 13 changed) OCL=35364 CL=35364
2009-10-05remove a file from idempotency test so that the entire suite passesRobert Griesemer1-2/+2
R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=35355 CL=35358
2009-10-03clean moreRuss Cox20-22/+20
R=r DELTA=40 (9 added, 3 deleted, 28 changed) OCL=35277 CL=35305
2009-10-038c, 8l dynamic loading support.Russ Cox17-204/+474
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
2009-10-02a few more code generation bugs and an interface alignment issue.Kai Backman3-6/+31
go/test: passes 74% (251/339) R=rsc APPROVED=rsc DELTA=40 (34 added, 0 deleted, 6 changed) OCL=35254 CL=35275
2009-10-01Factored out boilerplate from all html docs in doc directory:Robert Griesemer1-42/+75
- 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
2009-10-01generate float registers correctly.Kai Backman1-4/+6
go/test: passes 71% (242/339) R=rsc APPROVED=rsc DELTA=9 (5 added, 0 deleted, 4 changed) OCL=35233 CL=35243
2009-10-01cgen_asop sudoaddableKai Backman1-22/+61
R=rsc APPROVED=rsc DELTA=14 (4 added, 0 deleted, 10 changed) OCL=35190 CL=35210
2009-09-30fixed a few calls to gcmp and some really bothched OINDEX codeKai Backman1-8/+17
(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
2009-09-30step toward darwin ffi: factor out macho codeRuss Cox12-391/+478
R=r DELTA=771 (374 added, 287 deleted, 110 changed) OCL=35187 CL=35187
2009-09-30load binary op arguments into registersKai Backman1-9/+1
go/test: passes 69% (237/339) R=rsc APPROVED=rsc DELTA=12 (3 added, 9 deleted, 0 changed) OCL=35178 CL=35180
2009-09-30cgo working on linux/386Russ Cox6-18/+43
R=r DELTA=70 (47 added, 4 deleted, 19 changed) OCL=35167 CL=35171
2009-09-30cgo: works on amd64.Russ Cox6-552/+53
integrated into Makefiles (see misc/cgo/gmp/Makefile). R=r DELTA=1110 (540 added, 525 deleted, 45 changed) OCL=35153 CL=35158
2009-09-30c compiler bug tickled byRuss Cox1-0/+8
void f(struct { int x[1]; } p) { } the "int" was getting attached to f. R=ken OCL=35145 CL=35151
2009-09-30fix 386 build - register allocation and shift bugRuss Cox2-13/+23
R=ken OCL=35140 CL=35142
2009-09-29missing error checking related to ([...]int){...}Russ Cox2-1/+6
R=ken OCL=35132 CL=35132
2009-09-29undo 35108 (disallow parens around type in struct literal).Russ Cox1-17/+7
allow parens around [...]int in struct literal. R=ken OCL=35112 CL=35130
2009-09-29fix munging of pointer.Kai Backman1-1/+0
go/test: passes 69% (235/339) R=rsc APPROVED=rsc DELTA=5 (4 added, 1 deleted, 0 changed) OCL=35107 CL=35109
2009-09-29disallow parens around type in struct literal syntax,Russ Cox1-2/+17
per discussion with gri. R=ken OCL=35108 CL=35108
2009-09-29fixed alignment issue resulting from confusion around theKai Backman1-4/+5
meaning of out args. go/test: passes 68% (231/339) R=rsc APPROVED=rsc DELTA=13 (7 added, 0 deleted, 6 changed) OCL=35072 CL=35080
2009-09-28- added gcmp for proper ACMP generation, changed all callKai Backman3-77/+105
sites plus optimized constant code a bit (one less register used). - changed conditional branches, might need a re-tweak later - gave up on agen OINDEX and copied/fixed the version in 8g go/test: passes 66% (225/339) R=rsc APPROVED=rsc DELTA=148 (67 added, 32 deleted, 49 changed) OCL=35040 CL=35055
2009-09-28disallow interface { x, y() }Russ Cox1-10/+9
R=ken OCL=35042 CL=35044
2009-09-24comparisons have type boolRuss Cox1-6/+6
R=ken OCL=34995 CL=34997
2009-09-24missing files; cleaned up g4 nothave output.Russ Cox1-0/+6
fixes 386 build. R=r DELTA=56 (56 added, 0 deleted, 0 changed) OCL=34979 CL=34981
2009-09-24convert 8l to new ELF code.Russ Cox10-379/+722
mostly cut and paste from 6l. R=r DELTA=930 (525 added, 182 deleted, 223 changed) OCL=34976 CL=34976
2009-09-24allow runes >= 0x80 in symbols in #pragmasRuss Cox1-2/+2
R=ken OCL=34975 CL=34975
2009-09-24cgo checkpoint.Russ Cox7-67/+846
can write all 3 output files and then compile them by hand. R=r DELTA=919 (841 added, 16 deleted, 62 changed) OCL=34954 CL=34973
2009-09-22nacl - run tests under emulator.Russ Cox1-1/+7
special all-nacl.bash and test/run-nacl that run just the tests known to work under nacl. the rest requires closures. fix another bug or two in syscall. R=r DELTA=420 (410 added, 8 deleted, 2 changed) OCL=34882 CL=34907
2009-09-22fix bad code generation.Kai Backman2-8/+7
go/test: passes 64% (215/337) tests metric updated, had total number of tests wrong. number of failing tests is down from 129 to 122. R=rsc APPROVED=rsc DELTA=228 (12 added, 5 deleted, 211 changed) OCL=34897 CL=34899
2009-09-22use $(shell uname) instead of $GOOS whenRuss Cox2-2/+2
deciding what the host process support is. this makes a cross-compiling (e.g., GOOS=nacl) build still generate valid host debugger binaries. R=r DELTA=5 (0 added, 0 deleted, 5 changed) OCL=34878 CL=34889
2009-09-22nacl:Russ Cox4-5/+35
add jmp to constant pc. generate HLT for INT $3 do not insert NOPs between REP/REPN and subsequent instruction. allow very long time for convergence. R=ken OCL=34879 CL=34879