summaryrefslogtreecommitdiff
path: root/src/cmd/gc/go.y
AgeCommit message (Collapse)AuthorFilesLines
2014-06-19Imported Upstream version 1.3upstream/1.3Michael Stapelberg1-0/+6
2013-12-03Imported Upstream version 1.2upstream/1.2Michael Stapelberg1-8/+36
2013-05-14Imported Upstream version 1.1upstream/1.1Michael Stapelberg1-2/+6
2013-03-04Imported Upstream version 1.1~hg20130304upstream/1.1_hg20130304Michael Stapelberg1-26/+115
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý1-172/+276
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý1-0/+1985
2011-09-13Imported Upstream version 60Ondřej Surý1-1966/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý1-28/+31
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý1-15/+5
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý1-0/+4
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-5/+15
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý1-2/+7
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý1-8/+0
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-3/+12
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-45/+129
2010-06-14gc: no more ...Russ Cox1-2/+11
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-13/+15
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-1/+12
R=ken2 CC=golang-dev http://codereview.appspot.com/1597043
2010-06-07gc: better error message when ~ operator is foundRobert Griesemer1-1/+1
Fixes issue 844. R=ken2, rsc, ken3 CC=golang-dev http://codereview.appspot.com/1593041
2010-05-24gc: fix shift/reduce conflict in go.y export syntaxRuss Cox1-2/+13
Fixes issue 771. R=ken2 CC=golang-dev http://codereview.appspot.com/1267042
2010-05-24gc: bug277 - new conversion syntaxRuss Cox1-21/+10
R=ken2 CC=golang-dev http://codereview.appspot.com/1220046
2010-04-26gc: more specific error for statements at top levelRuss Cox1-10/+20
R=ken2, r, ken3 CC=golang-dev http://codereview.appspot.com/1006041
2010-04-11gc: make sure main.main has correct typeRuss Cox1-2/+9
R=ken2 CC=golang-dev http://codereview.appspot.com/883049
2010-02-18more complex - constantsKen Thompson1-2/+10
import and export R=rsc CC=golang-dev http://codereview.appspot.com/214050
2010-02-01gc: add ... T, rework plain ...Russ Cox1-14/+35
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-7/+8
* 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-39/+32
also allow func() func(). R=ken2 CC=golang-dev http://codereview.appspot.com/194078
2010-01-25eliminate package global name spaceRuss Cox1-6/+5
R=ken2 CC=golang-dev http://codereview.appspot.com/194071
2010-01-24gc: record full package paths in runtime type dataRuss Cox1-1/+2
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-46/+43
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-5/+17
* 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-15gc: fix import name resolutionRuss Cox1-1/+1
Fixes issue 403. R=ken2 http://codereview.appspot.com/180052
2009-12-15gc: allow ... in method listsRuss Cox1-1/+1
R=ken2 http://codereview.appspot.com/179070
2009-12-15gc: double-check usage of ...Russ Cox1-1/+7
Fixes issue 423. R=ken2 http://codereview.appspot.com/180045
2009-12-13gc: fix commentRuss Cox1-3/+2
R=gri CC=golang-dev http://codereview.appspot.com/174077
2009-12-11gc: semicolonsRuss Cox1-77/+42
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-03gc: minor import grammar bug fixesRuss Cox1-8/+27
Fixes issue 364. R=ken2 http://codereview.appspot.com/164092
2009-11-20x[lo:] - gc and runtime.Russ Cox1-2/+6
* 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: five bug fixes, one better error.Russ Cox1-2/+13
* 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-0/+1
<stdio.h>, which we weren't even #including R=r http://codereview.appspot.com/154108
2009-11-09error rewording suggested by robert.Russ Cox1-8/+3
update comment. R=ken http://go/go-review/1025031
2009-10-19bug136Russ Cox1-1/+1
R=ken OCL=35902 CL=35904
2009-10-15rename sys functions to runtime,Russ Cox1-4/+4
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-12sort errors by line numberRuss Cox1-1/+2
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 Cox1-1/+5
node printing fixes. silence incorrect redeclaration error. R=ken OCL=35602 CL=35602
2009-10-07better handling of mistaken top-level variableRuss Cox1-12/+4
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-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
2009-09-28disallow interface { x, y() }Russ Cox1-10/+9
R=ken OCL=35042 CL=35044