summaryrefslogtreecommitdiff
path: root/src/cmd
AgeCommit message (Collapse)AuthorFilesLines
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý102-4142/+3177
2011-06-16Imported Upstream version 57.2upstream/57.2Ondřej Surý6-0/+143
2011-05-04Imported Upstream version 57upstream/57Ondřej Surý5-205/+21
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý80-420/+1153
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý149-1464/+24963
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý72-705/+1207
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý46-463/+709
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý91-1137/+2639
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý221-12800/+22731
2010-07-01strings and bytes.Split: make count of 0 mean 0, not infinite.Rob Pike6-9/+9
Use a count of -1 for infinity. Ditto for Replace. R=rsc CC=golang-dev http://codereview.appspot.com/1704044 Committer: Rob Pike <r@golang.org>
2010-07-016l: drop confusing commentRuss Cox1-1/+1
R=ken2 CC=golang-dev http://codereview.appspot.com/1693047
2010-07-016a: assemble CMPPD as 6l expectsRuss Cox1-1/+1
libmach: disassemble CMPPD as 6a expects R=ken2 CC=Charlie Dorian, golang-dev http://codereview.appspot.com/1704046
2010-07-016l: implement MOVLQZX as "mov", not "movsxd"Russ Cox1-1/+1
(Here, quoted strings are the official AMD names.) The amd64 "movsxd" instruction, when invoked with a 64-bit REX prefix, moves and sign extends a 32-bit value from register or memory into a 64-bit register. 6.out.h spells this MOVLQSX. 6.out.h also includes MOVLQZX, the zero extending version, which it implements as "movsxd" without the REX prefix. Without the REX prefix it's only sign extending 32 bits to 32 bits (i.e., not doing anything to the bits) and then storing in a 32-bit register. Any write to a 32-bit register zeros the top half of the corresponding 64-bit register, giving the advertised effect. This particular implementation of the functionality is non-standard, because an ordinary 32-bit "mov" would do the same thing. Because it is non-standard, it is often mishandled or not handled by binary translation tools like valgrind. Switching to the standard "mov" makes the binaries work better with those tools. It's probably useful in 6c and 6g to have an explicit instruction, though, so that the intent of the size change is clear. Thus we leave the concept of MOVLQZX and just implement it by the standard "mov" instead of the non-standard 32-bit "movsxd". Fixes issue 896. R=ken2 CC=golang-dev http://codereview.appspot.com/1733046
2010-06-30goinstall: support for Bazaar+LaunchpadGustavo Niemeyer3-43/+88
With these changes, goinstall is now able to use branches maintained with Bazaar located in Launchpad. Project aliases such as /project and /project/series are supported in addition to specific user or team branches such as /~user/project/branch. Temporary branches under the +junk special project are also supported. As a curious side effect, since Launchpad is able to import code from other locations, they can be indirectly accessible too if desired. R=rsc CC=golang-dev http://codereview.appspot.com/1699050 Committer: Russ Cox <rsc@golang.org>
2010-06-30cgo: use slash-free relative paths for .so referencesRuss Cox5-8/+37
The Makefile and cgo now rewrite / to _ when creating the path. The .so for gosqlite.googlecode.com/hg/sqlite is named cgo_gosqlite.googlecode.com_hg_sqlite.so, and then 6l and 8l both include a default rpath of $GOROOT/pkg/$GOOS_$GOARCH. This should make it easier to move binaries from one system to another. Fixes issue 857. R=iant, r CC=golang-dev http://codereview.appspot.com/1700048
2010-06-308g: out of register bug fixRuss Cox1-1/+3
Fixes issue 868. R=ken2 CC=golang-dev http://codereview.appspot.com/1695049
2010-06-30gc: do not crash on bad [...]TRuss Cox1-0/+5
Fixes issue 879. R=ken2 CC=golang-dev http://codereview.appspot.com/1678048
2010-06-30godoc: canonicalize codewalk pathsAndrew Gerrand1-0/+5
R=rsc CC=golang-dev http://codereview.appspot.com/1729046
2010-06-29ld: fix implementation of -uRuss Cox3-19/+57
R=r CC=golang-dev http://codereview.appspot.com/1678046
2010-06-29code gen bug in len(nil) and cap(nil)Ken Thompson3-0/+12
fixes issue 892 R=rsc CC=golang-dev http://codereview.appspot.com/1745042
2010-06-28compiler fatal error in switch.Ken Thompson1-5/+6
fixes issue 867. R=rsc CC=golang-dev http://codereview.appspot.com/1691045
2010-06-288g compiler missing call to splitclean().Ken Thompson1-1/+4
fixes issue 887. R=rsc CC=golang-dev http://codereview.appspot.com/1675050
2010-06-27optimization of static initializationKen Thompson4-128/+202
R=rsc CC=golang-dev http://codereview.appspot.com/1677049
2010-06-23gc: fix crash for nested complex divisionRuss Cox1-1/+1
R=ken2 CC=golang-dev http://codereview.appspot.com/1720043
2010-06-21ld: add -u flag to check safe bits; discard old -u, -x flagsRuss Cox4-31/+28
R=r, r2 CC=golang-dev http://codereview.appspot.com/1707043
2010-06-21gc: include struct field tags in type equalityRuss Cox1-1/+13
R=ken2 CC=golang-dev http://codereview.appspot.com/1667048
2010-06-21goinstall: process dependencies for package mainRoger Peppe3-16/+30
Currently to install a command, you have to manually goinstall each of the remote packages that it depends on. This patch lets goinstall P work where P is contains files in package main. It does not actually build the package, but it installs all of its dependencies and prints a message to that effect. R=rsc CC=golang-dev http://codereview.appspot.com/1301043 Committer: Russ Cox <rsc@golang.org>
2010-06-20undo changes accidentally included in 09c5add99d50Russ Cox1-2/+4
R=ken2 CC=golang-dev http://codereview.appspot.com/1736042
2010-06-20reflect: add Kind, remove Int8Type, Int8Value, etc.Russ Cox1-13/+19
update other code to match. R=r CC=golang-dev http://codereview.appspot.com/1680044
2010-06-20gc: delete debug printRuss Cox1-1/+0
R=ken2 CC=golang-dev http://codereview.appspot.com/1732043
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