- 08 Mar, 2012 13 commits
-
-
Robert Griesemer authored
Factored the error synchronization code into two functions syncStmt and syncDecl. Because they may return w/o advancing the scanner, there is potential for endless loops across multiple parse functions; typically caused by an incorrect token list in these functions (e.g., adding token.ELSE to syncStmt will cause the parser to go into an endless loop for test/syntax/semi7.go without this mechanism). This would indicate a compiler bug, exposed only in an error situation for very specific source files. Added a mechanism to force scanner advance if an endless loop is detected. As a result, error recovery will be less good in those cases, but the parser reported a source error already and at least doesn't get stuck. R=rsc, rsc CC=golang-dev https://golang.org/cl/5784046
-
Andrew Gerrand authored
Fixes #3239. R=golang-dev, r CC=golang-dev https://golang.org/cl/5782049
-
Andrew Gerrand authored
Fixes #2912. R=golang-dev, r CC=golang-dev https://golang.org/cl/5783048
-
Russ Cox authored
The spec is looser than the current implementation. The spec edit was made in CL 4444050 (May 2011) but I never implemented it. Fixes #3244. R=ken2 CC=golang-dev https://golang.org/cl/5785049
-
Russ Cox authored
Fixes #3152. R=golang-dev, dsymonds, r CC=golang-dev https://golang.org/cl/5786047
-
Andrew Gerrand authored
R=golang-dev, nigeltao CC=golang-dev https://golang.org/cl/5758047
-
Shenghou Ma authored
Also rename it to test.bash, for naming consistency. R=golang-dev, r CC=golang-dev https://golang.org/cl/5784045
-
Russ Cox authored
R=ken2 CC=golang-dev https://golang.org/cl/5783047
-
Russ Cox authored
.syso files are system objects copied directly into the package archive. Fixes #1552. R=alex.brainman, iant, r, minux.ma, remyoudompheng CC=golang-dev https://golang.org/cl/5778043
-
Andrew Gerrand authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/5752049
-
Francisco Souza authored
R=adg, bradfitz CC=golang-dev https://golang.org/cl/5787048
-
Robert Griesemer authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5787045
-
Volker Dobler authored
R=golang-dev, r, jdpoirier CC=golang-dev https://golang.org/cl/5762045
-
- 07 Mar, 2012 27 commits
-
-
Alex Brainman authored
R=r CC=golang-dev https://golang.org/cl/5752072
-
Alex Brainman authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5756049
-
Shenghou Ma authored
Updates #2982. R=rsc, rsc CC=golang-dev https://golang.org/cl/5759064
-
Rémy Oudompheng authored
Fixes #3228. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5784044
-
Dmitriy Vyukov authored
Fixes #3175. R=golang-dev, iant, rsc, r CC=golang-dev https://golang.org/cl/5758069
-
Russ Cox authored
FreeBSD, alone among our supported operating systems, required that usleep not be interrupted. Don't require that. Fixes #3217. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5781045
-
Robert Griesemer authored
gofmt reports now a single, accurate error for the test case of issue 3106. Also: Added test harness for general error checking and two test cases for now. Fixes #3106. R=rsc, bradfitz CC=golang-dev https://golang.org/cl/5755062
-
Shenghou Ma authored
They can start execution even before all init functions end. R=rsc, r, adg CC=golang-dev https://golang.org/cl/5732061
-
Russ Cox authored
Fixes #1599. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5777043
-
Russ Cox authored
I am not sure why RunTests and RunExamples are exported, but I assume that because they are we should not change the signature, so I added an unexported global shared by Main and RunTests. Fixes #3237. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5779043
-
Rémy Oudompheng authored
If it didn't reach the limit, we can try extending the arena before resorting to random memory mappings and praying for the kernel to be kind. Fixes #3173. R=rsc, rsc CC=golang-dev https://golang.org/cl/5725045
-
Ian Lance Taylor authored
R=golang-dev, gri, rsc CC=golang-dev https://golang.org/cl/5769044
-
Ian Lance Taylor authored
This change is necessary to make the run shell script work again, but it is not sufficient as bug424.go's execution line does not name the package that it imports. R=golang-dev, gri, rsc CC=golang-dev https://golang.org/cl/5771043
-
Russ Cox authored
Fixes #3206. R=golang-dev, gri, bradfitz CC=golang-dev https://golang.org/cl/5769046
-
Brad Fitzpatrick authored
Updates #1599 R=golang-dev, gri, rsc CC=golang-dev https://golang.org/cl/5774043
-
Mikkel Krautz authored
Allows the Windows part of CL 5700087 to land. I had build tested CL 5753060 (which allows crypto/x509 to use cgo and io/ioutil), and didn't spot any errors on Windows. Turns out I was wrong. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5753065
-
Robert Griesemer authored
This time for sure. Runs all tests. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5752060
-
Robert Griesemer authored
R=rsc CC=golang-dev https://golang.org/cl/5758057
-
Mikkel Krautz authored
This moves the various CA root fetchers from crypto/tls into crypto/x509. The move was brought about by issue 2997. Windows doesn't ship with all its root certificates, but will instead download them as-needed when using CryptoAPI for certificate verification. This CL changes crypto/x509 to verify a certificate using the system root CAs when VerifyOptions.RootCAs == nil. On Windows, this verification is now implemented using Windows's CryptoAPI. All other root fetchers are unchanged, and still use Go's own verification code. The CL also fixes the hostname matching logic in crypto/tls/tls.go, in order to be able to test whether hostname mismatches are honored by the Windows verification code. The move to crypto/x509 also allows other packages to use the OS-provided root certificates, instead of hiding them inside the crypto/tls package. Fixes #2997. R=agl, golang-dev, alex.brainman, rsc, mikkel CC=golang-dev https://golang.org/cl/5700087
-
Russ Cox authored
The compiler must be changed with the Set method so that the buildToolchain gets updated too. Fixes #3231. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5768044
-
Russ Cox authored
The old way to find a port was to listen :0 and then look at what port it picked, close the listener, and then immediately try to listen on that port. On some Windows 7 machines that sequence fails at the second listen, because the first one is still lingering in the TCP/IP stack somewhere. (Ironically, most of these are used in tests of a "second listen", which in this case ends up being the third listen.) Instead of this race, just return the listener from the function, replacing usableLocalPort+Listen with usableListenPort. Fixes #3219. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5769045
-
Russ Cox authored
Forgot this half in https://golang.org/cl/5764044 R=gri CC=golang-dev https://golang.org/cl/5770044
-
Russ Cox authored
Fixes #3234. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5756078
-
Russ Cox authored
Fixes #3203. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5769043
-
Russ Cox authored
Goroutines are no longer excluded from init. Fixes #3232. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5764044
-
Russ Cox authored
Fixes #3222. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5761044
-
Russ Cox authored
Fixes #3230. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5753071
-