aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-06-24weekly.2011-06-23weekly.2011-06-23Andrew Gerrand
R=golang-dev, robert.hencke, r CC=golang-dev https://golang.org/cl/4625062
2011-06-24os: fixed PathListSeparator to ';' for windows.Yasuhiro Matsumoto
Fixed issue 1992 R=golang-dev, alex.brainman CC=golang-dev https://golang.org/cl/4661047
2011-06-23http: buffer Request.WriteBrad Fitzpatrick
Fixes #1996 R=golang-dev, r CC=golang-dev https://golang.org/cl/4639068
2011-06-24runtime: don't use twice the memory with grsec-like kernelsGustavo Niemeyer
grsec needs the FIXED flag to be provided to mmap, which works now. That said, when the allocation fails to be made in the specific address, we're still given back a writable page. This change will unmap that page to avoid using twice the amount of memory needed. It'd also be pretty easy to avoid the extra system calls once we detected that the flag is needed, but I'm not sure if that edge case is worth the effort. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4634086
2011-06-24goinstall: build with make by default, add -make flagAndrew Gerrand
This is a temporary measure until go/build can build cgo packages. R=golang-dev, r CC=golang-dev https://golang.org/cl/4627056
2011-06-23mime/multipart: remove newline at top of the multipart.Yasuhiro Matsumoto
R=golang-dev, bradfitz, arctanofyourface CC=golang-dev https://golang.org/cl/4635063
2011-06-23libmach: fix disassembly of FCMOVcc and FCOMIAnthony Martin
The optable for 0xDB is handled specially. This was the cause of a really weird bug when using cov (386!) on the math package. A real head-scratcher. R=rsc CC=golang-dev https://golang.org/cl/4639066
2011-06-22libmach: fix tracing on linux (for cov)Anthony Martin
R=rsc, dave CC=golang-dev https://golang.org/cl/4629064
2011-06-225c: do not use R9 and R10Russ Cox
This program used to use R9 and R10. Now it fails to compile (out of registers). I used to know a simpler test but can't remember it. Learned something new: Rietveld refuses change list descriptions bigger than 10 kB. int sum(int x, int y, int z, int w) { return (((((((x*y+z*w|x*y+z*w)^ (x*y+z*w|x*y+z*w))& ((x*y+z*w|x*y+z*w)^ (x*y+z*w|x*y+z*w)))| (((x*y+z*w|x*y+z*w)^ (x*y+z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y+z*w|x*y+z*w)^ (x*y+z*w|x*y+z*w)))))% (((((x*y+z*w|x*y+z*w)^ (x*y+z*w|x*y+z*w))& ((x*y+z*w|x*y+z*w)^ (x*y+z*w|x*y+z*w)))| (((x*y+z*w|x*y+z*w)^ (x*y+z*w|x*y+z*w))& ((x*y+z*w|x*y+z*w)^ (x*y+z*w|x*y+z*w))))/ ((((x*y+z*w|x*y+z*w)^ (x*y+z*w|x*y+z*w))& ((x*y+z*w|x*y+z*w)^ (x*y+z*w|x*y+z*w)))| (((x*y+z*w|x*y+z*w)^ (x*y+z*w|x*y+z*w))& ((x*y+z*w|x*y+z*w)^ (x*y+z*w|x*y+z*w))))))) ; } R=ken2 CC=golang-dev https://golang.org/cl/4650053
2011-06-23exec: LookPath should not search %PATH% for files like c:cmd.exeAlex Brainman
R=golang-dev CC=golang-dev https://golang.org/cl/4632055
2011-06-23exp/template: make -0 be an unsigned int.Rob Pike
Fix (inconsequential) type error in list initializer. R=rsc CC=golang-dev https://golang.org/cl/4638058
2011-06-23go/build: include Import objects in Script InputsAndrew Gerrand
This has the effect of making goinstall rebuild a package's dependencies when they are newer than the current package object. R=rsc CC=golang-dev https://golang.org/cl/4627051
2011-06-23net, syscall: interface for windowsYasuhiro Matsumoto
R=mikioh.mikioh, alex.brainman, rsc, vincent.vanackere CC=golang-dev https://golang.org/cl/4590050
2011-06-22io: clarify Read, ReadAt, Copy, Copyn EOF behaviorRuss Cox
R=golang-dev, bradfitz, iant, dsymonds, nigeltao, r CC=golang-dev https://golang.org/cl/4629062
2011-06-23First cut at the parser for the new template package.Rob Pike
This is not a full grammar, but the pieces are there to implement whatever we converge on. R=rsc CC=golang-dev https://golang.org/cl/4629053
2011-06-23exec: better error message for windows LookPathAlex Brainman
Fixes #1991. R=golang-dev, bradfitz, rsc CC=golang-dev https://golang.org/cl/4648049
2011-06-23image: basic test for the 16-bits-per-color-channel types.Nigel Tao
R=r CC=golang-dev https://golang.org/cl/4635059
2011-06-22syscall: add tty support to StartProcessKen Rockot
These changes add a Ctty int field to the Unix syscall.ProcAttr which, if set >= 0 in conjuction with Setsid=true, will be used by forkAndExecInChild as the file descriptor for the new child's controlling terminal. Necessary changes have been made to mkerrors.sh to generate defs for TIOC*, though changes to its output files are not included here. The changes made should support Linux, FreeBSD and Darwin, at least. R=iant, bradfitz, r, rsc, borman CC=golang-dev https://golang.org/cl/4532075
2011-06-22A+C: Ken Rockot (individual CLA)Russ Cox
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4648053
2011-06-22build: explain $PWD useRuss Cox
R=golang-dev, gri CC=golang-dev https://golang.org/cl/4639064
2011-06-22sync: restore GOMAXPROCS during benchmarksDmitriy Vyukov
R=golang-dev CC=dvyukov, golang-dev https://golang.org/cl/4631060
2011-06-22ld: don't attempt to build dynamic sections unnecessarilyGustavo Niemeyer
This prevents ld from generating zeroed symtab entries for sections that aren't going to be generated because dynamic linkage has been disabled (-d was used or no dynamic libs were seen). Even though they were not explicitly added by doelf, the section creation process was making them reachable again. The windows head is being disconsidered for this because apparently it's not taking into account debug['d']. This makes elflint 0.1% happier. R=golang-dev, rsc, gustavo CC=golang-dev https://golang.org/cl/4638050
2011-06-22Fix Windows build; ErrorString->NewErrorBrad Fitzpatrick
R=golang-dev, gri CC=golang-dev https://golang.org/cl/4634080
2011-06-22os.Error API: don't export os.ErrorString, use os.NewError consistentlyRobert Griesemer
This is a core API change. 1) gofix misc src 2) Manual adjustments to the following files under src/pkg: gob/decode.go rpc/client.go os/error.go io/io.go bufio/bufio.go http/request.go websocket/client.go as well as: src/cmd/gofix/testdata/*.go.in (reverted) test/fixedbugs/bug243.go 3) Implemented gofix patch (oserrorstring.go) and test case (oserrorstring_test.go) Compiles and runs all tests. R=r, rsc, gri CC=golang-dev https://golang.org/cl/4607052
2011-06-21godefs: remove test from buildRuss Cox
The test is only defined on darwin/amd64, and it fails with recent versions of Xcode, which do not support -gstabs+ debugging output. At some point godefs will have to be replaced, perhaps merged with cgo. Godefs is not needed during builds anyway (its output files are checked into the repository in src/pkg/runtime), so its failure on the newer Xcode is a distraction from an otherwise usable build. Disable the test. Fixes #1985. R=golang-dev, gri, robert.hencke, r CC=golang-dev https://golang.org/cl/4638053
2011-06-21crypto/openpgp: add ElGamal support.Adam Langley
R=bradfitz, r CC=golang-dev https://golang.org/cl/4639049
2011-06-218l: more fixes for Plan 9Lucio De Re
Once these changes are effected, it is possible to construct "8l" native on a (386?) Plan 9 system, albeit with assistance from modules such as mkfiles that are not (yet) included in any public patches. 8l/asm.c: . Corrected some format qualifiers. 8l/list.c: . Cast a print() argument to (int) to match the given format. It may be possible to change the format (%R), but I have not looked into it. 8l/obj.c: . Removed some unused code. 8l/span.c: . Removed unnecessary incrementation on "bp". . Corrected some format qualifiers. ld/data.c: . Corrected some format qualifiers. . Cast print argument to (int): used as field size. . Use braces to suppress warning about empty if() statements. ld/dwarf.c: . Trivial spelling mistake in comment. ld/ldelf.c: . Added USED() statements to silence warnings. . Dropped redundant address (&) operators. . corrected some format qualifiers. . Cast to (int) for switch selection variable. ld/macho.c: . Added USED() statements to silence warnings. ld/ldpe.c: . Added USED() statements to silence warnings. . More careful use of "sect" variable. . Corrected some format qualifiers. . Removed redundant assignments. . Minor fix dropped as it was submitted separately. ld/pe.c: . Dropped <time.h> which is now in <u.h>. . Dropped redundant address (&) operators. . Added a missing variable initialisation. ld/symtab.c: . Added USED() statements to silence warnings. . Removed redundant incrementation. . Corrected some format qualifiers. All the above have been tested against a (very) recent release and do not seem to trigger any regressions. All review suggestions have been incorporated. R=rsc CC=golang-dev https://golang.org/cl/4633043
2011-06-21nacl, tiny: remove vestigesRobert Hencke
R=golang-dev, r, rsc CC=golang-dev https://golang.org/cl/4635053
2011-06-21gopprof: update list of memory allocatorsRuss Cox
Also import new weblist command from Google version. R=r, bradfitz CC=golang-dev https://golang.org/cl/4650048
2011-06-21goinstall: undo 1ad616fb313d (always rebuild...)Andrew Gerrand
CL 4627051 is a better way of doing the same thing. R=golang-dev, r CC=golang-dev https://golang.org/cl/4654045
2011-06-21builder: run make single-threaded on windowsAlex Brainman
Will still honor MAKEFLAGS environment variable if set. R=golang-dev CC=bradfitz, golang-dev https://golang.org/cl/4644049
2011-06-21goinstall: undo repo peeking codeAndrew Gerrand
Keeping the Julian's good refactoring work. R=rsc CC=golang-dev https://golang.org/cl/4638049
2011-06-21Effective Go: supplied missing type in variadic function example.Ben Lynn
R=golang-dev, nigeltao CC=golang-dev https://golang.org/cl/4595055
2011-06-20syscall: add socket control message support for darwin, freebsd, linuxMikio Hara
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4528113
2011-06-21fmt: catch panics from calls to String etc.Rob Pike
This change causes Print et al. to catch panics generated by calls to String, GoString, and Format. The panic is formatted into the output stream as an error, but the program continues. As a special case, if the argument was a nil pointer, the result is just "<nil>", because that's almost certainly enough information and handles the very common case of String methods that don't guard against nil. Scan does not want this change. Input must work; output can be for debugging and it's nice to get output even when you make a mistake. R=dsymonds, r, adg, gri, rsc, gri CC=golang-dev https://golang.org/cl/4640043
2011-06-20all-qemu.bash: cannot test go/buildRuss Cox
R=adg, r CC=golang-dev https://golang.org/cl/4633054
2011-06-20http: write Header keys with empty valuesBrad Fitzpatrick
R=golang-dev, rsc, r CC=golang-dev https://golang.org/cl/4630052
2011-06-20http: permit handlers to explicitly remove the Date headerBrad Fitzpatrick
We'll do the right thing by default, but people wanting minimal response sizes can explicitly remove the Date header. (empty fields aren't written out) R=rsc CC=golang-dev https://golang.org/cl/4634048
2011-06-20os: change Waitmsg String method to use pointer receiverGraham Miller
Fixes #1851. R=rsc CC=golang-dev https://golang.org/cl/4628045
2011-06-20http: add Server.ListenAndServeTLSBrad Fitzpatrick
Fixes #1964 R=rsc CC=golang-dev https://golang.org/cl/4630045
2011-06-20syscall: add LSF support for linuxMikio Hara
R=rsc CC=golang-dev https://golang.org/cl/4626041
2011-06-20codereview.py: note that hg change -d abandons a change listRobert Hencke
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4644043
2011-06-205g, 6g, 8g: fix comments in method call generationAnthony Martin
R=golang-dev CC=golang-dev https://golang.org/cl/4652042
2011-06-205g, 5l: fix more set but not used warningsAnthony Martin
These are present when building with gcc 4.6. R=golang-dev, dave CC=golang-dev, lvd https://golang.org/cl/4636047
2011-06-20test: test of goto restrictionsRuss Cox
R=gri, iant, bradfitz, fvbommel, r CC=golang-dev https://golang.org/cl/4652041
2011-06-20http: fix req.Cookie(name) with cookies in one headerBrad Fitzpatrick
Fixes #1974 R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4654042
2011-06-20mime: fix RFC referencesPascal S. de Kloe
R=golang-dev, bradfitz CC=brad fitzpatrick <bradfitz, golang-dev https://golang.org/cl/4634063
2011-06-20build: exclude packages that fail on Plan 9 (for now)Anthony Martin
All but two packages depend on net: debug/proc os/signal With this change, we can produce a working build with GOOS=plan9. R=golang-dev, r CC=golang-dev https://golang.org/cl/4639053
2011-06-20goinstall: update doc.goAndrew Gerrand
R=golang-dev, r CC=golang-dev https://golang.org/cl/4645048
2011-06-20misc/godashboard: Accept sub-directories for goinstall's report.Yasuhiro Matsumoto
Fixed issue 1155. R=golang-dev, adg, rsc CC=golang-dev https://golang.org/cl/4592059