- 09 Sep, 2015 17 commits
-
-
Shawn Walker-Salas authored
In support of the changes required for #8609, it was suggested that syscall.getwd() be updated to work on Solaris first since the runtime uses it and today it's unimplemented. Fixes #12507 Change-Id: Ifb58ac9db8540936d5685c2c58bdc465dbc836cb Reviewed-on: https://go-review.googlesource.com/14420Reviewed-by: Aram Hăvărneanu <aram@mgk.ro>
-
Rob Pike authored
Trivial fix: set unexported=true for builtin. Godoc itself has a similar hack. Fixes #12541 Change-Id: Ib701f867d117931eb6ec6de223941b52eb6cd4a7 Reviewed-on: https://go-review.googlesource.com/14441Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Marvin Stenger authored
Fixes #12440 Change-Id: Iead77fe34d986cfd5c16bac671fe13c8d012a754 Reviewed-on: https://go-review.googlesource.com/14178Reviewed-by: Rob Pike <r@golang.org>
-
Rob Pike authored
Change-Id: I33c0425361c98b175d8d87e0f7e44946bfb3e3fa Reviewed-on: https://go-review.googlesource.com/14440Reviewed-by: Rob Pike <r@golang.org>
-
Keith Randall authored
We compute whether two keys k1 and k2 in a map literal are duplicates by constructing the expression OEQ(k1, k2) and calling the constant expression evaluator on that expression, then extracting the boolean result. Unfortunately, the constant expression evaluator can fail for various reasons. I'm not really sure why it is dying in the case of 12536, but to be safe we should use the result only if we get a constant back (if we get a constant back, it must be boolean). This probably isn't a permanent fix, but it should be good enough for 1.5.2. A permanent fix would be to ensure that the constant expression evaluator can always work for map literal keys, and if not the compiler should generate an error saying that the key isn't a constant (or isn't comparable to some specific other key). This patch has the effect of allowing the map literal to compile when constant eval of the OEQ fails. If the keys are really equal (which the map impl will notice at runtime), one will overwrite the other in the resulting map. Not great, but better than a compiler crash. Fixes #12536 Change-Id: Ic151a5e3f131c2e8efa0c25c9218b431c55c1b30 Reviewed-on: https://go-review.googlesource.com/14400Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Marvin Stenger authored
Convert two fields of struct TempVar in popt.go from uint8 to bool. This change passes go build -toolexec 'toolstash -cmp' -a std. Change-Id: I1aa14313e0241a4e9cadd63c6c681ed4e965a9a3 Reviewed-on: https://go-review.googlesource.com/14377Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Marvin Stenger authored
Convert two fields of struct Symlink in subr.go from uint8 to bool. This change passes go build -toolexec 'toolstash -cmp' -a std. Change-Id: I913006f41605b17b0d82fe358ee773f6ecaa681c Reviewed-on: https://go-review.googlesource.com/14378Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Rob Pike authored
Change-Id: I3bf1862c304ff08bfb87f84b6ccbb50204225244 Reviewed-on: https://go-review.googlesource.com/14407Reviewed-by: Rob Pike <r@golang.org>
-
Rob Pike authored
Borrowing a suggestion from the issue listed below, we modify the lexer to trim spaces at the beginning (end) of a block of text if the action immediately before (after) is marked with a minus sign. To avoid parsing/lexing ambiguity, we require an ASCII space between the minus sign and the rest of the action. Thus: {{23 -}} < {{- 45}} produces the output 23<45 All the work is done in the lexer. The modification is invisible to the parser or any outside package (except I guess for noticing some gaps in the input if one tracks error positions). Thus it slips in without worry in text/template and html/template both. Fixes long-requested issue #9969. Change-Id: I3774be650bfa6370cb993d0899aa669c211de7b2 Reviewed-on: https://go-review.googlesource.com/14391Reviewed-by: Andrew Gerrand <adg@golang.org>
-
Konstantin Shaposhnikov authored
Block comments appear after a block in the HTML documentation generated by godoc. Words like "following" should be avoided. Change-Id: Iedfad67f4b8b9c84f128b98b9b06fa76919af388 Reviewed-on: https://go-review.googlesource.com/14357Reviewed-by: Rob Pike <r@golang.org>
-
Nigel Tao authored
http://www.w3.org/TR/PNG/#11IHDR says that "Zero is an invalid value". This change only affects the decoder. The encoder already checks non-positive instead of negative. Fixes #12545. Change-Id: Iba40e1a2f4e0eec8b2fbcd3bbdae886311434da7 Reviewed-on: https://go-review.googlesource.com/14411Reviewed-by: Rob Pike <r@golang.org>
-
Nigel Tao authored
Change-Id: Ie7368188ad4a970a82c140962cf97347d24f0331 Reviewed-on: https://go-review.googlesource.com/14410Reviewed-by: David Symonds <dsymonds@golang.org>
-
Michael Hudson-Doyle authored
Also run testcshared. Fixes #12425 Change-Id: I5baea8d772d3462f945aab96260b4197dbb20c0a Reviewed-on: https://go-review.googlesource.com/14143Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Austin Clements authored
Change-Id: I6affe75b5fa9dbf513c16200bff4fd7aa5f3a985 Reviewed-on: https://go-review.googlesource.com/14051Reviewed-by: Rick Hudson <rlh@golang.org>
-
Austin Clements authored
Currently the stack barrier code is mixed in with the mark and scan code. Move all of the stack barrier related functions and variables to a new dedicated source file. There are no code modifications. Change-Id: I604603045465ef8573b9f88915d28ab6b5910903 Reviewed-on: https://go-review.googlesource.com/14050Reviewed-by: Rick Hudson <rlh@golang.org>
-
Chris Broadfoot authored
Change-Id: I56452559acc432e06c15844d3f25dbeacafe77b7 Reviewed-on: https://go-review.googlesource.com/14402Reviewed-by: Andrew Gerrand <adg@golang.org>
-
Dave Cheney authored
Following on from CL 14350, remove the remaining dead code from data.go. Also leave a TODO to be addressed later (with a unit test) to reduce the overhead of SymGrow. Change-Id: Iebad775b1280b54b89e87a3a073ca8af19a8bfba Reviewed-on: https://go-review.googlesource.com/14359 Run-TryBot: Dave Cheney <dave@cheney.net> Reviewed-by: Michael Hudson-Doyle <michael.hudson@canonical.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
- 08 Sep, 2015 14 commits
-
-
Michael Hudson-Doyle authored
Currently Go produces shared libraries that cannot be shared between processes because they have relocations against the text segment (not text section). This fixes this by moving some data to sections with magic names recognized by the static linker. The change in genasmsym to add STYPELINK to the switch should fix things on darwin/arm64. Fixes #10914 Updates #9210 Change-Id: Iab4a6678dd04cec6114e683caac5cf31b1063309 Reviewed-on: https://go-review.googlesource.com/14306 Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Shenghou Ma authored
Just a mechanical copy, no code changes. This is to reduce code difference when adding the mips64 port. Change-Id: Id06e975f414a7b09f4827167b30813b228a3bfaf Reviewed-on: https://go-review.googlesource.com/14324Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Shenghou Ma authored
Just a mechanical copy with filename renames, no code changes. This is to reduce code difference when adding the mips64 port. Change-Id: Id06e975f414a7b09f4827167b30813b228a3bfae Reviewed-on: https://go-review.googlesource.com/14323Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Michael Hudson-Doyle authored
Change-Id: I88fa0cc245a2141af04acced8716e08b1133abd1 Reviewed-on: https://go-review.googlesource.com/14350Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Brad Fitzpatrick authored
Some commits made by Aram from his personal email address are actually copyright Oracle: a77fcb3f net: fix comment in sendFile b0e71f46 net: link with networking libraries when net package is in use 92e959a4 syscall, net: use sendfile on Solaris db8d5b76 net: try to fix setKeepAlivePeriod on Solaris fe5ef5c9 runtime, syscall: link Solaris binaries directly instead of using dlopen/dlsym 2b90c3e8 go/build: enable cgo by default on solaris/amd64 2d18ab75 doc/progs: disable cgo tests that use C.Stdout on Solaris 2230e9d2 misc/cgo: add various solaris build lines 649c7b6d net: add cgo support for Solaris 24396dae os/user: small fixes for Solaris 121489cb runtime/cgo: add cgo support for solaris/amd64 83b25d93 cmd/ld: make .rela and .rela.plt sections contiguous c94f1f79 runtime: always load address of libcFunc on Solaris e481aac0 cmd/6l: use .plt instead of .got on Solaris See bug for clarification. Fixes #12452 Change-Id: I0aeb1b46c0c7d09c5c736e383ecf40240d2cf85f Reviewed-on: https://go-review.googlesource.com/14380Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Rob Pike authored
Fixes #12288. For inclusion in the 1.5.1 release. Change-Id: I9354b7eaa76000498465c4a5cbab7246de9ecb7c Reviewed-on: https://go-review.googlesource.com/14382Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Rob Pike authored
Change-Id: I2f05d0b62deb5d7d0886f6fc5af5e7b79792efba Reviewed-on: https://go-review.googlesource.com/14381Reviewed-by: Rob Pike <r@golang.org>
-
Rob Pike authored
This version of quoting allows runes in category Zs, such as the ideographic space characters, to be passed through unquoted. Still to do (maybe): A way to access this from Printf. Updates #11511. Change-Id: I3bae84b1aa0bc1b885318d3f67c5f451099a2a5a Reviewed-on: https://go-review.googlesource.com/14184Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
-
Marvin Stenger authored
Convert some fields of struct Type in go.go from uint8 to bool. This change passes go build -toolexec 'toolstash -cmp' -a std. Change-Id: I0a6c53f8ee686839b5234010ee2de7ae3940d499 Reviewed-on: https://go-review.googlesource.com/14370 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Marvin Stenger authored
Convert Pkg.Imported, Pkg.Exported, Pkg.Direct from uint8/int8/int8 to bool. This change passes go build -toolexec 'toolstash -cmp' -a std. Change-Id: I67a71f1186ff9737c03eca413f7d35d8a79ebc9b Reviewed-on: https://go-review.googlesource.com/14371 Run-TryBot: Dave Cheney <dave@cheney.net> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Håvard Haugen authored
Passes go build -a -toolexec 'toolstash -cmp' std cmd. Change-Id: I804ee4252fa9be78cb277faf7f467e6c9cfdd4a6 Reviewed-on: https://go-review.googlesource.com/14319 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Marvin Stenger authored
Remove unused field Type.Siggen in go.go. This change passes go build -toolexec 'toolstash -cmp' -a std. Change-Id: Ia61fe65a226c913fbf4a11a71d7453c56aa46c0e Reviewed-on: https://go-review.googlesource.com/14372 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Dave Cheney <dave@cheney.net>
-
Håvard Haugen authored
Passes go build -a -toolexec 'toolstash -cmp' std. Change-Id: Ica62765d3c1ef052afed34da1b3ac3f80646cc55 Reviewed-on: https://go-review.googlesource.com/14318Reviewed-by: Dave Cheney <dave@cheney.net> Run-TryBot: Dave Cheney <dave@cheney.net> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Dave Cheney authored
Convert Type.Broke from a uint8 to a boolean This change passes go build -toolexec 'toolstash -cmp' -a std. Change-Id: I44e7548c71b00467e36576bdf62933c42555a21a Reviewed-on: https://go-review.googlesource.com/14307 Run-TryBot: Dave Cheney <dave@cheney.net> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Håvard Haugen <havard.haugen@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 07 Sep, 2015 5 commits
-
-
Dave Cheney authored
Convert Label.Used to a boolean. Also move the field to the bottom of the struct to avoid padding. This change passes go build -toolexec 'toolstash -cmp' -a std. Change-Id: If09ee92f9d54dce807e7b862cf771005daed810d Reviewed-on: https://go-review.googlesource.com/14308 Run-TryBot: Dave Cheney <dave@cheney.net> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Michael Hudson-Doyle authored
Change-Id: Iccb0221bd9aef062d20798b952eaa09d9e60b902 Reviewed-on: https://go-review.googlesource.com/14345Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Marvin Stenger authored
Nicer swaps, loops (removed tmp variables). Use of bool instead of int. This change passes go build -toolexec 'toolstash -cmp' -a std. Change-Id: I541904c74b57297848decc51a8a4913a8eca4af3 Reviewed-on: https://go-review.googlesource.com/14316 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
Michael Hudson-Doyle authored
When building a shared library, all functions that are declared must actually be defined. Change-Id: I1488690cecfb66e62d9fdb3b8d257a4dc31d202a Reviewed-on: https://go-review.googlesource.com/14187Reviewed-by: Dave Cheney <dave@cheney.net>
-
Dave Cheney authored
Fix mkzversion to produce correctly formatted runtime/zversion.go. Change-Id: Ie6bcd361a2f2e390b7f6c4980fcae2c41bb7e52f Reviewed-on: https://go-review.googlesource.com/14355Reviewed-by: Andrew Gerrand <adg@golang.org>
-
- 06 Sep, 2015 1 commit
-
-
Dave Cheney authored
This one of a set of changes to make the transition away from NodeList easier by removing cases in which NodeList doesn't act semi-trivially like a []*Node. This CL was originally prepared by Josh Bleecher Snyder <josharian@gmail.com>. This change passes go build -toolexec 'toolstash -cmp' -a std. Change-Id: I4d041b343952f4a31f3150fd70669e08fcaa74f8 Reviewed-on: https://go-review.googlesource.com/14305 Run-TryBot: Dave Cheney <dave@cheney.net> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-
- 05 Sep, 2015 3 commits
-
-
Didier Spezia authored
The code parsing register lists involves an inner loop on each range defined by the lo,hi bounds. The condition on this loop (for lo<=hi) is fragile, because the bounds are unsigned 16 bits numbers. In some corner cases, the calculated upper bound is 2^16-1 leading to an infinite loop. Parsing operand `[):[o-FP` results in: - an infinite loop for non ARM architectures - the generation of almost 2^16 errors for the ARM architecture (which are then ignored) This CL improves the code in 3 ways: - bail out early when parsing non R prefixed registers - make sure the register index is never negative - make sure the number of iterations is limited by the maximum size of the range (as a defensive measure). Fixes #12469 Change-Id: Ib1e7e36fb8ad5a3a52c50fc6219d3cfe2b39cc34 Reviewed-on: https://go-review.googlesource.com/14314Reviewed-by: Rob Pike <r@golang.org>
-
Dave Cheney authored
This one of a set of changes to make the transition away from NodeList easier by removing cases in which NodeList doesn't act semi-trivially like a []*Node. This CL was originally prepared by Josh Bleecher Snyder <josharian@gmail.com>. This change passes go build -toolexec 'toolstash -cmp' -a std. Change-Id: I582ff8b077eb384b84721a1edb0c1efbc0c40059 Reviewed-on: https://go-review.googlesource.com/14304Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Dave Cheney <dave@cheney.net> Run-TryBot: Dave Cheney <dave@cheney.net> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Paul Marks authored
When running an experimental kernel with IPv4 disabled, Listen(":port") currently tries to create an AF_INET socket, and fails. Instead, it should see !supportsIPv4, and use an AF_INET6 socket. This sort of environment is quite esoteric at the moment, but I can force the tests to fail on regular Linux using the following tweaks: - net/net.go: supportsIPv4, supportsIPv6, supportsIPv4map = false, true, false - net/sockopt_linux.go: ipv6only=true - net/ipsock_posix.go: Revert this fix - ./make.bash && ../bin/go test net Also, make the arrows in server_test.go point to the left, because server<-client is easier to read. Fixes #12510 Change-Id: I0cc3b6b08d5e6908d2fbf8594f652ba19815aa4b Reviewed-on: https://go-review.googlesource.com/14334 Run-TryBot: Paul Marks <pmarks@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-