summaryrefslogtreecommitdiff
path: root/src/cmd
AgeCommit message (Collapse)AuthorFilesLines
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
2010-03-24depricate paniclnKen Thompson6-13/+4
R=rsc CC=golang-dev http://codereview.appspot.com/743041
2010-03-24delete all uses of panicln by rewriting them using panic or,Rob Pike1-1/+1
in the tests, println+panic. gofmt some tests too. R=rsc CC=golang-dev http://codereview.appspot.com/741041
2010-03-24godoc: show relative file names without leading '/' (per r's request)Robert Griesemer1-4/+5
- change the various url-xxx formatters to return a relative URL path - make the leading '/' for URLs explicit in the template - on the way change some |html formatters to |html-esc (html should only be used for formatting AST nodes) R=rsc, r CC=golang-dev http://codereview.appspot.com/740041
2010-03-24godoc: use http GET for remote search instead of rpcRobert Griesemer2-53/+31
(this will allow the use of golang.org for remote searches) R=rsc CC=golang-dev http://codereview.appspot.com/734041
2010-03-24cc: fix typoRuss Cox1-1/+1
R=iant CC=golang-dev http://codereview.appspot.com/720041
2010-03-23arm: fix buildDean Prichard1-2/+2
R=kaib, rsc CC=golang-dev http://codereview.appspot.com/627045 Committer: Russ Cox <rsc@golang.org>
2010-03-23cmd/goinstall: include command name in error reporting (usually missing ↵Andrey Mirtchovski1-1/+2
software or incorrect $PATH) R=rsc CC=golang-dev http://codereview.appspot.com/695041 Committer: Russ Cox <rsc@golang.org>
2010-03-23gc: fix build in FranceRuss Cox1-1/+1
Fixes issue 626. R=ken2 CC=golang-dev http://codereview.appspot.com/714041
2010-03-23Add support for #pragma dynexport.Ian Lance Taylor16-105/+362
R=rsc CC=golang-dev http://codereview.appspot.com/661043
2010-03-22Rename dynld to dynimport throughout.Ian Lance Taylor16-66/+77
Cgo users will need to rerun cgo. R=rsc CC=golang-dev http://codereview.appspot.com/692041
2010-03-22gc: various map-related bug fixesRuss Cox3-57/+50
Fixes issue 687. R=ken2 CC=golang-dev http://codereview.appspot.com/680042
2010-03-20goinstall: let git/hg/svn create the final directory elementRuss Cox1-1/+3
R=r CC=golang-dev http://codereview.appspot.com/634044
2010-03-20issue 682Ken Thompson6-22/+71
complex DATA statement fo initialization of complex variables. R=rsc CC=golang-dev http://codereview.appspot.com/634045
2010-03-19godoc: line numbers for all remote search resultsRobert Griesemer2-9/+13
Instead of returning the index lookup result via RPC which has to be corrected for the client, simply render it on the server and return the final output. R=rsc, r CC=golang-dev http://codereview.appspot.com/669041
2010-03-19godoc: revert change 5089, per gri's instructionsRuss Cox1-24/+3
R=gri CC=golang-dev http://codereview.appspot.com/630043
2010-03-19godoc: proper file path conversion for remote searchRobert Griesemer1-0/+24
R=rsc CC=golang-dev http://codereview.appspot.com/664041
2010-03-19godoc: show (some) line numbers for remote searchRobert Griesemer2-30/+27
- show build version - use build goroot when possible R=rsc CC=golang-dev http://codereview.appspot.com/656043
2010-03-19issue 608Ken Thompson1-0/+1
error compiling if(long long) in 6c compiler R=rsc CC=golang-dev http://codereview.appspot.com/657042
2010-03-19godoc: improved comment formatting: recognize URLsRobert Griesemer2-2/+4
and highlight special words, if provided. Also: - related cleanups in src/pkg/go/doc/comment.go - fix typos in src/cmd/goinstall/doc.go Fixes issue 672. R=rsc CC=adg, golang-dev http://codereview.appspot.com/601042