summaryrefslogtreecommitdiff
path: root/src/cmd/6g
Commit message (Collapse)AuthorAgeFilesLines
* gc: allow taking address of out parametersRuss Cox2010-03-261-3/+24
| | | | | | | | Fixes issue 186. R=ken2 CC=golang-dev http://codereview.appspot.com/793041
* issue 682Ken Thompson2010-03-201-1/+21
| | | | | | | | | complex DATA statement fo initialization of complex variables. R=rsc CC=golang-dev http://codereview.appspot.com/634045
* identical complex implementationKen Thompson2010-03-094-570/+6
| | | | | | | | | for 6g and 8g. can also be used for 5g. 5g is still a stub. R=rsc CC=golang-dev http://codereview.appspot.com/362041
* 5g/6g/8g: fix double function call in sliceRuss Cox2010-03-081-32/+24
| | | | | | | | Fixes issue 654. R=ken2 CC=golang-dev http://codereview.appspot.com/310041
* 6g complex type usableKen Thompson2010-03-053-74/+166
| | | | | | | | 8g and 5g have stubs to ignore complex R=rsc CC=golang-dev http://codereview.appspot.com/257042
* gc: better compilation of floating point +=Russ Cox2010-03-051-9/+17
| | | | | | R=ken2 CC=golang-dev http://codereview.appspot.com/255042
* more on type complex.Ken Thompson2010-03-024-10/+138
| | | | | | | | getting close. R=rsc CC=golang-dev http://codereview.appspot.com/224105
* all done except -Ken Thompson2010-02-213-103/+297
| | | | | | | | | | | complex divide float(complex) conversion 8g 5g etc tests R=rsc CC=golang-dev http://codereview.appspot.com/218044
* fixed bug in mpconst float multiply by 0.Ken Thompson2010-02-195-0/+196
| | | | | | | | more complex -- constants, variables and print. R=rsc CC=golang-dev http://codereview.appspot.com/217061
* new types complex, complex64 and complex128Ken Thompson2010-02-171-0/+1
| | | | | | | | | | | | only front-end compiler work. best to do thin in 3 steps 1. frontend 2. backend 3. lib R=rsc CC=golang-dev http://codereview.appspot.com/214042
* gc: add ... T, rework plain ...Russ Cox2010-02-011-1/+0
| | | | | | | | No longer a distinct type; now a property of func types. R=ken2 CC=golang-dev http://codereview.appspot.com/197042
* change print print buffer sizeKen Thompson2010-01-271-2/+2
| | | | | | | | to go with the full path names R=rsc CC=golang-dev http://codereview.appspot.com/195079
* eliminate the package global name space assumption in object filesRuss Cox2010-01-224-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | 5g/6g/8g: add import statements to export metadata, mapping package path to package name. recognize "" as the path of the package in export metadata. use "" as the path of the package in object symbol names. 5c/6c/8c, 5a/6a/8a: rewrite leading . to "". so that ?Sin means Sin in this package. 5l/6l/8l: rewrite "" in symbol names as object files are read. gotest: handle new symbol names. gopack: handle new import lines in export metadata. Collectively, these changes eliminate the assumption of a global name space in the object file formats. Higher level pieces such as reflect and the computation of type hashes still depend on the assumption; we're not done yet. R=ken2, r, ken3 CC=golang-dev http://codereview.appspot.com/186263 Committer: Russ Cox <rsc@golang.org>
* part 2 of sudoaddable optimizationKen Thompson2010-01-201-17/+42
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/190088
* cleanup toward eliminating package global name spaceRuss Cox2010-01-191-8/+1
| | | | | | | | | | | | * switch to real dot (.) instead of center dot (?) everywhere in object files. before it was half and half depending on where in the name it appeared. * in 6c/6a/etc identifiers, ? can still be used but turns into . immediately. * in export metadata, replace package identifiers with quoted strings (still package names, not paths). R=ken2, r CC=golang-dev http://codereview.appspot.com/190076
* start of better addressing ofKen Thompson2010-01-191-8/+32
| | | | | | | | arrays/slices in structures R=rsc CC=golang-dev http://codereview.appspot.com/190077
* Don't check array bounds if we have been told not to.Ian Lance Taylor2010-01-151-1/+1
| | | | | | | | Fixes range.go test for 6g. R=rsc CC=golang-dev http://codereview.appspot.com/189093
* more on the optimizerKen Thompson2009-12-121-13/+24
| | | | | | | | trying to get alizses to optimize R=rsc http://codereview.appspot.com/176061
* bug in 6g optimizerKen Thompson2009-12-112-57/+54
| | | | | | | 8g still needs fixing R=rsc http://codereview.appspot.com/176057
* Continuation of issue 221 fix. When 8g or 6g or 5g are called with aCharles L. Dorian2009-12-091-1/+1
| | | | | | | | | | | | | | UTF-8 string, Yconv() converts it into an octal sequence. If the string converted to more than 30 bytes, the str buffer would overflow. For example, 4 Greek runes became 32 bytes, 3 Hiragana runes became 36 bytes, and 2 Gothic runes became 32 bytes. In 8l, 6l and 5l the function is Sconv(). For some reason, only 5l uses the constant STRINGSZ (defined as 200) for the buffer size. R=rsc http://codereview.appspot.com/168045 Committer: Russ Cox <rsc@golang.org>
* 6g/8g optimizer fix: throw functions now in runtimeRuss Cox2009-12-041-4/+4
| | | | | R=ken2 http://codereview.appspot.com/166070
* 6g code gen bugKen Thompson2009-12-031-1/+2
| | | | | R=rsc http://codereview.appspot.com/166052
* 6g etc: groundwork for eliminating redundant bounds checks.Russ Cox2009-12-022-13/+14
| | | | | | | | drop check in range over array. drop check in [256]array indexed by byte. R=ken2 http://codereview.appspot.com/163088
* go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia2009-11-231-2/+2
| | | | | | | | | | | | | | | | | 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>
* x[lo:] - gc and runtime.Russ Cox2009-11-201-64/+57
| | | | | | | | | | * 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
* gc: fix up floating point NaN comparisonsRuss Cox2009-11-152-18/+41
| | | | | | | Fixes issue 167. R=ken2 http://codereview.appspot.com/155062
* tweak documentation of commandsRuss Cox2009-11-091-2/+2
| | | | | | | | | so that first sentence is better for cmd page. live at http://r45:3456/cmd/ R=gri, r http://go/go-review/1024034
* 8g optimizerKen Thompson2009-11-061-1/+1
| | | | | R=rsc http://go/go-review/1025011
* document the gc go compilers.Rob Pike2009-11-031-0/+13
| | | | | | | | fix the usage message. R=rsc CC=go-dev http://go/go-review/1016033
* nil pointer checks in 8g.Russ Cox2009-11-012-11/+23
| | | | | | | | | | fix nil pointer check in 6g. was dereferencing after the ADD; dereference before instead. R=ken@golang.org CC=iant http://go/go-review/1016022
* bug162, over and overRuss Cox2009-10-205-47/+100
| | | | | | R=ken OCL=35919 CL=35919
* bug190.Russ Cox2009-10-192-2/+0
| | | | | | | | also eliminate float80 dregs R=ken OCL=35894 CL=35896
* clean moreRuss Cox2009-10-031-1/+1
| | | | | | | R=r DELTA=40 (9 added, 3 deleted, 28 changed) OCL=35277 CL=35305
* more inlining of slicesliceKen Thompson2009-09-211-12/+37
| | | | | | R=rsc OCL=34871 CL=34871
* move static init code from 6g into gc.Russ Cox2009-09-172-168/+29
| | | | | | | | hook up to 8g and 5g too. R=ken OCL=34768 CL=34768
* fix bug206.Russ Cox2009-09-104-45/+77
| | | | | | | | delay calls to savex as long as possible. R=ken OCL=34535 CL=34546
* composit literal underKen Thompson2009-09-091-0/+31
| | | | | | | | | | init function context. also moved composit literal code from walk.c to sinit.c R=rsc OCL=34503 CL=34503
* write-only variable _Russ Cox2009-09-081-1/+1
| | | | | | R=ken OCL=34465 CL=34470
* composit literalsKen Thompson2009-09-053-49/+22
| | | | | | | | plateau - more to come R=rsc OCL=34413 CL=34413
* use %L in listings so we see source line number in easy formatRob Pike2009-09-031-3/+3
| | | | | | | R=ken DELTA=9 (0 added, 0 deleted, 9 changed) OCL=34309 CL=34311
* fix initialization of noreturnRob Pike2009-09-021-3/+3
| | | | | | | R=ken DELTA=3 (0 added, 0 deleted, 3 changed) OCL=34283 CL=34283
* array index bugRuss Cox2009-08-301-3/+3
| | | | | | | | | | | | | x[i] x not addressable, i >= UINF double evaluated i second eval killed live registers manifested as gob instability R=ken OCL=34097 CL=34099
* removed debug printKen Thompson2009-08-301-1/+1
| | | | | | R=r OCL=34087 CL=34087
* sped up optimization by not optimizingKen Thompson2009-08-293-39/+62
| | | | | | | | very large functions. R=r OCL=34080 CL=34080
* arraytoslice and some cleanupKen Thompson2009-08-281-67/+101
| | | | | | R=rsc OCL=34058 CL=34058
* sliceslice bugKen Thompson2009-08-281-13/+12
| | | | | | R=rsc OCL=34050 CL=34050
* bug in slicesliceKen Thompson2009-08-281-13/+24
| | | | | | R=rsc OCL=34047 CL=34047
* sliceslice inlineKen Thompson2009-08-283-18/+91
| | | | | | R=rsc OCL=34041 CL=34041
* bug in arraysliceKen Thompson2009-08-271-19/+34
| | | | | | R=rsc OCL=33987 CL=33987
* inline slicearrayKen Thompson2009-08-273-0/+173
| | | | | | R=rsc OCL=33974 CL=33974