summaryrefslogtreecommitdiff
path: root/src/cmd/gc
AgeCommit message (Collapse)AuthorFilesLines
2009-12-026g etc: groundwork for eliminating redundant bounds checks.Russ Cox2-3/+14
drop check in range over array. drop check in [256]array indexed by byte. R=ken2 http://codereview.appspot.com/163088
2009-11-24gc: correct type check for x, ok map assignmentRuss Cox1-1/+1
Fixes issue 288. R=ken2 http://codereview.appspot.com/157162
2009-11-23go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia1-1/+1
the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes issue 115. R=rsc, dsymonds1 http://codereview.appspot.com/157067 Committer: Russ Cox <rsc@golang.org>
2009-11-20x[y:] for stringsRuss Cox4-5/+13
R=ken2 http://codereview.appspot.com/157114
2009-11-20x[lo:] - gc and runtime.Russ Cox5-27/+52
* add runtime sliceslice1 for x[lo:] * remove runtime arraytoslice, rewriting &arr into arr[0:len(arr)]. * port cgen_inline into 8g, 5g. * use native memmove in maps R=ken2 http://codereview.appspot.com/157106
2009-11-19gc: reject large channel values at compile timeRuss Cox2-0/+13
Fixes issue 144. R=ken2 CC=agl1 http://codereview.appspot.com/156102
2009-11-18gc: allow implicit conversion of *[10]int -> []intRuss Cox1-2/+26
when used as arg to copy. R=ken2 http://codereview.appspot.com/157071
2009-11-18slicecopy was always using 16 (sizeof slice) for the size instead of size of ↵Rob Pike1-1/+1
element. R=rsc CC=ken2, golang-dev http://codereview.appspot.com/156083
2009-11-17allow copy to be used without a return valueKen Thompson1-8/+8
R=rsc http://codereview.appspot.com/156060
2009-11-17install copy predefinedKen Thompson8-1/+45
did not test 386, but should work shouldnt matter if copy is not used R=rsc http://codereview.appspot.com/156055
2009-11-16gc: change "can we const evaluate this" from blacklist to whitelistRuss Cox1-6/+30
R=ken2 http://codereview.appspot.com/155074
2009-11-15gc: five bug fixes, one better error.Russ Cox10-59/+130
* check for struct literal assignment to private fields. * record, fix crash involving parallel map assignment. * avoid infinite recursion in exportassignok. * make floating point bounds check precise. * avoid crash on invalid receiver. * add context to error about implicit assignment. Fixes issue 86. Fixes issue 88. Fixes issue 158. Fixes issue 174. Fixes issue 201. Fixes issue 204. R=ken2 http://codereview.appspot.com/154144
2009-11-14gc: do not try to constant-evaluate (interface{})("bar")Russ Cox1-0/+1
Fixes issue 183. R=ken http://codereview.appspot.com/154139
2009-11-12yet another attempt to avoid conflicts withRuss Cox2-3/+6
<stdio.h>, which we weren't even #including R=r http://codereview.appspot.com/154108
2009-11-11avoid seg fault when return type is unknownRuss Cox1-0/+5
Fixes issue 80. R=ken http://codereview.appspot.com/154079
2009-11-11fix BUFSIZ redeclaration warningsRuss Cox1-1/+1
R=r http://codereview.appspot.com/152085
2009-11-11getc/ungetc in assemblers; BUFSIZ everywhere.Russ Cox1-0/+1
Fixes issue 67. R=r http://codereview.appspot.com/154068
2009-11-11avoid clash with stdio's getc, ungetc.Russ Cox1-0/+5
Fixes issue 50. R=r http://codereview.appspot.com/154064
2009-11-11gc: increase maximum path size in getwd from 100 to 1000.Russ Cox1-2/+2
Fixes issue 31. To try the fix before the next release: hg pull -u R=r1, r http://codereview.appspot.com/154058
2009-11-09error rewording suggested by robert.Russ Cox1-8/+3
update comment. R=ken http://go/go-review/1025031
2009-11-09tweak documentation of commandsRuss Cox1-1/+1
so that first sentence is better for cmd page. live at http://r45:3456/cmd/ R=gri, r http://go/go-review/1024034
2009-11-08bug212, bug213.Russ Cox3-10/+26
R=ken http://go/go-review/1026032
2009-11-08assorted cleanupRuss Cox1-1/+1
R=r, iant CC=go-dev http://go/go-review/1025024
2009-11-068g optimizerKen Thompson1-6/+6
R=rsc http://go/go-review/1025011
2009-11-03document the gc go compilers.Rob Pike2-1/+47
fix the usage message. R=rsc CC=go-dev http://go/go-review/1016033
2009-11-02do not emit USED for global x when compiling "_ = x;"Russ Cox1-1/+1
R=ken@golang.org CC=r http://go/go-review/1018019
2009-11-01misc cleanupRuss Cox1-1/+1
R=r http://go/go-review/1016017
2009-10-23all of pkg now compiles, fixes a few more testsKai Backman1-2/+2
go/test: passes 90% (313/345) R=rsc APPROVED=rsc DELTA=90 (83 added, 3 deleted, 4 changed) OCL=36011 CL=36023
2009-10-20address bug193 and add note to spec about it.Russ Cox3-6/+7
R=ken OCL=35920 CL=35920
2009-10-20bug162, over and overRuss Cox2-8/+7
R=ken OCL=35919 CL=35919
2009-10-19bug196Russ Cox3-11/+32
R=ken OCL=35905 CL=35905
2009-10-19bug136Russ Cox3-27/+10
R=ken OCL=35902 CL=35904
2009-10-19bug169Russ Cox1-2/+4
R=ken OCL=35899 CL=35899
2009-10-196g bug fixes:Russ Cox2-5/+15
* bug211 * embedded interfaces with lowercase methods * var _ = f() at top level R=ken OCL=35898 CL=35898
2009-10-19bug190.Russ Cox6-109/+135
also eliminate float80 dregs R=ken OCL=35894 CL=35896
2009-10-15rename sys functions to runtime,Russ Cox11-94/+95
because they are in package runtime. another step to enforcing package boundaries. R=r DELTA=732 (114 added, 93 deleted, 525 changed) OCL=35811 CL=35824
2009-10-15do not migrate x to the heap because of *&x.Russ Cox2-15/+23
R=ken OCL=35799 CL=35799
2009-10-12sort errors by line numberRuss Cox7-47/+132
turn off testdclstack and "not used" errors when there are syntax errors. BUG=2181825 R=ken OCL=35606 CL=35608
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-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-09bug209Russ Cox1-1/+1
R=ken OCL=35546 CL=35546
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