- 06 Jan, 2013 2 commits
-
-
Russ Cox authored
This CL adds a flag parser that matches the semantics of Go's package flag. It also changes the linkers and compilers to use the new flag parser. Command lines that used to work, like 8c -FVw 6c -Dfoo 5g -I/foo/bar now need to be split into separate arguments: 8c -F -V -w 6c -D foo 5g -I /foo/bar The new spacing will work with both old and new tools. The new parser also allows = for arguments, as in 6c -D=foo 5g -I=/foo/bar but that syntax will not work with the old tools. In addition to matching standard Go binary flag parsing, the new flag parser generates more detailed usage messages and opens the door to long flag names. The recently added gc flag -= has been renamed -complete. R=remyoudompheng, daniel.morsing, minux.ma, iant CC=golang-dev https://golang.org/cl/7035043
-
Russ Cox authored
More cleanup in preparation for fixing issue 4069. This CL replaces the three nearly identical copies of the asmb ELF code with a single asmbelf function in elf.c. In addition to the ELF code movement, remove the elfstr array in favor of a simpler lookup, and identify sections by name throughout instead of computing fragile indices. The CL also replaces the three nearly identical copies of the genasmsym code with a single genasmsym function in lib.c. The ARM linker still compiles and generates binaries, but I haven't tested the binaries. They may not work. R=ken2 CC=golang-dev https://golang.org/cl/7062047
-
- 05 Jan, 2013 1 commit
-
-
Dave Cheney authored
R=rsc CC=golang-dev https://golang.org/cl/7034047
-
- 04 Jan, 2013 7 commits
-
-
Russ Cox authored
The Plan 9 symbol table format defines big-endian symbol values for portability, but we want to be able to generate an ELF object file and let the host linker link it, as part of the solution to issue 4069. The symbol table itself, since it is loaded into memory at run time, must be filled in by the final host linker, using relocation directives to set the symbol values. On a little-endian machine, the linker will only fill in little-endian values during relocation, so we are forced to use little-endian symbol values. To preserve most of the original portability of the symbol table format, we make the table itself say whether it uses big- or little-endian values. If the table begins with the magic sequence fe ff ff ff 00 00 then the actual table begins after those six bytes and contains little-endian symbol values. Otherwise, the table is in the original format and contains big-endian symbol values. The magic sequence looks like an "end of table" entry (the fifth byte is zero), so legacy readers will see a little-endian table as an empty table. All the gc architectures are little-endian today, so the practical effect of this CL is to make all the generated tables little-endian, but if a big-endian system comes along, ld will not generate the magic sequence, and the various readers will fall back to the original big-endian interpretation. R=ken2 CC=golang-dev https://golang.org/cl/7066043
-
Daniel Morsing authored
Fixes #4066. R=rsc, minux.ma CC=golang-dev https://golang.org/cl/7040044
-
Lucio De Re authored
A few USED(xxx) additions and a couple of deletions of variable initialisations that go unused. One questionable correction, mirrored in 8l/asm.c, where the result of invocation of a function shouldn't be used. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6736054
-
Russ Cox authored
R=golang-dev, dsymonds, minux.ma, iant, alex.brainman CC=golang-dev https://golang.org/cl/7035055
-
Ian Lance Taylor authored
Otherwise we can get predictable collisions. R=golang-dev, dave, patrick, rsc CC=golang-dev https://golang.org/cl/7051043
-
John Graham-Cumming authored
RFC5424 specifies a version number (currently 1) after the facility and severity in a syslog message (e.g. <7>1 TIMESTAMP ...). This causes rsyslog to fail to parse syslog message because the rest of the message is not fully compliant with RFC5424. For the widest compatibility, drop the version (messages are in the RFC3164 BSD syslog format (e.g. <7>TIMESTAMP ...). Have tested this with syslog-ng, rsyslog and syslogd. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7036050
-
Jan Ziak authored
R=rsc CC=golang-dev https://golang.org/cl/7029055
-
- 03 Jan, 2013 5 commits
-
-
Matthew Dempsky authored
TimeoutHandler was changed from "ns int64" to "dt time.Duration" on Nov 30, 2011, but the godoc still refers to "ns". R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7031050
-
Ian Lance Taylor authored
R=golang-dev, agl CC=golang-dev https://golang.org/cl/7049043
-
Dave Cheney authored
* Extended deadline to 30 seconds * Added logging of the duration of each package import * Fail the test immediately if directories cannot be read R=gri, minux.ma CC=golang-dev https://golang.org/cl/7030055
-
Nigel Tao authored
R=rsc CC=golang-dev https://golang.org/cl/6930047
-
Robert Griesemer authored
A composite literal may be parenthesized when used as operand for the unary operator &. R=rsc, iant, r, ken CC=golang-dev https://golang.org/cl/6996053
-
- 02 Jan, 2013 18 commits
-
-
Rémy Oudompheng authored
Before: (erf.go:188) TEXT Erf+0(SB),$220 (erf.go:265) TEXT Erfc+0(SB),$204 (lgamma.go:174) TEXT Lgamma+0(SB),$948 After: (erf.go:188) TEXT Erf+0(SB),$84 (erf.go:265) TEXT Erfc+0(SB),$84 (lgamma.go:174) TEXT Lgamma+0(SB),$44 SSE before vs. SSE after: benchmark old ns/op new ns/op delta BenchmarkAcosh 81 49 -39.14% BenchmarkAsinh 109 109 +0.00% BenchmarkAtanh 73 74 +0.68% BenchmarkLgamma 138 42 -69.20% BenchmarkModf 24 15 -36.95% BenchmarkSqrtGo 565 556 -1.59% R=rsc CC=golang-dev https://golang.org/cl/7028048
-
Russ Cox authored
This makes dist safe for CL 7035043 (but keeps working now too). R=golang-dev, remyoudompheng CC=golang-dev https://golang.org/cl/7029047
-
Brad Fitzpatrick authored
It already did so for its sibling, *strings.Reader, as well as *bytes.Buffer. R=edsrzf, dave, adg, kevlar, remyoudompheng, adg, rsc CC=golang-dev https://golang.org/cl/7031045
-
Thomas Kappler authored
Add a check for this case and don't try to follow the anonymous type's non-existent fields. Fixes #4474. R=rsc CC=golang-dev https://golang.org/cl/6945065
-
Russ Cox authored
Generated by addca. R=gobot CC=golang-dev https://golang.org/cl/7038049
-
Rick Arnold authored
Request.URL had no documentation before and some people were expecting all fields to be populated. Fixes #3805. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7008046
-
Rémy Oudompheng authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7045043
-
Rémy Oudompheng authored
A new environment variable GO386 is introduced to choose between code generation targeting 387 or SSE2. No auto-detection is performed and the setting defaults to 387 to preserve previous behaviour. The patch is a reorganization of CL6549052 by rsc. Fixes #3912. R=minux.ma, rsc CC=golang-dev https://golang.org/cl/6962043
-
Russ Cox authored
Update #599. R=dvyukov, iant, minux.ma CC=golang-dev https://golang.org/cl/7001056
-
Rémy Oudompheng authored
Unnamed types like structs with embedded fields can have methods. These methods are generated on-the-fly by the compiler and it may happen for identical types in different packages. The linker must accept these multiple definitions. Fixes #4590. R=golang-dev, rsc CC=golang-dev, remy https://golang.org/cl/7030051
-
Russ Cox authored
Fixes #4510. R=ken2 CC=golang-dev https://golang.org/cl/7001054
-
Russ Cox authored
Multiple files with the same package all get compiled together. R=golang-dev, iant, dave CC=golang-dev https://golang.org/cl/7005053
-
Russ Cox authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/7035045
-
Robert Griesemer authored
Also: Return first error whether an error handler is set in the context or not (bug fix). R=adonovan CC=golang-dev https://golang.org/cl/7024043
-
Dmitriy Vyukov authored
R=minux.ma, franciscossouza, rsc, adg, adg CC=golang-dev https://golang.org/cl/6948043
-
Andrew Gerrand authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/7034044
-
Andrew Gerrand authored
Generated by addca. R=gobot CC=golang-dev https://golang.org/cl/7038046
-
Kamil Kisiel authored
Fixes #4211. R=golang-dev, adg CC=golang-dev https://golang.org/cl/6970051
-
- 01 Jan, 2013 2 commits
-
-
Dave Cheney authored
sysarch requires arguments to be passed on the stack, not in registers. Credit to Shenghou Ma (minux) for the fix. R=minux.ma, devon.odell CC=golang-dev https://golang.org/cl/7037043
-
Dave Cheney authored
Under FreeBSD-CURRENT on arm, cgo enabled binaries segfault. Disable cgo support for the moment so we can have a freebsd/arm builder on the dashboard. R=minux.ma, rsc, iant CC=golang-dev https://golang.org/cl/7031044
-
- 30 Dec, 2012 3 commits
-
-
Russ Cox authored
Fixes #2443. R=ken2 CC=golang-dev https://golang.org/cl/6997048
-
Ryan Slade authored
Allows encoding and decoding of maps with key of string kind, not just string type. Fixes #3519. R=rsc, dave CC=golang-dev https://golang.org/cl/6943047
-
Russ Cox authored
Fixes #4597. R=ken2 CC=golang-dev https://golang.org/cl/7032043
-
- 29 Dec, 2012 2 commits
-
-
Dave Cheney authored
R=golang-dev, minux.ma, rsc CC=golang-dev https://golang.org/cl/7025044
-
Sébastien Paolacci authored
Used to then die on a nil pointer situation. Most Linux standard setups are rather restrictive regarding the default amount of lockable memory. R=minux.ma, rsc CC=golang-dev https://golang.org/cl/6997049
-