summaryrefslogtreecommitdiff
path: root/src/cmd
AgeCommit message (Collapse)AuthorFilesLines
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-24make 6prof (sic) architecture-independent.Rob Pike1-38/+192
for now, it's amd64 and 386 only but it's trivial to add more. Fixes issue 385. (why couldn't it have been issue 386?) tested for amd64 and 386 on darwin. R=rsc CC=golang-dev http://codereview.appspot.com/182043
2009-12-23cgo: don't overwrite p.CrefsDevon H. O'Dell1-1/+3
It's expected to be shared between all files so that all types are output. Fixes bug reported on mailing list by Peter Froehlich. R=rsc, phf CC=golang-dev http://codereview.appspot.com/183043 Committer: Russ Cox <rsc@golang.org>
2009-12-21update test.sh so it can run to completion againRobert Griesemer1-1/+1
R=r CC=golang-dev http://codereview.appspot.com/179120
2009-12-218g: add TESTL etc to reg optRuss Cox1-0/+3
Fixes issue 436. R=ken2 http://codereview.appspot.com/180105
2009-12-21cgo: interpret $CGOPKGDIR as absolute path if rootedRuss Cox2-4/+11
R=dho CC=golang-dev http://codereview.appspot.com/180099
2009-12-18gc: method expressions on concrete typesRuss Cox5-18/+39
R=ken2 http://codereview.appspot.com/180092
2009-12-17cgo: include line number information to keep go/printer happyRuss Cox1-1/+2
Fixes issue 443. R=dho CC=golang-dev http://codereview.appspot.com/179095
2009-12-17 first stub for softfloats, intercepts float instructions and skipsKai Backman6-3/+87
them in the stream. R=rsc http://codereview.appspot.com/174052
2009-12-17fix for gofmt rewrite matcher bugRobert Griesemer1-0/+3
R=rsc CC=golang-dev http://codereview.appspot.com/179096
2009-12-17gc: fix compiler crashRuss Cox1-0/+2
R=ken2 CC=dho http://codereview.appspot.com/179097
2009-12-17use new tab indentation format in godoc, but convertRobert Griesemer1-2/+70
leading tabs into spaces to ensure a good outcome in most browsers R=rsc http://codereview.appspot.com/165051
2009-12-17Allow cgo to accept multiple .go inputs for a packageDevon H. O'Dell3-73/+153
Fixes issue 342. R=rsc CC=golang-dev http://codereview.appspot.com/179062 Committer: Russ Cox <rsc@golang.org>
2009-12-17Use BitSize instead of the field's type native ByteSize when calculatingDevon H. O'Dell1-0/+3
structs containing bitfields. Fixes issue 163. R=rsc CC=golang-dev http://codereview.appspot.com/180059 Committer: Russ Cox <rsc@golang.org>
2009-12-16- Parse expressions as opposed to statements for gofmt rewrite patterns.Robert Griesemer1-11/+8
Allows stand-alone types (e.g. []int as patterns) and doesn't require a semicolon at the end (which are now mandatory terminators). - Fix a matcher bug. R=rsc CC=golang-dev http://codereview.appspot.com/179088
2009-12-15This patch enables cgo utility to correctly convert enums in the C sourceMoriyoshi Koizumi4-29/+75
into consts in the resulting Go source. Previously known as issue 161047, which I deleted accidentally. Fixes issue 207. R=rsc http://codereview.appspot.com/166059 Committer: Russ Cox <rsc@golang.org>
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 Griesemer16-2331/+2331
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-14don't show semicolons anymore with godocRobert Griesemer1-1/+1
R=rsc http://codereview.appspot.com/174078
2009-12-138l: add support for PE output.Hector Chu7-8/+329
R=rsc http://codereview.appspot.com/166080 Committer: Russ Cox <rsc@golang.org>
2009-12-13Ported godefs to Windows.Hector Chu2-67/+80
R=rsc http://codereview.appspot.com/164049 Committer: Russ Cox <rsc@golang.org>
2009-12-13gc: fix commentRuss Cox1-3/+2
R=gri CC=golang-dev http://codereview.appspot.com/174077
2009-12-14Update goyacc to new syntax, still with semicolons.Rob Pike2-67/+37
Update units.y too. Fixes issue 417. R=rsc CC=golang-dev http://codereview.appspot.com/176063
2009-12-12more on the optimizerKen Thompson2-67/+84
trying to get alizses to optimize R=rsc http://codereview.appspot.com/176061
2009-12-11Various cleanups:Robert Griesemer1-1/+1
- no need to replace comments for stand-alone blocks - always print string concatenations with interspersed "+" (remove option) - minor cleanups R=rsc http://codereview.appspot.com/174076
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 Thompson4-57/+57
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'Dell5-13/+21
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-10- make make test working againRobert Griesemer1-15/+15
- some factoring for easier experimentation R=rsc http://codereview.appspot.com/174048
2009-12-10New flags for gofmt:Robert Griesemer2-10/+31
- oldparser parse old syntax (required semicolons) - oldprinter print old syntax (required semicolons) By default, these flags are enabled for now. Setting -oldparser=false has no effect until go/parser is changed to accept the new syntax. Enabled exp/parser in Makefile; update dependent exp/eval. R=rsc http://codereview.appspot.com/174051
2009-12-09remove uses of string concatenation from src and misc directoryRobert Griesemer2-3/+3
R=rsc http://codereview.appspot.com/172041
2009-12-09Continuation of issue 221 fix. When 8g or 6g or 5g are called with aCharles L. Dorian5-5/+5
UTF-8 string, Yconv() converts it into an octal sequence. If the string converted to more than 30 bytes, the str buffer would overflow. For example, 4 Greek runes became 32 bytes, 3 Hiragana runes became 36 bytes, and 2 Gothic runes became 32 bytes. In 8l, 6l and 5l the function is Sconv(). For some reason, only 5l uses the constant STRINGSZ (defined as 200) for the buffer size. R=rsc http://codereview.appspot.com/168045 Committer: Russ Cox <rsc@golang.org>
2009-12-076l, 8l: make string buffer big enough for 8 chars (and then some)Russ Cox2-2/+2
Fixes issue 221. R=ken2 http://codereview.appspot.com/165086
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-07the AST walker currently provides no way to find out how theRoger Peppe1-3/+6
nodes in the tree are nested with respect to one another. a simple change to the Visitor interface makes it possible to do this (for example to maintain a current node-depth, or a knowledge of the name of the current function). Visit(nil) is called at the end of a node's children; this make possible the channel-based interface below, amongst other possibilities. It is still just as simple to get the original behaviour - just return the same Visitor from Visit. Here are a couple of possible Visitor types. // closure-based type FVisitor func(n interface{}) FVisitor func (f FVisitor) Visit(n interface{}) Visitor { return f(n); } // channel-based type CVisitor chan Visit; type Visit struct { node interface{}; reply chan CVisitor; }; func (v CVisitor) Visit(n interface{}) Visitor { if n == nil { close(v); } else { reply := make(chan CVisitor); v <- Visit{n, reply}; r := <-reply; if r == nil { return nil; } return r; } return nil; } R=gri CC=rsc http://codereview.appspot.com/166047 Committer: Robert Griesemer <gri@golang.org>
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-046g/8g optimizer fix: throw functions now in runtimeRuss Cox2-8/+8
R=ken2 http://codereview.appspot.com/166070
2009-12-04gotest: stop if the // gotest commands failRuss Cox1-1/+1
R=r http://codereview.appspot.com/166067
2009-12-04gotest: ignore *_test.pb.goRuss Cox1-1/+1
R=r http://codereview.appspot.com/166064
2009-12-038l: fix print line number format, buffer overflowRuss Cox1-4/+4
R=ken2 http://codereview.appspot.com/165059
2009-12-03gc: check for assignment to private fields during initializationRuss Cox1-2/+6
R=ken2 http://codereview.appspot.com/165055
2009-12-036g code gen bugKen Thompson2-11/+6
R=rsc http://codereview.appspot.com/166052
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