summaryrefslogtreecommitdiff
path: root/src/cmd/6g
AgeCommit message (Collapse)AuthorFilesLines
2014-06-19Imported Upstream version 1.3upstream/1.3Michael Stapelberg11-861/+567
2013-12-03Imported Upstream version 1.2upstream/1.2Michael Stapelberg9-1630/+954
2013-08-13Imported Upstream version 1.1.2upstream/1.1.2Michael Stapelberg1-0/+1
2013-05-14Imported Upstream version 1.1upstream/1.1Michael Stapelberg6-48/+56
2013-03-04Imported Upstream version 1.1~hg20130304upstream/1.1_hg20130304Michael Stapelberg11-1036/+1389
2012-06-14Imported Upstream version 1.0.2upstream/1.0.2Ondřej Surý2-3/+4
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý10-168/+328
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý12-0/+8974
2011-09-13Imported Upstream version 60Ondřej Surý12-8934/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý4-3/+47
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý6-161/+239
2011-06-16Imported Upstream version 57.2upstream/57.2Ondřej Surý1-0/+38
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý2-10/+10
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý2-141/+35
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý4-8/+1
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý9-140/+417
2010-06-29code gen bug in len(nil) and cap(nil)Ken Thompson1-0/+4
fixes issue 892 R=rsc CC=golang-dev http://codereview.appspot.com/1745042
2010-06-20gc: better error messages for interface failures, conversionsRuss Cox1-1/+1
x.go:13: cannot use t (type T) as type Reader in assignment: T does not implement Reader (Read method requires pointer receiver) x.go:19: cannot use q (type Q) as type Reader in assignment: Q does not implement Reader (missing Read method) have read() want Read() x.go:22: cannot use z (type int) as type Reader in assignment: int does not implement Reader (missing Read method) x.go:24: too many arguments to conversion to complex: complex(1, 3) R=ken2 CC=golang-dev http://codereview.appspot.com/1736041
2010-06-08gc: new typechecking rulesRuss Cox1-1/+1
* Code for assignment, conversions now mirrors spec. * Changed some snprint -> smprint. * Renamed runtime functions to separate interface conversions from type assertions: convT2I, assertI2T, etc. * Correct checking of \U sequences. Fixes issue 840. Fixes issue 830. Fixes issue 778. R=ken2 CC=golang-dev http://codereview.appspot.com/1303042
2010-05-24gc: bug281 - bad overlap in stack copyRuss Cox1-1/+32
Fixes issue 807. R=ken2 CC=golang-dev http://codereview.appspot.com/1283041
2010-05-246g: avoid unnecessary conversion in shift bounds checkRuss Cox1-4/+15
R=ken2 CC=golang-dev http://codereview.appspot.com/1278042
2010-05-20fix issue 798Ken Thompson3-0/+21
cannot allocate an audomatic temp while real registers are allocated. there is a chance that the automatic will be allocated to one of the allocated registers. the fix is to not registerize such variables. R=rsc CC=golang-dev http://codereview.appspot.com/1202042
2010-04-01runtime: turn run time errors checks into panicsRuss Cox5-14/+14
R=ken2, r CC=golang-dev http://codereview.appspot.com/871042 Committer: Russ Cox <rsc@golang.org>
2010-03-31gc: implement panic and recoverRuss Cox1-2/+7
R=ken2, r, ken3 CC=golang-dev http://codereview.appspot.com/831042
2010-03-26gc: allow taking address of out parametersRuss Cox1-3/+24
Fixes issue 186. R=ken2 CC=golang-dev http://codereview.appspot.com/793041
2010-03-20issue 682Ken Thompson1-1/+21
complex DATA statement fo initialization of complex variables. R=rsc CC=golang-dev http://codereview.appspot.com/634045
2010-03-09identical complex implementationKen Thompson4-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
2010-03-085g/6g/8g: fix double function call in sliceRuss Cox1-32/+24
Fixes issue 654. R=ken2 CC=golang-dev http://codereview.appspot.com/310041
2010-03-056g complex type usableKen Thompson3-74/+166
8g and 5g have stubs to ignore complex R=rsc CC=golang-dev http://codereview.appspot.com/257042
2010-03-05gc: better compilation of floating point +=Russ Cox1-9/+17
R=ken2 CC=golang-dev http://codereview.appspot.com/255042
2010-03-02more on type complex.Ken Thompson4-10/+138
getting close. R=rsc CC=golang-dev http://codereview.appspot.com/224105
2010-02-21all done except -Ken Thompson3-103/+297
complex divide float(complex) conversion 8g 5g etc tests R=rsc CC=golang-dev http://codereview.appspot.com/218044
2010-02-19fixed bug in mpconst float multiply by 0.Ken Thompson5-0/+196
more complex -- constants, variables and print. R=rsc CC=golang-dev http://codereview.appspot.com/217061
2010-02-17new types complex, complex64 and complex128Ken Thompson1-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
2010-02-01gc: add ... T, rework plain ...Russ Cox1-1/+0
No longer a distinct type; now a property of func types. R=ken2 CC=golang-dev http://codereview.appspot.com/197042
2010-01-27change print print buffer sizeKen Thompson1-2/+2
to go with the full path names R=rsc CC=golang-dev http://codereview.appspot.com/195079
2010-01-22eliminate the package global name space assumption in object filesRuss Cox4-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>
2010-01-20part 2 of sudoaddable optimizationKen Thompson1-17/+42
R=rsc CC=golang-dev http://codereview.appspot.com/190088
2010-01-19cleanup toward eliminating package global name spaceRuss Cox1-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
2010-01-19start of better addressing ofKen Thompson1-8/+32
arrays/slices in structures R=rsc CC=golang-dev http://codereview.appspot.com/190077
2010-01-15Don't check array bounds if we have been told not to.Ian Lance Taylor1-1/+1
Fixes range.go test for 6g. R=rsc CC=golang-dev http://codereview.appspot.com/189093
2009-12-12more on the optimizerKen Thompson1-13/+24
trying to get alizses to optimize R=rsc http://codereview.appspot.com/176061
2009-12-11bug in 6g optimizerKen Thompson2-57/+54
8g still needs fixing R=rsc http://codereview.appspot.com/176057
2009-12-09Continuation of issue 221 fix. When 8g or 6g or 5g are called with aCharles L. Dorian1-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>
2009-12-046g/8g optimizer fix: throw functions now in runtimeRuss Cox1-4/+4
R=ken2 http://codereview.appspot.com/166070
2009-12-036g code gen bugKen Thompson1-1/+2
R=rsc http://codereview.appspot.com/166052
2009-12-026g etc: groundwork for eliminating redundant bounds checks.Russ Cox2-13/+14
drop check in range over array. drop check in [256]array indexed by byte. R=ken2 http://codereview.appspot.com/163088
2009-11-23go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia1-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>
2009-11-20x[lo:] - gc and runtime.Russ Cox1-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
2009-11-15gc: fix up floating point NaN comparisonsRuss Cox2-18/+41
Fixes issue 167. R=ken2 http://codereview.appspot.com/155062