summaryrefslogtreecommitdiff
path: root/src/cmd
AgeCommit message (Collapse)AuthorFilesLines
2010-04-29gc: bug268Russ Cox1-0/+6
Fixes issue 745. R=ken2 CC=golang-dev http://codereview.appspot.com/1008045
2010-04-275l, 6l, 8l, runtime: make -s binaries workRuss Cox15-42/+227
5l, 6l, 8l: change ELF header so that strip doesn't destroy binary Fixes issue 261. R=iant, r CC=golang-dev http://codereview.appspot.com/994044
2010-04-27gc: better windows detectionRuss Cox2-20/+8
R=ken2 CC=golang-dev http://codereview.appspot.com/944043
2010-04-27gc: fix islocalname on windowsRuss Cox2-1/+28
Fixes issue 732. R=ken2 CC=golang-dev http://codereview.appspot.com/956050
2010-04-27godoc: use int64 for timestampsChristopher Wedgwood1-4/+3
This fixes a crash seen when viewing a directory list. Fixes issue 747. R=gri CC=golang-dev, rsc http://codereview.appspot.com/1010042 Committer: Robert Griesemer <gri@golang.org>
2010-04-26gc: more specific error for statements at top levelRuss Cox1-10/+20
R=ken2, r, ken3 CC=golang-dev http://codereview.appspot.com/1006041
2010-04-26godoc: add codewalk supportRuss Cox3-2/+501
R=adg, gri CC=golang-dev, r http://codereview.appspot.com/1008042
2010-04-22runtime: closures, defer bug fix for Native ClientRuss Cox6-19/+57
Enable package tests for Native Client build. R=r CC=golang-dev http://codereview.appspot.com/957042
2010-04-206l, 8l: include ELF header in PT_LOAD mapping for text segmentRuss Cox2-10/+10
Due to page boundary rounding, the header would have been loaded as part of the text segment already, but this change placates the "paxctl" tool on so-called hardened Linux distributions (as if normal distributions weren't already hard enough to use). R=r CC=golang-dev http://codereview.appspot.com/954041
2010-04-20gc: print x[y:] correctlyRuss Cox1-1/+2
R=ken2 CC=golang-dev http://codereview.appspot.com/955041
2010-04-19gc: cmplx typecheck bug fixRuss Cox1-1/+1
Fixes issue 729. R=ken2 CC=golang-dev http://codereview.appspot.com/875048
2010-04-15"godoc -src pkg_name" excludes duplicates entriesAndrei Vieru1-1/+1
$ godoc xml | grep Copy\(\) func (c CharData) Copy() CharData func (c Comment) Copy() Comment func (d Directive) Copy() Directive func (p ProcInst) Copy() ProcInst func (e StartElement) Copy() StartElement -------------------------------------------- $ godoc -src xml | grep Copy\(\) func (c CharData) Copy() CharData -------------------------------------------- $ godoc -src xml Copy func (c CharData) Copy() CharData { return CharData(makeCopy(c)) } -------------------------------------------- The command "godoc -src pkg_name" should output the interface of the named package, but it excludes all duplicate entries. Also the command "godoc -src pkg_name method_name" will output the source code only for one method even if there are more of them with the same name in the same package. This patch set fixes this issue. R=gri CC=golang-dev http://codereview.appspot.com/883051 Committer: Robert Griesemer <gri@golang.org>
2010-04-15synchronize ARM runner environment variable with run-armKai Backman1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/912041
2010-04-138l: add DOS stub to PE binariesEvan Shaw1-2/+23
R=rsc CC=golang-dev http://codereview.appspot.com/915041 Committer: Russ Cox <rsc@golang.org>
2010-04-12gc: zero unnamed return values on entry if func has deferRuss Cox1-4/+10
R=ken2 CC=golang-dev http://codereview.appspot.com/891050
2010-04-11gc: compile s == "" as len(s) == 0Russ Cox1-0/+24
R=ken2 CC=golang-dev http://codereview.appspot.com/840043
2010-04-11gc: distinguish fatal compiler bug from error+exitRuss Cox4-23/+49
R=ken2 CC=golang-dev http://codereview.appspot.com/902044
2010-04-11gc: make sure main.main has correct typeRuss Cox1-2/+9
R=ken2 CC=golang-dev http://codereview.appspot.com/883049
2010-04-11godoc: change od.Dir -> os.FileInfo in commentsChristopher Wedgwood1-2/+2
R=gri, r CC=golang-dev, rsc http://codereview.appspot.com/819042 Committer: Rob Pike <r@golang.org>
2010-04-09runtime: delete malx, skip_depth argument to mallocRuss Cox1-0/+28
remove internal functions from traces in gopprof instead. R=r CC=golang-dev http://codereview.appspot.com/855046
2010-04-09Add //export to cgo.Ian Lance Taylor2-1/+352
The new //export comment marks a Go function as callable from C. The syntax is "//export NAME" where NAME is the name of the function as seen from C. If such a comment is seen, cgo will generate two new files: _cgo_export.h and _cgo_export.c. The _cgo_export.h file provides declarations which C code may use to call Go functions. The _cgo_export.c file contains wrappers, and is to be compiled with gcc. The changes to Make.pkg support using this from a Go Makefile, though it could probably be more convenient. R=rsc CC=golang-dev http://codereview.appspot.com/853042
2010-04-09rename os.Dir to os.FileInfoRob Pike3-20/+20
R=rsc CC=golang-dev http://codereview.appspot.com/902042
2010-04-07gotest: update URL printed by failure message.Rob Pike1-1/+1
Fixes issue 677. R=rsc CC=golang-dev http://codereview.appspot.com/834046
2010-04-06Change goyacc to be reentrant.Roger Peppe3-605/+532
Instead of calling the package scope Lex function, Parse now takes an argument which is used to do the lexing. I reverted to having the generated switch code inside Parse rather than a separate function because the function needs 7 arguments or a context structure, which seems unnecessary. I used yyrun(), not the original $A so that it's possible to run the backquoted code through gofmt. R=rsc, ken2, ken3 CC=golang-dev http://codereview.appspot.com/879041 Committer: Ken Thompson <ken@golang.org>
2010-04-06replace original float instruction with jump to make branchesKai Backman1-11/+12
to float instructions work correctly. R=rsc CC=golang-dev http://codereview.appspot.com/870044
2010-04-05runtime: various arm fixesRuss Cox3-4/+8
* correct symbol table size * do not reorder functions in output * traceback * signal handling * use same code for go + defer * handle leaf functions in symbol table R=kaib, dpx CC=golang-dev http://codereview.appspot.com/884041
2010-04-04gc: good syntax error for defer func() {} - missing final ()Russ Cox1-0/+4
R=ken2 CC=golang-dev http://codereview.appspot.com/855044
2010-04-01runtime: turn run time errors checks into panicsRuss Cox18-106/+58
R=ken2, r CC=golang-dev http://codereview.appspot.com/871042 Committer: Russ Cox <rsc@golang.org>
2010-03-31gc: fix alignment on non-amd64Russ Cox1-1/+1
R=ken2 CC=golang-dev http://codereview.appspot.com/870041
2010-03-31gc: implement panic and recoverRuss Cox11-17/+54
R=ken2, r, ken3 CC=golang-dev http://codereview.appspot.com/831042
2010-03-30godoc: support for title and subtitle headers when serving .html docsRobert Griesemer2-17/+27
and use it to show version (date) of go spec Fixes issue 68. R=rsc CC=golang-dev, r http://codereview.appspot.com/848042
2010-03-30godoc: don't print package clause in -src command-line mode with filteringRobert Griesemer1-1/+12
R=rsc CC=golang-dev http://codereview.appspot.com/844041
2010-03-30gc: add panic and recover (still unimplemented in runtime)Russ Cox7-5/+35
main semantic change is to enforce single argument to panic. runtime: change to 1-argument panic. use String method on argument if it has one. R=ken2, r CC=golang-dev http://codereview.appspot.com/812043
2010-03-30simplify various code using new map index ruleRuss Cox3-10/+10
R=r CC=golang-dev http://codereview.appspot.com/833044
2010-03-30godefs: fix handling of negative constantsRuss Cox1-2/+8
R=r CC=golang-dev http://codereview.appspot.com/849041
2010-03-30single argument panicRuss Cox3-3/+3
note that sortmain.go has been run through hg gofmt; only the formatting of the day initializers changed. i'm happy to revert that formatting if you'd prefer. stop on error in doc/progs/run R=r CC=golang-dev http://codereview.appspot.com/850041
2010-03-29gc: flush warnings, if anyRuss Cox1-0/+1
R=ken2 CC=golang-dev http://codereview.appspot.com/811042
2010-03-29godoc: support for filtering of command-line output in -src modeRobert Griesemer3-26/+91
+ various minor cleanups Usage: godoc -src math Sin R=rsc CC=golang-dev http://codereview.appspot.com/791041
2010-03-29gc: bug265Russ Cox1-5/+20
Fixes issue 700. R=ken2 CC=golang-dev http://codereview.appspot.com/839041
2010-03-29fix buildRuss Cox1-2/+2
R=gri CC=golang-dev http://codereview.appspot.com/837041
2010-03-29runtime: more malloc statisticsRuss Cox1-1/+2
expvar: default publishings for cmdline, memstats godoc: import expvar R=r CC=golang-dev http://codereview.appspot.com/815041
2010-03-26arm: fix buildDean Prichard1-5/+4
R=rsc CC=golang-dev http://codereview.appspot.com/800041 Committer: Russ Cox <rsc@golang.org>
2010-03-26gc: allow taking address of out parametersRuss Cox5-11/+95
Fixes issue 186. R=ken2 CC=golang-dev http://codereview.appspot.com/793041
2010-03-26fix buildRuss Cox1-1/+1
TBR=r CC=golang-dev http://codereview.appspot.com/785041
2010-03-26godoc: export pprof debug informationRuss Cox1-0/+1
R=gri CC=golang-dev http://codereview.appspot.com/784041
2010-03-26prof: install gopprof tooRuss Cox2-1/+4725
This is a modified version of the open source pprof from code.google.com/p/google-perftools. That version is likely to catch up to this one, but it's still useful to ship our own copy since we only need the one script from that project, not all the C++ libraries. R=r CC=golang-dev http://codereview.appspot.com/783041
2010-03-26fix spelling of alignRob Pike7-14/+14
R=rsc CC=golang-dev http://codereview.appspot.com/778041
2010-03-25make alignment rules match 8g, just like 6c matches 6g.Russ Cox1-2/+4
R=ken2 CC=golang-dev http://codereview.appspot.com/760042
2010-03-25gc: more syntax errorsRuss Cox1-10/+16
R=r CC=golang-dev http://codereview.appspot.com/731041
2010-03-25Support #pragma dynexport on OS X.Ian Lance Taylor1-20/+108
R=rsc CC=golang-dev http://codereview.appspot.com/733041