summaryrefslogtreecommitdiff
path: root/src/cmd/gc
AgeCommit message (Collapse)AuthorFilesLines
2009-10-08add & fix bug208, from ken.Russ Cox3-4/+20
fix bug198. R=ken OCL=35504 CL=35507
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-06another round of gofmt applicationsRuss Cox1-0/+1
R=gri DELTA=900 (106 added, 31 deleted, 763 changed) OCL=35384 CL=35396
2009-10-06apply gofmt to the LGTM-marked files from 34501Russ Cox2-78/+78
that have not changed since I applied gofmt. R=gri DELTA=456 (77 added, 3 deleted, 376 changed) OCL=35378 CL=35383
2009-10-03clean moreRuss Cox1-1/+1
R=r DELTA=40 (9 added, 3 deleted, 28 changed) OCL=35277 CL=35305
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-29disallow parens around type in struct literal syntax,Russ Cox1-2/+17
per discussion with gri. R=ken OCL=35108 CL=35108
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-21ideal bools and related fixesRuss Cox10-37/+73
R=ken OCL=34859 CL=34865
2009-09-17move static init code from 6g into gc.Russ Cox2-0/+156
hook up to 8g and 5g too. R=ken OCL=34768 CL=34768
2009-09-17check for unused importsRuss Cox4-25/+64
R=ken OCL=34732 CL=34756
2009-09-15make 6g match spec:Russ Cox1-8/+13
no semicolon allowd after package clause. semicolon allowed after import statement. no doubled semicolons allowed R=ken OCL=34674 CL=34674
2009-09-15declared and not used; this time for sureRuss Cox4-6/+17
R=ken OCL=34657 CL=34657
2009-09-14declared and not used error, but disabled.Russ Cox5-6/+20
fix some bugs involving _. R=ken OCL=34621 CL=34621
2009-09-09composit literal underKen Thompson4-485/+542
init function context. also moved composit literal code from walk.c to sinit.c R=rsc OCL=34503 CL=34503
2009-09-09a few more blank testsRuss Cox3-8/+12
R=ken OCL=34500 CL=34500
2009-09-09check type of string/map/array index expressionsRuss Cox1-0/+6
R=ken OCL=34478 CL=34480
2009-09-09error message fixesRuss Cox2-3/+6
x == nil x.go:5: cannot use nil as bool c := x.(type); x.go:88: use of .(type) outside type switch R=ken OCL=34476 CL=34476
2009-09-09defining package block names must overrideRuss Cox9-91/+126
universe block names. BUG=2097244 R=ken OCL=34295 CL=34473
2009-09-09update type switch to match spec.Russ Cox4-58/+91
R=ken OCL=34471 CL=34471
2009-09-08write-only variable _Russ Cox9-16/+129
R=ken OCL=34465 CL=34470
2009-09-08init context for composit literalsKen Thompson3-1/+48
R=rsc OCL=34462 CL=34462
2009-09-08pass Type* to makechan and makemap so thatRuss Cox3-13/+10
they can get the official alignment out of there instead of guessing. R=ken OCL=34450 CL=34450
2009-09-07maps in static initializationKen Thompson1-3/+124
R=rsc OCL=34434 CL=34434
2009-09-06more static initKen Thompson1-6/+87
almost done R=rsc OCL=34422 CL=34422
2009-09-05composit literalsKen Thompson6-101/+194
plateau - more to come R=rsc OCL=34413 CL=34413
2009-09-03stop using filename for disambiguation within a package.Russ Cox5-35/+5
R=ken OCL=34339 CL=34341
2009-09-02fix one bug involving [...] constructors.Russ Cox3-2/+8
added iant's bug202 (in main code) and ken's bug203 (in init function). bug187 remains at large. R=ken OCL=34293 CL=34293
2009-09-02the last bug involving type hashesRuss Cox7-58/+358
R=ken OCL=34244 CL=34249
2009-09-01type switch bug involving function parameter namesRuss Cox2-4/+8
R=ken OCL=34232 CL=34232
2009-09-01catch package net import "net" for releaseRuss Cox1-0/+10
R=ken OCL=34205 CL=34207
2009-08-30cleanup getting ready for static initKen Thompson3-482/+21
R=rsc OCL=34090 CL=34090
2009-08-27clean up ideal handling; reject attemptsRuss Cox4-31/+33
to write type descriptors for ideal types R=ken OCL=33958 CL=33958
2009-08-26bug slicing array - cap is hugeKen Thompson1-1/+1
R=rsc OCL=33936 CL=33936
2009-08-25rename runtime internals to have modern names (array->slice etc)Rob Pike5-40/+42
R=rsc DELTA=444 (179 added, 177 deleted, 88 changed) OCL=33847 CL=33849
2009-08-24bug132Russ Cox1-1/+10
R=ken OCL=33792 CL=33803
2009-08-24gc: handle iface == nil in back endRuss Cox1-2/+10
R=ken OCL=33778 CL=33781
2009-08-24bug197Russ Cox4-2/+15
R=ken OCL=33765 CL=33765
2009-08-24bug189Russ Cox1-0/+2
R=ken OCL=33745 CL=33745
2009-08-23half of bug193Russ Cox2-2/+17
R=ken OCL=33730 CL=33730
2009-08-21fix bug195Russ Cox1-1/+1
R=ken OCL=33700 CL=33700
2009-08-21fix crash in bug194; add bug196Russ Cox1-2/+2
R=ken OCL=33694 CL=33697
2009-08-20symbol bugs.Russ Cox2-0/+12
do not emit unreachable data symbols. R=austin DELTA=103 (71 added, 4 deleted, 28 changed) OCL=33325 CL=33622
2009-08-20len and cap on chansRuss Cox1-3/+2
R=ken OCL=33599 CL=33599
2009-08-19produce diagnostic forRuss Cox5-9/+11
import "fmt" var fmt = 1 R=ken OCL=33556 CL=33561
2009-08-19try to do better line number reportingRuss Cox6-120/+102
in the presence of yacc lookahead. better but still not perfect R=ken OCL=33541 CL=33541
2009-08-19fix import dot bugRuss Cox2-2/+1
R=ken OCL=33526 CL=33528