summaryrefslogtreecommitdiff
path: root/src/cmd/gc/sinit.c
AgeCommit message (Collapse)AuthorFilesLines
2013-03-04Imported Upstream version 1.1~hg20130304upstream/1.1_hg20130304Michael Stapelberg1-12/+42
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý1-23/+442
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý1-0/+971
2011-09-13Imported Upstream version 60Ondřej Surý1-971/+0
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý1-2/+2
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-1/+1
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-3/+1
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-21/+41
2010-06-27optimization of static initializationKen Thompson1-123/+197
R=rsc CC=golang-dev http://codereview.appspot.com/1677049
2010-06-14gc: no more ...Russ Cox1-1/+1
various cleanup, deleting unused code R=ken2 CC=golang-dev http://codereview.appspot.com/1663041
2010-05-03gc: bug264Russ Cox1-1/+3
Fixes issue 692. R=ken2 CC=golang-dev http://codereview.appspot.com/1092041
2010-03-20issue 682Ken Thompson1-0/+7
complex DATA statement fo initialization of complex variables. R=rsc CC=golang-dev http://codereview.appspot.com/634045
2010-01-18gc: bug245Russ Cox1-0/+2
Fixes issue 529. R=ken2 CC=golang-dev http://codereview.appspot.com/186215
2010-01-18gc: multiple return value at top-level invoked multiple timesRuss Cox1-0/+6
Fixes issue 402. R=ken2 CC=golang-dev http://codereview.appspot.com/186214
2009-12-15gc: var x, ok = m[y]Russ Cox1-0/+6
Fixes issue 384. R=ken2 http://codereview.appspot.com/179061
2009-12-03gc: better diagnosis of initialization loopsRuss Cox1-5/+64
Fixes bug 292. R=ken2 http://codereview.appspot.com/164093
2009-11-15gc: five bug fixes, one better error.Russ Cox1-0/+6
* 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-10-196g bug fixes:Russ Cox1-0/+2
* bug211 * embedded interfaces with lowercase methods * var _ = f() at top level R=ken OCL=35898 CL=35898
2009-09-17move static init code from 6g into gc.Russ Cox1-0/+153
hook up to 8g and 5g too. R=ken OCL=34768 CL=34768
2009-09-09composit literal underKen Thompson1-0/+539
init function context. also moved composit literal code from walk.c to sinit.c R=rsc OCL=34503 CL=34503
2009-09-08init context for composit literalsKen Thompson1-1/+1
R=rsc OCL=34462 CL=34462
2009-09-05composit literalsKen Thompson1-1/+2
plateau - more to come R=rsc OCL=34413 CL=34413
2009-08-30cleanup getting ready for static initKen Thompson1-472/+14
R=rsc OCL=34090 CL=34090
2009-08-25rename runtime internals to have modern names (array->slice etc)Rob Pike1-6/+6
R=rsc DELTA=444 (179 added, 177 deleted, 88 changed) OCL=33847 CL=33849
2009-08-12whole-package compilationRuss Cox1-1/+73
R=ken OCL=33063 CL=33095
2009-08-07forward declarations not necessary.Russ Cox1-0/+6
still to do: * initializer cycle detection * nicer error for type checking cycles R=ken OCL=32855 CL=32880
2009-08-03more 6g reorg; checkpoint.Russ Cox1-0/+4
typecheck.c is now responsible for all type checking except for assignment and function argument "..." R=ken OCL=32661 CL=32667
2009-07-29convert walkexpr to take Node**; drop indirRuss Cox1-1/+1
R=ken OCL=32421 CL=32421
2009-07-27constant keys for array initializersRuss Cox1-0/+3
R=ken OCL=32261 CL=32261
2009-07-20fix cut-and-paste bugs in error messagesRuss Cox1-5/+6
R=ken OCL=31890 CL=31890
2009-07-17another step toward eliminating forward declarations.Russ Cox1-52/+40
introduce NodeList* type in compiler to replace OLIST. this clarifies where lists can and cannot occur. list append and concatenation are now cheap. the _r rules are gone from yacc. rev and unrev are gone. no more lists of lists. the representation of assignments is a bit clunkier. split into OAS (1=1) and OAS2 (2 or more on one side). delete dead chanrecv3 code. delay construction of func types. R=ken OCL=31745 CL=31762
2009-07-10cleanup in preparation for new scoping.Russ Cox1-1/+1
walkstate -> walkstmt walktype -> walkexpr; stmts moved to walkstmt walktype and friends have a final Node **init argument that can have side effects appended, making it more explicit when they do and do not happen. this replaces the old global addtop and addtotop. delete switch map and interface conversion cases (dropped from the language months ago). R=ken OCL=31465 CL=31468
2009-06-23fix a 6g crash after type errors.Russ Cox1-0/+3
do not bother warning about marks left on stack after syntax errors. leave OCONV nodes in tree to avoid type errors arising from multiple walks. R=ken OCL=30639 CL=30662
2009-05-31prevent multiple similar errorsKen Thompson1-5/+0
in complex literals. side effect is fix of error in initializerr.go R=r OCL=29667 CL=29667
2009-05-28detect recursive initializationKen Thompson1-2/+4
R=r OCL=29544 CL=29544
2009-05-26bug 152Ken Thompson1-2/+2
R=r OCL=29419 CL=29419
2009-05-25static init reenabledKen Thompson1-82/+223
R=r OCL=29358 CL=29358
2009-05-231. check for dups in complex literalsKen Thompson1-10/+3
structtype{a:1, a:2} maptypetype{"xx":1, "xx":2} arraytypetype{5:1, 5:2} 2. bug in registerization concerning alias of a struct and one of its elements 3. code optimization of struct.field (which exposed bug in 2) R=r OCL=29315 CL=29315
2009-05-21added key:val extension toKen Thompson1-0/+346
structure and array literals R=r OCL=29190 CL=29190