summaryrefslogtreecommitdiff
path: root/src/cmd/gc/go.h
AgeCommit message (Collapse)AuthorFilesLines
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-5/+3
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-18/+30
2010-06-27optimization of static initializationKen Thompson1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/1677049
2010-06-20gc: better error messages for interface failures, conversionsRuss Cox1-2/+2
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-14gc: no more ...Russ Cox1-386/+367
various cleanup, deleting unused code R=ken2 CC=golang-dev http://codereview.appspot.com/1663041
2010-06-12gc: less aggressive name binding, for better line numbers in errorsRuss Cox1-4/+4
Cleans up a few other corner cases too. R=ken2 CC=golang-dev http://codereview.appspot.com/1592045
2010-06-11gc: change -u to require imports to be marked safeRuss Cox1-0/+1
R=ken2 CC=golang-dev http://codereview.appspot.com/1597043
2010-06-09gc: more cleanupRuss Cox1-0/+1
* disallow surrogate pair runes. * diagnose impossible type assertions * eliminate another static buffer. * do not overflow lexbuf. * add -u flag to disable package unsafe. R=ken2 CC=golang-dev http://codereview.appspot.com/1619042
2010-06-08gc: new typechecking rulesRuss Cox1-16/+9
* 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-20fix issue 798Ken Thompson1-0/+2
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-27gc: better windows detectionRuss Cox1-7/+0
R=ken2 CC=golang-dev http://codereview.appspot.com/944043
2010-04-27gc: fix islocalname on windowsRuss Cox1-0/+6
Fixes issue 732. R=ken2 CC=golang-dev http://codereview.appspot.com/956050
2010-03-31gc: implement panic and recoverRuss Cox1-1/+3
R=ken2, r, ken3 CC=golang-dev http://codereview.appspot.com/831042
2010-03-30gc: add panic and recover (still unimplemented in runtime)Russ Cox1-0/+1
main semantic change is to enforce single argument to panic. runtime: change to 1-argument panic. use String method on argument if it has one. R=ken2, r CC=golang-dev http://codereview.appspot.com/812043
2010-03-24depricate paniclnKen Thompson1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/743041
2010-03-22gc: various map-related bug fixesRuss Cox1-2/+0
Fixes issue 687. R=ken2 CC=golang-dev http://codereview.appspot.com/680042
2010-03-20issue 682Ken Thompson1-0/+1
complex DATA statement fo initialization of complex variables. R=rsc CC=golang-dev http://codereview.appspot.com/634045
2010-03-056g complex type usableKen Thompson1-0/+2
8g and 5g have stubs to ignore complex R=rsc CC=golang-dev http://codereview.appspot.com/257042
2010-02-25gc: implement []int(string) and []byte(string)Russ Cox1-2/+3
R=ken2 CC=golang-dev http://codereview.appspot.com/224060
2010-02-18more complex - constantsKen Thompson1-0/+1
import and export R=rsc CC=golang-dev http://codereview.appspot.com/214050
2010-02-18gc: recursive interface embeddingRuss Cox1-0/+2
Fixes issue 287. R=ken2 CC=golang-dev http://codereview.appspot.com/215048
2010-02-17new types complex, complex64 and complex128Ken Thompson1-7/+21
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-12gc: diagnose invalid array boundsRuss Cox1-0/+2
Fixes issue 587. R=ken2 CC=golang-dev http://codereview.appspot.com/207085
2010-02-01gc: bug246Russ Cox1-0/+1
R=ken2 CC=golang-dev http://codereview.appspot.com/198057
2010-02-01gc: bug242Russ Cox1-2/+2
R=ken2 CC=golang-dev http://codereview.appspot.com/198053
2010-02-01gc: add ... T, rework plain ...Russ Cox1-6/+9
No longer a distinct type; now a property of func types. R=ken2 CC=golang-dev http://codereview.appspot.com/197042
2010-01-25runtime, type switch: eliminate package global name space assumptionRuss Cox1-13/+3
bonus: type switch now detects multiple uses of identical interface types. bonus: interface types are now order-independent, following the spec. R=ken2 CC=golang-dev http://codereview.appspot.com/194053
2010-01-24gc: record full package paths in runtime type dataRuss Cox1-1/+5
detect compilation of special package runtime with compiler flag instead of package name. R=ken2 CC=golang-dev http://codereview.appspot.com/193080
2010-01-24gc: cut some dead code, fix 6g -S outputRuss Cox1-1/+0
R=ken2 CC=golang-dev http://codereview.appspot.com/193079
2010-01-22eliminate the package global name space assumption in object filesRuss Cox1-15/+33
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-19cleanup toward eliminating package global name spaceRuss Cox1-2/+6
* 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
2009-12-27gc: various C nits, found by plan 9 compiler.Russ Cox1-2/+1
reported by erik quanstrom. R=ken2 http://codereview.appspot.com/181071
2009-12-18gc: method expressions on concrete typesRuss Cox1-0/+1
R=ken2 http://codereview.appspot.com/180092
2009-12-15gc: double-check usage of ...Russ Cox1-1/+1
Fixes issue 423. R=ken2 http://codereview.appspot.com/180045
2009-12-11gc: semicolonsRuss Cox1-5/+1
Fixes issue 89. Fixes issue 92. Fixes issue 118. Fixes issue 182. Fixes issue 328. Fixes issue 340. R=ken2, ken3 CC=golang-dev http://codereview.appspot.com/172049
2009-12-11bug in 6g optimizerKen Thompson1-0/+1
8g still needs fixing R=rsc http://codereview.appspot.com/176057
2009-12-03gc: Allow allow data types up to 1GBChristopher Wedgwood1-1/+2
R=rsc http://codereview.appspot.com/164095 Committer: Russ Cox <rsc@golang.org>
2009-12-03gc: better diagnosis of initialization loopsRuss Cox1-1/+0
Fixes bug 292. R=ken2 http://codereview.appspot.com/164093
2009-11-19gc: reject large channel values at compile timeRuss Cox1-0/+1
Fixes issue 144. R=ken2 CC=agl1 http://codereview.appspot.com/156102
2009-11-17install copy predefinedKen Thompson1-0/+1
did not test 386, but should work shouldnt matter if copy is not used R=rsc http://codereview.appspot.com/156055
2009-11-15gc: five bug fixes, one better error.Russ Cox1-2/+2
* 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-12yet another attempt to avoid conflicts withRuss Cox1-3/+5
<stdio.h>, which we weren't even #including R=r http://codereview.appspot.com/154108
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-068g optimizerKen Thompson1-6/+6
R=rsc http://go/go-review/1025011
2009-10-19bug196Russ Cox1-0/+1
R=ken OCL=35905 CL=35905
2009-10-19bug136Russ Cox1-3/+2
R=ken OCL=35902 CL=35904
2009-10-19bug190.Russ Cox1-1/+3
also eliminate float80 dregs R=ken OCL=35894 CL=35896
2009-10-15rename sys functions to runtime,Russ Cox1-2/+2
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