summaryrefslogtreecommitdiff
path: root/src/cmd/gc
AgeCommit message (Collapse)AuthorFilesLines
2010-02-01gc: add ... T, rework plain ...Russ Cox9-78/+164
No longer a distinct type; now a property of func types. R=ken2 CC=golang-dev http://codereview.appspot.com/197042
2010-01-28gc: tweak error messages, avoid internalization settings in bisonRuss Cox3-18/+22
R=r CC=golang-dev http://codereview.appspot.com/194129
2010-01-27gc: implement defer print/println/panic/paniclnRuss Cox3-66/+154
Fixes issue 219. R=ken2, r CC=golang-dev http://codereview.appspot.com/194097
2010-01-26gc: improved syntax errorsRuss Cox6-12/+309
* 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: do not treat .6 different from .a anymoreRuss Cox1-13/+8
R=ken2 CC=golang-dev http://codereview.appspot.com/195050
2010-01-26gc: fix chan <- chan precedence.Russ Cox3-46/+47
also allow func() func(). R=ken2 CC=golang-dev http://codereview.appspot.com/194078
2010-01-25eliminate package global name spaceRuss Cox2-9/+6
R=ken2 CC=golang-dev http://codereview.appspot.com/194071
2010-01-25runtime, type switch: eliminate package global name space assumptionRuss Cox5-150/+191
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 Cox5-11/+57
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: bug247, reported by robRuss Cox1-38/+40
R=ken2 CC=golang-dev http://codereview.appspot.com/194051
2010-01-24gc: cut some dead code, fix 6g -S outputRuss Cox4-54/+11
R=ken2 CC=golang-dev http://codereview.appspot.com/193079
2010-01-22eliminate the package global name space assumption in object filesRuss Cox14-277/+386
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-22gc: do not build builtin.c automatically; use golden copy instead.Russ Cox4-17/+17
R=r CC=golang-dev http://codereview.appspot.com/190104 Committer: Russ Cox <rsc@golang.org>
2010-01-19cleanup toward eliminating package global name spaceRuss Cox8-132/+167
* 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-19gc: const debug bool = falseRuss Cox1-1/+1
R=ken2 CC=golang-dev http://codereview.appspot.com/186232
2010-01-18build: move GOOS, GOARCH, GOROOT lookup into central library.Russ Cox1-2/+2
bake default values in during build. R=r CC=golang-dev http://codereview.appspot.com/186173
2010-01-18gc: bug245Russ Cox2-1/+3
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
2010-01-18gc: bug243Russ Cox1-1/+3
Fixes issue 481. R=ken2 CC=golang-dev http://codereview.appspot.com/186213
2010-01-18gc: more precise handling of import .Russ Cox3-6/+12
Fixes issue 455. R=ken2 CC=golang-dev http://codereview.appspot.com/186212
2010-01-18gc: be more specific about copy type errorsRuss Cox1-2/+9
Fixes issue 539. R=ken2 CC=golang-dev http://codereview.appspot.com/190043
2010-01-13ignore $GOARCH inside the compiler and linker.Rob Pike1-1/+1
by definition, they know what they are building for. makes it easier to switch architectures when testing. % 6g x.go % 6l x.6 % 6.out "Wed Jan 13 10:57:46 EST 2010" % 8g x.go % 8l x.8 % 8.out "Wed Jan 13 10:57:46 EST 2010" % echo $GOARCH % R=rsc CC=golang-dev http://codereview.appspot.com/186116
2010-01-11gc: clean opnames.hYongjian Xu1-1/+1
R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/181186 Committer: Russ Cox <rsc@golang.org>
2010-01-08gc: bug238Russ Cox2-1/+8
Fixes issue 471. R=ken2 CC=golang-dev http://codereview.appspot.com/181184
2010-01-07gc: bug219, bug239, bug240Russ Cox1-6/+22
Fixes issue 475. R=ken2 CC=golang-dev http://codereview.appspot.com/183157
2010-01-07gc: bug241Russ Cox1-1/+3
Fixes issue 495. R=ken2 CC=golang-dev http://codereview.appspot.com/183156
2009-12-27gc: various C nits, found by plan 9 compiler.Russ Cox5-6/+4
reported by erik quanstrom. R=ken2 http://codereview.appspot.com/181071
2009-12-18gc: method expressions on concrete typesRuss Cox5-18/+39
R=ken2 http://codereview.appspot.com/180092
2009-12-17gc: fix compiler crashRuss Cox1-0/+2
R=ken2 CC=dho http://codereview.appspot.com/179097
2009-12-15gc: fix import name resolutionRuss Cox1-1/+1
Fixes issue 403. R=ken2 http://codereview.appspot.com/180052
2009-12-15gc: bug fixes.Russ Cox2-11/+20
* better error for lookup of unexported field * do not assign "ideal string" type to typed string literal * do not confuse methods and fields during interface check Fixes issue 410. Fixes issue 411. Fixes issue 426. R=ken2 http://codereview.appspot.com/179069
2009-12-15gc: allow ... in method listsRuss Cox1-1/+1
R=ken2 http://codereview.appspot.com/179070
2009-12-15 1) Change default gofmt default settings forRobert Griesemer1-1/+1
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 1st set of files. R=rsc CC=agl, golang-dev, iant, ken2, r http://codereview.appspot.com/180047
2009-12-15gc: double-check usage of ...Russ Cox3-5/+15
Fixes issue 423. R=ken2 http://codereview.appspot.com/180045
2009-12-15gc: var x, ok = m[y]Russ Cox1-0/+6
Fixes issue 384. R=ken2 http://codereview.appspot.com/179061
2009-12-13gc: fix commentRuss Cox1-3/+2
R=gri CC=golang-dev http://codereview.appspot.com/174077
2009-12-11gc: semicolonsRuss Cox3-163/+101
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-11Remove GOBIN in PATH dependency; don't assume cwd is $GOROOT/srcDevon H. O'Dell1-1/+3
This change removes the necessity to have GOBIN in $PATH, and also doesn't assume that the build is being run from $GOROOT/src. This is a minimal set of necessary changes to get Go to build happily from the FreeBSD ports collection. R=rsc CC=golang-dev http://codereview.appspot.com/171044 Committer: Russ Cox <rsc@golang.org>
2009-12-11mkbuiltin: generate builtin.c directlyYongjian Xu2-4/+2
R=golang-dev, rsc http://codereview.appspot.com/173041 Committer: Russ Cox <rsc@golang.org>
2009-12-07runtime: introduce unsafe.New and unsafe.NewArrayRuss Cox2-0/+4
to provide functionality previously hacked in to reflect and gob. R=r http://codereview.appspot.com/165076
2009-12-04gc/runtime: pass type structure to makeslice.Russ Cox4-4/+115
* inform garbage collector about memory with no pointers in it 1.9s gcc reverse-complement.c reverse-complement.go 4.5s / 3.5s original, with/without bounds checks 3.5s / 3.3s bounds check reduction 3.3s / 2.8s smarter garbage collector 2.6s / 2.3s assembler bytes.IndexByte 2.5s / 2.1s even smarter garbage collector (this CL) R=r http://codereview.appspot.com/165064
2009-12-04gc: walk pointer in range on slice/arrayRuss Cox1-4/+21
R=ken2 http://codereview.appspot.com/166071
2009-12-03gc: check for assignment to private fields during initializationRuss Cox1-2/+6
R=ken2 http://codereview.appspot.com/165055
2009-12-03gc: Allow allow data types up to 1GBChristopher Wedgwood3-3/+4
R=rsc http://codereview.appspot.com/164095 Committer: Russ Cox <rsc@golang.org>
2009-12-03gc: handle _ = <-c in select.Russ Cox1-1/+1
Fixes issue 238. R=ken2 http://codereview.appspot.com/163098
2009-12-03gc: recursive type errorRuss Cox2-0/+5
Fixes issue 245. R=ken2 http://codereview.appspot.com/164094
2009-12-03gc: better diagnosis of initialization loopsRuss Cox5-8/+67
Fixes bug 292. R=ken2 http://codereview.appspot.com/164093
2009-12-03gc: minor import grammar bug fixesRuss Cox1-8/+27
Fixes issue 364. R=ken2 http://codereview.appspot.com/164092
2009-12-02gc: function argument ordering bugRuss Cox1-5/+5
Fixes issue 370. R=ken2 http://codereview.appspot.com/163097