summaryrefslogtreecommitdiff
path: root/src/cmd/gc/walk.c
AgeCommit message (Collapse)AuthorFilesLines
2009-04-07func f() (int, int);Russ Cox1-23/+35
x := f(); used to give fatal error: dowidth fn struct struct { int; int } now gives assignment count mismatch: 1 = 2 R=ken OCL=27198 CL=27201
2009-04-06set line number for errors produced during walkstate.Russ Cox1-0/+1
R=ken OCL=27145 CL=27145
2009-04-03fix both of anton's bugs:Russ Cox1-12/+10
* make([100]int) was being compiled to make([]int), kind of. * []this = [100]that was working for any this, that. turned up a typo in pipe_test.go R=ken OCL=27081 CL=27081
2009-03-30move alignment calculations into gcRuss Cox1-1/+3
R=ken OCL=26914 CL=26914
2009-03-20range over channels.Russ Cox1-4/+33
also fix multiple-evaluation bug in range over arrays. R=ken OCL=26576 CL=26576
2009-03-18fix b/1722502Russ Cox1-0/+3
BUG=1722502 R=ken OCL=26526 CL=26526
2009-03-12make 6g constants behave as ken proposes. (i hope.)Russ Cox1-120/+116
various bug fixes and tests involving constants. test/const1.go is the major new test case. R=ken OCL=26216 CL=26224
2009-03-12chan flags close/closed installedKen Thompson1-0/+50
runtime not finished. R=r OCL=26217 CL=26217
2009-03-11added bitclear operators &^ and &^=Ken Thompson1-1/+17
R=r OCL=26152 CL=26152
2009-03-11bug 125Ken Thompson1-4/+18
R=r OCL=26146 CL=26146
2009-03-10bug086Ken Thompson1-1/+3
R=r OCL=26090 CL=26090
2009-03-05new switch implementationKen Thompson1-147/+48
in preparation of type switch. no functional change (yet). R=r OCL=25784 CL=25788
2009-03-04disallow ordinary-type.(T), as in spec.Russ Cox1-0/+3
R=ken OCL=25705 CL=25705
2009-03-03back to T{x}, stricter handling of T(x) vs x.(T)Russ Cox1-52/+51
R=ken DELTA=131 (60 added, 41 deleted, 30 changed) OCL=25617 CL=25633
2009-02-21bug with select :=Ken Thompson1-1/+1
R=r OCL=25278 CL=25278
2009-02-16bug123Russ Cox1-1/+6
R=ken OCL=25075 CL=25075
2009-02-15bug fix for &x[0] when x is sliceRuss Cox1-4/+7
R=ken OCL=25044 CL=25044
2009-02-13add composite literal ( ) syntax.Russ Cox1-137/+172
warn about composite literal { } syntax. R=ken OCL=25018 CL=25023
2009-02-11require type assertions when narrowing.Russ Cox1-10/+10
R=ken OCL=24350 CL=24914
2009-02-08add error to catch 6g alignment bug.Russ Cox1-0/+5
the fix appears to be to align the out struct on an 8 boundary, but that is a bit involved. R=ken OCL=24657 CL=24657
2009-02-08gc funarg return fix.Russ Cox1-2/+5
change type (to satisfy OAS) after nodarg: nodarg uses offset from type too, and must use correct offset. R=ken OCL=24656 CL=24656
2009-02-06closures - 6g supportRuss Cox1-12/+13
R=ken OCL=24501 CL=24566
2009-02-05bug064Russ Cox1-2/+2
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
2009-01-30avoid memcpy(x, x),Russ Cox1-1/+1
which valgrind complains about. R=ken OCL=23990 CL=23990
2009-01-30update compiler to new func rulesRuss Cox1-3/+9
R=ken OCL=23958 CL=23961
2009-01-29if take address of local, move to heap.Russ Cox1-56/+193
heuristic to not print bogus strings. fix one error message format. R=ken OCL=23849 CL=23851
2009-01-27bug 135Ken Thompson1-7/+24
R=r OCL=23646 CL=23646
2009-01-27change dotdotdot interfaces to be structs,Russ Cox1-10/+8
not pointers to structs. fix defered dotdotdot. R=r,ken DELTA=25 (7 added, 5 deleted, 13 changed) OCL=23620 CL=23625
2009-01-27deferKen Thompson1-0/+3
R=r OCL=23592 CL=23592
2009-01-26assignment count mismatch: 2 = 1.Russ Cox1-3/+8
R=ken OCL=23534 CL=23534
2009-01-26print(map) and print(chan) as pointers.Russ Cox1-3/+3
R=ken OCL=23520 CL=23520
2009-01-09clean up automatic indirect, delete some dead code.Russ Cox1-66/+53
R=ken OCL=22454 CL=22457
2009-01-096g cleanup suggested by ken.Russ Cox1-95/+39
remove TPTR wrapper around TMAP, TCHAN, TSTRING. R=ken OCL=22406 CL=22409
2009-01-08second pass on interface fixes and tests.Russ Cox1-55/+55
R=ken OCL=22370 CL=22372
2009-01-08fix:Russ Cox1-1/+3
type T []int var a []int var t = T(a) R=ken OCL=22341 CL=22341
2009-01-08typoRuss Cox1-1/+1
R=ken OCL=22327 CL=22327
2009-01-08many interface bug fixes.Russ Cox1-12/+22
also, after func g() (int, int) func f(int, int) allow f(g()) and func h() (int, int) { return g() } R=ken DELTA=356 (252 added, 26 deleted, 78 changed) OCL=22319 CL=22325
2009-01-07moreKen Thompson1-1/+2
R=r OCL=22240 CL=22240
2009-01-07conversion from closed array to sliceKen Thompson1-51/+30
R=r OCL=22236 CL=22236
2009-01-07[...] bugKen Thompson1-21/+22
R=r OCL=22218 CL=22218
2009-01-07clear automatic arrays created with literalsKen Thompson1-57/+71
R=r OCL=22215 CL=22215
2009-01-06closed arrays including [...]Ken Thompson1-9/+20
R=r OCL=22182 CL=22182
2009-01-06fix newfnRuss Cox1-1/+2
R=ken OCL=22173 CL=22173
2009-01-06new new &Point{1,2}Russ Cox1-2/+2
R=ken OCL=22168 CL=22168
2009-01-06make for slice/map/chanKen Thompson1-13/+57
new for pointers R=r OCL=22158 CL=22158
2008-12-26diagnostic to catch pointer toKen Thompson1-1/+7
rvalue promoted to method receiver. fixes to bignum that failed. R=r OCL=21827 CL=21827
2008-12-20fix new(T) if type T []int.Russ Cox1-0/+1
make sure type of expr is T not just []int R=ken OCL=21688 CL=21688
2008-12-19[] and struct in interfaces.Russ Cox1-29/+40
other [] cleanup. convert() is gone. R=r DELTA=352 (144 added, 68 deleted, 140 changed) OCL=21660 CL=21662
2008-12-19portability bugKen Thompson1-0/+2
cant assign to closed array R=r OCL=21634 CL=21634
2008-12-19fix new(bool) error messageRuss Cox1-8/+8
R=ken OCL=21616 CL=21616