Jim McGrath
3d0726b04d
6l: correct offset for __nl_symbol_ptr in Mach-O.
...
Fixes malformed object message from nm etc.
Fixes #1180 .
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/2390042
2010-10-11 14:45:01 -04:00
Jim McGrath
0f6926474f
6l: fix Mach-O LC_RPATH
...
Fixes #1177 .
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/2387042
2010-10-11 14:39:41 -04:00
Russ Cox
e35aff7205
A+C: Jim McGrath (individual CLA)
...
R=r, r2
CC=golang-dev
https://golang.org/cl/2438041
2010-10-11 14:32:25 -04:00
Sam Thorogood
3b9c9d2125
expvar: add (*Int).Set
...
R=golang-dev, adg, rsc
CC=golang-dev
https://golang.org/cl/2336044
2010-10-11 13:14:07 -04:00
Russ Cox
1abd293d01
CONTRIBUTORS: link sam.thorogood@gmail.com for code review
...
R=Sam
CC=golang-dev
https://golang.org/cl/2437041
2010-10-11 13:13:57 -04:00
Adam Langley
2d8e2482cc
crypto/tls: make SetReadTimeout work.
...
Fixes #1181 .
R=rsc, agl1, cw, r2
CC=golang-dev
https://golang.org/cl/2414041
2010-10-11 10:41:01 -04:00
Adam Langley
f6e2eab8e0
crypto/tls: better error messages for certificate issues.
...
Fixes #1146 .
R=rsc, agl1
CC=golang-dev
https://golang.org/cl/2380042
2010-10-11 10:39:56 -04:00
Andrew Gerrand
1e66a21348
time: add After
...
Permits one to easily put a timeout in a select:
select {
case <-ch:
// foo
case <-time.After(1e6):
// bar
}
R=r, rog, rsc, sameer1, PeterGo, iant, nigeltao_gnome
CC=golang-dev
https://golang.org/cl/2321043
2010-10-11 13:45:26 +11:00
Nigel Tao
fd311cb144
exp/draw/x11: support X11 vendors other than "The X.Org Foundation".
...
R=adg, ehog.hedge
CC=golang-dev
https://golang.org/cl/2385041
2010-10-09 11:22:14 +11:00
Ken Thompson
ed575dc2b9
bug in stack size in arm.
...
stack is off by one if calling
through reflect.Call
R=rsc
CC=golang-dev
https://golang.org/cl/2400041
2010-10-08 16:46:05 -07:00
Andrew Gerrand
3f032d5670
build: add GOHOSTOS and GOHOSTARCH environment variables.
...
Auto-detect both if not set, and if GOARCH is not set use GOHOSTARCH.
GOHOSTARCH is used to set the -m32 or -m64 flags for gcc.
This is so that 64-bit can build binaries that run on 32-bit systems.
R=rsc, iant, brainman
CC=golang-dev
https://golang.org/cl/2342045
2010-10-08 18:52:28 +11:00
Anthony Martin
5781a00e00
big: fix panic and round correctly in Rat.FloatString
...
R=gri, rsc
CC=golang-dev
https://golang.org/cl/2212044
2010-10-07 16:10:48 +02:00
Russ Cox
1f6f563900
5l, 8l: dregs
...
R=ken2
CC=golang-dev
https://golang.org/cl/2390041
2010-10-07 07:51:37 -04:00
Russ Cox
1b6282a799
runtime: fix tiny build
...
Reported by Jeff Allen.
R=r, r2
CC=golang-dev
https://golang.org/cl/2385042
2010-10-07 06:46:01 -04:00
Russ Cox
2408a4bbbd
net: allow _ in names
...
Enables lookup of _jabber._tcp.gmail.com's SRV record.
Fixes #1167 .
R=r, r2
CC=golang-dev
https://golang.org/cl/2353043
2010-10-07 06:45:50 -04:00
Russ Cox
7eb13b95a3
runtime: fix argument dump in traceback
...
Was printing words at SP instead of at FP
after shuffle due to nascent flag.
R=r, r2
CC=golang-dev
https://golang.org/cl/2316044
2010-10-07 06:45:40 -04:00
Russ Cox
53fff1e74d
gc: maybe the code is only mostly dead
...
R=ken2
CC=golang-dev
https://golang.org/cl/2346044
2010-10-07 06:36:39 -04:00
Luuk van Dijk
2ad521c19a
[568]a: precise linenumbers for statements.
...
R=rsc, ken2, r, rsc1
CC=golang-dev
https://golang.org/cl/2297042
2010-10-07 11:13:06 +02:00
Graham Miller
cc5c2ee0ec
life: fix for new slice rules
...
R=golang-dev, adg, rsc
CC=golang-dev
https://golang.org/cl/2341049
2010-10-07 04:52:13 -04:00
Russ Cox
2a7019894a
gc: better error for method non-call
...
was
x.go:7: must call (&b).*Buffer·Write
now
x.go:7: method b.Write is not an expression, must be called
Fixes #1171 .
R=ken2
CC=golang-dev
https://golang.org/cl/2384042
2010-10-07 04:42:44 -04:00
Russ Cox
410927d1ad
gc: elide dead code
...
R=ken2
CC=golang-dev
https://golang.org/cl/2365044
2010-10-07 04:42:26 -04:00
Russ Cox
42c26b734c
gc: fix error for 1 <- "foo"
...
was
x.go:4: invalid operation: 1 <- "foo" (send to receive-only type int)
now
x.go:4: invalid operation: 1 <- "foo" (send to non-chan type int)
R=ken2
CC=golang-dev
https://golang.org/cl/2330042
2010-10-07 03:33:42 -04:00
Graham Miller
62355959c6
runtime: faster strequal, memequal
...
Fixes #1161 .
R=rsc, cwvh
CC=golang-dev
https://golang.org/cl/2317044
2010-10-07 03:13:24 -04:00
Russ Cox
4ed132826f
A+C: Graham Miller (individual CLA)
...
R=gmiller, adg
CC=golang-dev
https://golang.org/cl/2362043
2010-10-07 03:07:35 -04:00
Russ Cox
49bff2da22
codereview: disallow submit of *.[chys] files indented with spaces
...
R=r
CC=golang-dev
https://golang.org/cl/2383041
2010-10-06 18:10:23 -04:00
Rob Pike
4138fdd850
playground.html: filesystem is not a word.
...
R=adg, rsc
CC=golang-dev
https://golang.org/cl/2370043
2010-10-06 23:56:13 +02:00
Russ Cox
a0a7768b21
net: comment pedantry
...
Fixes #1167 .
R=r, r2
CC=golang-dev
https://golang.org/cl/2290044
2010-10-06 11:54:53 -04:00
Russ Cox
8599a83727
runtime: correct iteration of large map values
...
The hash_next_and_deref was a dreg from a
previous large value scheme.
Fixes #1163 .
R=r, r2
CC=golang-dev
https://golang.org/cl/2369043
2010-10-06 11:54:41 -04:00
Russ Cox
335a318c27
build: disable archive/zip for nacl (fix build)
...
TBR=adg
CC=golang-dev
https://golang.org/cl/2290045
2010-10-06 11:25:40 -04:00
Russ Cox
01385b400d
gc: ... bug
...
Fixes #1165 .
R=ken2
CC=golang-dev
https://golang.org/cl/2339042
2010-10-06 11:12:30 -04:00
Russ Cox
30dd191171
gc: O(1) string comparison when lengths differ
...
R=ken2
CC=golang-dev
https://golang.org/cl/2331045
2010-10-06 09:53:12 -04:00
Russ Cox
30edda690f
ld: share asmlc
...
R=ken2
CC=golang-dev
https://golang.org/cl/2373043
2010-10-06 09:52:54 -04:00
Stephen Ma
8d130f5d2d
http: return the correct error if a header line is too long.
...
R=golang-dev, r2
CC=golang-dev
https://golang.org/cl/2372042
2010-10-06 22:04:18 +11:00
Mikio Hara
4e3c58cd62
net: fix comment
...
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/2358041
2010-10-06 21:47:25 +11:00
Albert Strasheim
8b905489ab
syscall: add ucred structure for SCM_CREDENTIALS over UNIX sockets.
...
Working on issue 1101.
R=golang-dev, rsc, adg
CC=golang-dev
https://golang.org/cl/2338042
2010-10-06 21:32:31 +11:00
Andrew Gerrand
c276ce98c2
A+C: Albert Strasheim
...
R=golang-dev, r2
CC=golang-dev
https://golang.org/cl/2336042
2010-10-06 21:30:34 +11:00
Stephen Ma
5043f0a1ad
bufio: minor documentation fix.
...
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/2301045
2010-10-06 19:39:30 +11:00
Luuk van Dijk
454f03ff0b
6g: set kind to KindUnsafePointer where appropriate in reflect structures.
...
R=rsc, ken2, r
CC=golang-dev
https://golang.org/cl/2355043
2010-10-05 21:17:16 +02:00
Alex Brainman
4d4b74c7b3
websocket: enable tests on windows
...
Fixes #1110 .
R=golang-dev, adg
CC=Joe Poirier, golang-dev
https://golang.org/cl/2367041
2010-10-05 11:02:15 +11:00
Rob Pike
f73f9ad4ad
fmt: allow %d on []byte
...
Fixes #1159 .
R=rsc, adg
CC=golang-dev
https://golang.org/cl/2305043
2010-10-04 11:57:48 +02:00
Alex Brainman
17fe2479bf
os: make tests work on windows
...
Fixes #1105 .
R=golang-dev, r
CC=Joe Poirier, golang-dev
https://golang.org/cl/2343043
2010-10-04 17:31:49 +11:00
Alex Brainman
1756b31bb9
add _testmain.go to .hgignore
...
R=rsc, r2
CC=golang-dev
https://golang.org/cl/2332042
2010-10-04 14:56:44 +11:00
Russ Cox
a3c682267f
gc: various bugs
...
Fixes #1016 .
Fixes #1152 .
Fixes #1153 .
R=ken2
CC=golang-dev
https://golang.org/cl/2344042
2010-10-03 11:50:44 -04:00
Russ Cox
f481afae53
Make.pkg: remove .so before installing new one
...
On Linux, overwriting an mmap'ed file causes
all the MAP_PRIVATE pages to get refreshed
with the new content, even ones that have been
modified by the process that did the mmap.
One specific instance of this is that after the
dynamic linker has relocated a page from a .so,
overwriting the .so will un-relocate it, making
the next use of one of the no-longer-relocated
addresses incorrect and probably crash the
program.
Linux must go out of its way to break programs
in this way: the pages have already been copied
on write, so they're not shared with the file system
cache, and it trashes them anyway. The manual
says the behavior when the file gets overwritten
is "undefined". Removing before copy avoids the
undefined behavior.
R=iant
CC=golang-dev, msolo
https://golang.org/cl/2333045
2010-10-01 16:02:18 -04:00
Russ Cox
d4e6df98f4
arm: enable 9 more package tests
...
R=ken2
CC=golang-dev
https://golang.org/cl/2345041
2010-10-01 00:18:07 -04:00
Andrew Gerrand
03babfc626
Use Errorf where appropriate.
...
R=r, r2
CC=golang-dev
https://golang.org/cl/2308043
2010-10-01 14:14:18 +10:00
Andrew Gerrand
558477eeb1
fmt: add Errorf helper function
...
This crops up in a lot of places.
It's just a one-liner, but doesn't add any dependancies.
Seems worth it.
R=r, r2
CC=golang-dev
https://golang.org/cl/2344041
2010-10-01 14:04:55 +10:00
Ken Thompson
57858b70fb
code gen error for
...
lv += f()
fixes asn1 and maybe more
R=rsc
CC=golang-dev
https://golang.org/cl/2341042
2010-09-30 18:02:38 -07:00
Russ Cox
52d619cfdf
gc: bug308
...
confused by using isddd for both ONAME and OCALL
Fixes #1136 .
R=ken2
CC=golang-dev
https://golang.org/cl/2314043
2010-09-30 15:05:01 -04:00
Russ Cox
779dfea487
gc: correct buffer size in sprint, add -L to show full paths
...
R=ken2
CC=golang-dev
https://golang.org/cl/2338041
2010-09-30 15:02:43 -04:00