- 26 Jun, 2011 1 commit
-
-
Robert Hencke authored
Fixes #1970. R=rsc, r CC=golang-dev https://golang.org/cl/4650050
-
- 25 Jun, 2011 3 commits
-
-
Robert Hencke authored
Fixes #1969. R=gri, rsc, r CC=golang-dev https://golang.org/cl/4634076
-
Robert Griesemer authored
- don't rely on /dev/stdin as the name for standard input - employ EBNF extraction if the source contains tags "cat source.html | ebnflint" works now R=r CC=golang-dev https://golang.org/cl/4641075
-
Michael T. Jones authored
Users of the Scan() infrastructure that employ ReadRune() rather than Token() need a way to skip leading spaces and newlines as set by the the parent, Fscan(), Fscanln, or Fscanf(). As the internal methods and boolean flags are not exported, this new function was added here and in the Int and Nat Scan() functions of the big package. (fmt.Rat did not need change since it uses Token()) Also added Printf style format code support to int types and tests for same to int_test.go R=r, r, gri, mtj CC=golang-dev https://golang.org/cl/4634074
-
- 24 Jun, 2011 12 commits
-
-
Brad Fitzpatrick authored
As rsc suggested after change 58a6bdac3d12 was committed, we now read the first byte of Request.Body when the Request.ContentLength is 0 to disambiguate between a truly zero-length body and a body of unknown length where the user didn't set the ContentLength field. This was also causing the reverse proxy problem where incoming requests (which always have a body, of private type http.body, even for 0-lengthed requests) were being relayed to the http Transport for fetching, which was serializing the request as a chunked request (since ContentLength was 0 and Body was non-nil) Fixes #1999 R=golang-dev, kevlar CC=golang-dev https://golang.org/cl/4628063
-
Brad Fitzpatrick authored
Incremental step in fix for issue 1999 R=golang-dev, kevlar CC=golang-dev https://golang.org/cl/4667041
-
Pascal S. de Kloe authored
RFC 1521 section 4 states "The type, subtype, and parameter names are not case sensitive.". R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/4648047
-
Robert Hencke authored
file.go contains a more complete package description. R=golang-dev, gri CC=golang-dev https://golang.org/cl/4645058
-
Quan Yong Zhai authored
R=golang-dev, gri CC=golang-dev https://golang.org/cl/4630065
-
Alex Brainman authored
R=golang-dev CC=golang-dev https://golang.org/cl/4630066
-
Andrew Gerrand authored
R=r CC=golang-dev https://golang.org/cl/4635067
-
Andrew Gerrand authored
R=golang-dev, robert.hencke, r CC=golang-dev https://golang.org/cl/4625062
-
Yasuhiro Matsumoto authored
Fixed issue 1992 R=golang-dev, alex.brainman CC=golang-dev https://golang.org/cl/4661047
-
Brad Fitzpatrick authored
Fixes #1996 R=golang-dev, r CC=golang-dev https://golang.org/cl/4639068
-
Gustavo Niemeyer authored
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
-
Andrew Gerrand authored
This is a temporary measure until go/build can build cgo packages. R=golang-dev, r CC=golang-dev https://golang.org/cl/4627056
-
- 23 Jun, 2011 7 commits
-
-
Yasuhiro Matsumoto authored
R=golang-dev, bradfitz, arctanofyourface CC=golang-dev https://golang.org/cl/4635063
-
Anthony Martin authored
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
-
Anthony Martin authored
R=rsc, dave CC=golang-dev https://golang.org/cl/4629064
-
Russ Cox authored
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*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*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+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
-
Alex Brainman authored
R=golang-dev CC=golang-dev https://golang.org/cl/4632055
-
Rob Pike authored
Fix (inconsequential) type error in list initializer. R=rsc CC=golang-dev https://golang.org/cl/4638058
-
Andrew Gerrand authored
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
-
- 22 Jun, 2011 14 commits
-
-
Yasuhiro Matsumoto authored
R=mikioh.mikioh, alex.brainman, rsc, vincent.vanackere CC=golang-dev https://golang.org/cl/4590050
-
Russ Cox authored
R=golang-dev, bradfitz, iant, dsymonds, nigeltao, r CC=golang-dev https://golang.org/cl/4629062
-
Rob Pike authored
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
-
Alex Brainman authored
Fixes #1991. R=golang-dev, bradfitz, rsc CC=golang-dev https://golang.org/cl/4648049
-
Nigel Tao authored
R=r CC=golang-dev https://golang.org/cl/4635059
-
Ken Rockot authored
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
-
Russ Cox authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4648053
-
Russ Cox authored
R=golang-dev, gri CC=golang-dev https://golang.org/cl/4639064
-
Dmitriy Vyukov authored
R=golang-dev CC=dvyukov, golang-dev https://golang.org/cl/4631060
-
Gustavo Niemeyer authored
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
-
Brad Fitzpatrick authored
R=golang-dev, gri CC=golang-dev https://golang.org/cl/4634080
-
Robert Griesemer authored
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
-
Russ Cox authored
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
-
Adam Langley authored
R=bradfitz, r CC=golang-dev https://golang.org/cl/4639049
-
- 21 Jun, 2011 3 commits
-
-
Lucio De Re authored
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
-
Robert Hencke authored
R=golang-dev, r, rsc CC=golang-dev https://golang.org/cl/4635053
-
Russ Cox authored
Also import new weblist command from Google version. R=r, bradfitz CC=golang-dev https://golang.org/cl/4650048
-