summaryrefslogtreecommitdiff
path: root/src/cmd
AgeCommit message (Collapse)AuthorFilesLines
2010-06-20gc: better error messages for interface failures, conversionsRuss Cox8-40/+91
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-20gc: fix build - subnode not addable in complexgenRuss Cox1-6/+9
R=ken2 CC=golang-dev http://codereview.appspot.com/1677047
2010-06-16cmd/gotest: Delete temporary _testmain.go files.Nigel Tao1-1/+1
R=rsc TBR=rsc CC=golang-dev http://codereview.appspot.com/1675047
2010-06-14gc: no more ...Russ Cox17-838/+497
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 Cox8-82/+111
Cleans up a few other corner cases too. R=ken2 CC=golang-dev http://codereview.appspot.com/1592045
2010-06-12gopack: add S flag to force marking a package as safeRuss Cox2-4/+16
R=r CC=golang-dev http://codereview.appspot.com/1597044
2010-06-118l: correct test for sp == top of stack in 8l -K codeRuss Cox1-1/+1
R=ken2 CC=golang-dev http://codereview.appspot.com/1627042
2010-06-11gopack: simplify go metadata codeRuss Cox1-314/+36
There's only one Go object file per package now, so there's no need to parse the metadata and merge metadata from multiple files. Just save the original and use it as __.PKGDEF verbatim. R=r CC=golang-dev http://codereview.appspot.com/1647042
2010-06-11gc: change -u to require imports to be marked safeRuss Cox5-3/+22
R=ken2 CC=golang-dev http://codereview.appspot.com/1597043
2010-06-11Pad Go symbol table out to page boundary when linking dynamically.Ian Lance Taylor3-7/+11
This avoids a crash when using cgo where glibc's malloc thinks that it can use some of the memory following the symbol table. This fails because the symbol table is mapped read-only, which affects the whole page. R=rsc CC=golang-dev http://codereview.appspot.com/1616042
2010-06-09go/scanner: report illegal escape sequencesRobert Griesemer1-1/+1
R=golang-dev, r CC=golang-dev http://codereview.appspot.com/1636043
2010-06-09gc: more cleanupRuss Cox5-39/+100
* 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 Cox15-860/+560
* 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-08gofmt: update test script so it can run to completion againRobert Griesemer1-1/+2
R=rsc CC=golang-dev http://codereview.appspot.com/1621041
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-06-07gc: backslash newline is not a legal escape sequence in stringsRobert Griesemer1-4/+0
Fixes issue 827. R=ken2 CC=golang-dev, rsc http://codereview.appspot.com/1592041
2010-06-07runtime: finish pchw -> tiny, added gettime for tinyDaniel Theophanes1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/1514041 Committer: Russ Cox <rsc@golang.org>
2010-06-01gc: fix export of complex typesRuss Cox1-0/+3
R=ken2 CC=golang-dev http://codereview.appspot.com/1442042
2010-06-01goinstall: Use 'git pull' instead of 'git checkout' when updating a git repo.Michael Hoisie1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/1395041 Committer: Russ Cox <rsc@golang.org>
2010-05-30Correct _cgo_free when C ABI does not pass first arg on stack.Ian Lance Taylor1-1/+1
It turns out that _cgo_malloc is used, via cmalloc in runtime/cgocall.c, which is called by code generated by out.go for the ·_C_CString function. I can't find a call to _cgo_free, but given _cgo_malloc we might as well keep _cgo_free. This patch fixes it so that it should work on amd64. R=rsc CC=golang-dev http://codereview.appspot.com/1399041
2010-05-27changes &x -> x[0:] for array to slice conversionRuss Cox1-1/+1
R=gri CC=golang-dev http://codereview.appspot.com/1326042
2010-05-248g: out of register bugRuss Cox1-4/+8
Fixes issue 806. R=ken2 CC=golang-dev http://codereview.appspot.com/1281042
2010-05-24gc: more accurate error descriptionRuss Cox1-2/+2
R=ken2 CC=golang-dev http://codereview.appspot.com/1284041
2010-05-24gc: fix shift/reduce conflict in go.y export syntaxRuss Cox2-4/+19
Fixes issue 771. R=ken2 CC=golang-dev http://codereview.appspot.com/1267042
2010-05-24gc: bug281 - bad overlap in stack copyRuss Cox3-2/+96
Fixes issue 807. R=ken2 CC=golang-dev http://codereview.appspot.com/1283041
2010-05-246g: avoid unnecessary conversion in shift bounds checkRuss Cox1-4/+15
R=ken2 CC=golang-dev http://codereview.appspot.com/1278042
2010-05-24gc: bug277 - new conversion syntaxRuss Cox1-21/+10
R=ken2 CC=golang-dev http://codereview.appspot.com/1220046
2010-05-24gc: bug280Russ Cox1-0/+2
Fixes issue 808. R=ken2 CC=golang-dev http://codereview.appspot.com/1273042
2010-05-24gc: bug278Russ Cox1-0/+3
Fixes issue 804. R=ken2 CC=golang-dev http://codereview.appspot.com/1224045
2010-05-24gc: fix unsafe.Sizeof on ideal constantsRuss Cox1-4/+2
R=ken2 CC=golang-dev http://codereview.appspot.com/1280041
2010-05-21roll back 1193046 - fix buildRuss Cox1-5/+0
R=dho CC=golang-dev http://codereview.appspot.com/1257043
2010-05-21cgo: better error for no C symbolsDevon H. O'Dell1-0/+5
R=rsc, iant CC=golang-dev, graeme.perrow http://codereview.appspot.com/1193046 Committer: Russ Cox <rsc@golang.org>
2010-05-20gc: handle use of builtin function outside function callRuss Cox2-1/+7
tweaks & tests of last bug fix too. R=ken2 CC=golang-dev http://codereview.appspot.com/1207044
2010-05-20gc: line number bug fixRuss Cox1-1/+1
R=ken2 CC=golang-dev http://codereview.appspot.com/1243044
2010-05-20fix bug 275Ken Thompson1-5/+11
R=rsc CC=golang-dev http://codereview.appspot.com/1198046
2010-05-20gc: disallow · in Go programsRuss Cox1-1/+1
Fixes issue 793. R=ken2 CC=golang-dev http://codereview.appspot.com/1249043
2010-05-20fix issue 798Ken Thompson9-0/+51
cannot allocate an audomatic temp while real registers are allocated. there is a chance that the automatic will be allocated to one of the allocated registers. the fix is to not registerize such variables. R=rsc CC=golang-dev http://codereview.appspot.com/1202042
2010-05-18gc: Better error when computing remainder of non-intEvan Shaw1-1/+1
Previously the compiler would just emit "internal compiler error" when trying to compute the remainder of floats or complex types. R=rsc CC=golang-dev http://codereview.appspot.com/1243041 Committer: Russ Cox <rsc@golang.org>
2010-05-17Add Error member to yyLexer type (yyErrorRoger Peppe3-8/+11
has no access to yylex) R=ken2, ken3 CC=golang-dev http://codereview.appspot.com/813047 Committer: Ken Thompson <ken@golang.org>
2010-05-14gofmt: exclude test w/ illegal syntax from test casesRobert Griesemer1-1/+1
R=adg CC=golang-dev http://codereview.appspot.com/1228041
2010-05-06gc: distinguish array, slice literal in error messagesRuss Cox1-1/+4
R=ken2 CC=golang-dev http://codereview.appspot.com/1138041
2010-05-03allow data statements for simpleKen Thompson2-7/+5
external variable assignements. R=rsc CC=golang-dev http://codereview.appspot.com/1094041
2010-05-03gc: bug264Russ Cox1-1/+3
Fixes issue 692. R=ken2 CC=golang-dev http://codereview.appspot.com/1092041
2010-05-03gc: bug267Russ Cox1-0/+2
R=ken2 CC=golang-dev http://codereview.appspot.com/1067042
2010-05-03gc: error for nested functions, one semicolon problemRuss Cox1-1/+6
R=ken2 CC=golang-dev http://codereview.appspot.com/1046042
2010-05-03fix nacl buildRuss Cox1-1/+1
TBR=r CC=golang-dev http://codereview.appspot.com/1063042
2010-05-01gc: be pickier about slice, chan, array, and map sizesRuss Cox5-44/+54
Fixes issue 589. R=ken2 CC=golang-dev http://codereview.appspot.com/1032044
2010-04-308g: bug272Russ Cox1-13/+37
Fixes issue 589. R=ken2 CC=golang-dev http://codereview.appspot.com/1043042
2010-04-30gc: bug271Russ Cox1-8/+7
Fixes issue 662. R=ken2 CC=golang-dev http://codereview.appspot.com/978043
2010-04-30gc: bug270Russ Cox1-4/+1
Fixes issue 746. R=ken2 CC=golang-dev http://codereview.appspot.com/1040042