summaryrefslogtreecommitdiff
path: root/src/cmd/gc/subr.c
AgeCommit message (Collapse)AuthorFilesLines
2015-05-02Imported Upstream version 1.4.2upstream/1.4.2upstream-sidTianon Gravi1-0/+9
2015-01-15Imported Upstream version 1.4upstream/1.4Tianon Gravi1-70/+123
2014-06-19Imported Upstream version 1.3upstream/1.3Michael Stapelberg1-33/+30
2013-12-03Imported Upstream version 1.2upstream/1.2Michael Stapelberg1-30/+54
2013-05-14Imported Upstream version 1.1upstream/1.1Michael Stapelberg1-6/+48
2013-03-04Imported Upstream version 1.1~hg20130304upstream/1.1_hg20130304Michael Stapelberg1-39/+109
2012-06-14Imported Upstream version 1.0.2upstream/1.0.2Ondřej Surý1-2/+8
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý1-1067/+830
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý1-0/+3885
2011-09-13Imported Upstream version 60Ondřej Surý1-3851/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý1-5/+36
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý1-10/+97
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý1-14/+14
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-8/+33
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý1-4/+7
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý1-1/+2
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-7/+1
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-55/+122
2010-06-21gc: include struct field tags in type equalityRuss Cox1-1/+13
R=ken2 CC=golang-dev http://codereview.appspot.com/1667048
2010-06-20gc: delete debug printRuss Cox1-1/+0
R=ken2 CC=golang-dev http://codereview.appspot.com/1732043
2010-06-20gc: better error messages for interface failures, conversionsRuss Cox1-17/+57
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-102/+15
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-3/+9
Cleans up a few other corner cases too. R=ken2 CC=golang-dev http://codereview.appspot.com/1592045
2010-06-09gc: more cleanupRuss Cox1-15/+15
* 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-205/+283
* 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-06-01gc: fix export of complex typesRuss Cox1-0/+3
R=ken2 CC=golang-dev http://codereview.appspot.com/1442042
2010-05-24gc: fix shift/reduce conflict in go.y export syntaxRuss Cox1-2/+6
Fixes issue 771. R=ken2 CC=golang-dev http://codereview.appspot.com/1267042
2010-04-29gc: never include ( ) on singleton func return typeRuss Cox1-8/+4
Fixes issue 749. R=ken2 CC=golang-dev http://codereview.appspot.com/963043
2010-04-11gc: distinguish fatal compiler bug from error+exitRuss Cox1-8/+22
R=ken2 CC=golang-dev http://codereview.appspot.com/902044
2010-03-31gc: implement panic and recoverRuss Cox1-1/+1
R=ken2, r, ken3 CC=golang-dev http://codereview.appspot.com/831042
2010-03-24depricate paniclnKen Thompson1-1/+0
R=rsc CC=golang-dev http://codereview.appspot.com/743041
2010-03-091. decommit complex(float) conversionKen Thompson1-1/+3
2. add complex algorithm for map/chan 3. test for use of complex in array, slice, field, chan, map, field, pointer. R=rsc CC=golang-dev http://codereview.appspot.com/384041
2010-03-09gc: remove duplicate errors, give better error for I.(T)Russ Cox1-7/+16
R=ken2 CC=golang-dev http://codereview.appspot.com/370041
2010-03-085g/6g/8g: fix double function call in sliceRuss Cox1-0/+3
Fixes issue 654. R=ken2 CC=golang-dev http://codereview.appspot.com/310041
2010-03-056g complex type usableKen Thompson1-0/+18
8g and 5g have stubs to ignore complex R=rsc CC=golang-dev http://codereview.appspot.com/257042
2010-03-03gc: fix imported and not used message - show pathRuss Cox1-1/+1
R=ken2 CC=golang-dev http://codereview.appspot.com/229046
2010-02-18gc: double-initializationRuss Cox1-1/+0
R=ken2 CC=golang-dev http://codereview.appspot.com/217044
2010-02-17new types complex, complex64 and complex128Ken Thompson1-4/+19
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-16gc: fix build (signed char bug)Russ Cox1-1/+1
R=ken2 CC=golang-dev http://codereview.appspot.com/210043
2010-02-16gc: disallow NUL byte, catch more invalid UTF-8, testRuss Cox1-1/+9
R=ken2, ken3 CC=golang-dev http://codereview.appspot.com/209041
2010-02-16gc: test & fix handling of very long string constantsRuss Cox1-4/+20
R=ken2 CC=golang-dev http://codereview.appspot.com/207106
2010-02-01gc: bug242Russ Cox1-33/+29
R=ken2 CC=golang-dev http://codereview.appspot.com/198053
2010-02-01gc: ... T corner casesRuss Cox1-0/+9
more to come, but should suffice for Printf work. R=ken2 CC=golang-dev http://codereview.appspot.com/197044
2010-02-01gc: add ... T, rework plain ...Russ Cox1-28/+31
No longer a distinct type; now a property of func types. R=ken2 CC=golang-dev http://codereview.appspot.com/197042
2010-01-26gc: improved syntax errorsRuss Cox1-2/+36
* example-based syntax errors (go.errors) * enable bison's more specific errors and translate grammar token names into tokens like ++ * test cases R=ken2, r, ken3 CC=golang-dev http://codereview.appspot.com/194085
2010-01-26gc: fix chan <- chan precedence.Russ Cox1-5/+9
also allow func() func(). R=ken2 CC=golang-dev http://codereview.appspot.com/194078
2010-01-25runtime, type switch: eliminate package global name space assumptionRuss Cox1-37/+52
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-2/+0
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-22eliminate the package global name space assumption in object filesRuss Cox1-53/+110
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-35/+36
* 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