Dan Sinclair
122f3980c7
ld: handle quoted spaces in package path
...
Fixes #1087 .
R=rsc
CC=golang-dev
https://golang.org/cl/2172041
2010-09-10 13:59:20 -04:00
Russ Cox
2cda191aef
6c, 8c: show line numbers in -S output
...
R=ken2
CC=golang-dev
https://golang.org/cl/2107047
2010-09-10 11:53:51 -04:00
Russ Cox
82ee481dfc
gc: remove &[10]int -> []int conversion
...
Fixes #829 .
R=ken2
CC=golang-dev
https://golang.org/cl/2124044
2010-09-10 11:53:27 -04:00
Nigel Tao
5801928817
exp/draw: fast path for drawing overlapping image.RGBAs.
...
R=r, nigeltao
CC=golang-dev
https://golang.org/cl/2145045
2010-09-10 20:09:56 +10:00
Nigel Tao
d660d4a6d0
exp/draw: fix double-counting of pt.Min for the src and mask points.
...
The min is typically zero, which is why this hasn't bitten us yet.
R=r
CC=golang-dev
https://golang.org/cl/2119048
2010-09-10 19:48:27 +10:00
Rob Pike
66f676b8ef
arm: fix a couple of build bugs.
...
tests have not been run yet
R=stephenm
CC=golang-dev
https://golang.org/cl/2165046
2010-09-09 23:31:33 -07:00
Alex Brainman
f5089ffff4
syscall: fix windows Gettimeofday
...
Fixes #1092 .
R=golang-dev, r2
CC=golang-dev
https://golang.org/cl/2121048
2010-09-10 15:39:45 +10:00
Robert Griesemer
0eb0afde9a
fix build
...
R=rsc, ken2
CC=golang-dev
https://golang.org/cl/2118050
2010-09-09 14:42:49 -07:00
Russ Cox
1678dcc378
gc: more accurate line numbers for ATEXT
...
and other begin and end of function code
R=ken2
CC=golang-dev
https://golang.org/cl/2158044
2010-09-09 17:11:51 -04:00
Nigel Tao
2deee2936c
exp/draw: clip destination rectangle to the image bounds.
...
image: introduce Intersect and Union rectangle methods.
R=r, rog, nigeltao
CC=golang-dev
https://golang.org/cl/2115043
2010-09-09 19:12:54 +10:00
Nigel Tao
6c8b85273c
exp/draw: rename Context to Window, and add a Close method.
...
exp/draw/x11: allow clean shutdown when the user closes the window.
R=r
CC=golang-dev
https://golang.org/cl/2134045
2010-09-09 18:06:59 +10:00
Joe Poirier
1d62becbd8
build: generate, clean .exe files on Windows
...
R=rsc, brainman, vcc
CC=golang-dev
https://golang.org/cl/2165044
2010-09-09 01:42:55 -04:00
Ivan Krasin
dfb2af6099
path: add IsAbs
...
R=rsc, imkrasin, r
CC=golang-dev
https://golang.org/cl/1969042
2010-09-09 01:42:43 -04:00
Rob Pike
e56c0555da
Make.inc: fix build for tiny.
...
Suggested by paulzhol@gmail.com
R=rsc
CC=golang-dev
https://golang.org/cl/2122049
2010-09-09 15:14:38 +10:00
Robert Griesemer
c4e27b7cfb
gofmt, go/printer: update internal estimated position correctly
...
Fixes #1089 .
R=rsc
CC=golang-dev
https://golang.org/cl/2172043
2010-09-08 22:01:48 -07:00
Rob Pike
ba5175401e
runtime: fix bug in tracebacks
...
Need to correct for deferproc's extra 2 words of stack or in some
cases (such as memory profiling) traceback can cause a crash.
Also bulletproof the closure test.
R=rsc
CC=golang-dev
https://golang.org/cl/2138047
2010-09-09 14:28:56 +10:00
Joe Poirier
e21b3a40ac
build: test for _WIN32, not _MINGW32
...
Use OS rather than compiler specific flag the same way that
__FreeBSD__, __APPLE__, __OpenBSD__, and __linux__ are used.
_WIN32 is defined by GCC (and others) on windows for Win32
and Win64 applications. _WIN32 is set by default for several
other windows based compilers: DMC, MSVC, Intel, Watcom, LCC.
Although the change is for consistency, it allows the Go tools
to be compiled with non-Mingw GCC distributions and non-GCC
compilers that support the GCC extensions.
R=rsc, brainman, vcc
CC=golang-dev
https://golang.org/cl/2168043
2010-09-08 22:20:35 -04:00
Scott Lawrence
fce222a95b
gc: implement new slice spec
...
Fixes #382 .
R=gri, cw, r, rsc
CC=golang-dev
https://golang.org/cl/1957045
2010-09-08 22:20:29 -04:00
Alex Brainman
89e9231865
runtime: fix windows build
...
R=rsc, r2
CC=golang-dev
https://golang.org/cl/2135045
2010-09-09 12:09:10 +10:00
Andrew Gerrand
e1b79b712c
cgo: add typedef for uintptr in generated headers
...
Fixes #1046 .
R=rsc, iant
CC=golang-dev
https://golang.org/cl/2102043
2010-09-09 09:24:53 +10:00
Andrew Gerrand
55986c1329
path: fix typo in path.Visitor
...
Fixes #1088 .
R=gri, iant
CC=golang-dev
https://golang.org/cl/2157043
2010-09-09 09:24:27 +10:00
Jukka-Pekka Kekkonen
f7a71c6505
http: do not cache CanonicalHeaderKey
...
Fixes #1080 .
R=rsc
CC=golang-dev
https://golang.org/cl/2158043
2010-09-08 10:20:21 -04:00
Russ Cox
5baaa490d6
gc: better printing of named constants, func literals
...
R=ken2
CC=golang-dev
https://golang.org/cl/2121045
2010-09-08 10:12:56 -04:00
Robert Griesemer
889377c572
godoc: moved package directory support code into separate file
...
- in prep. for some restructuring to be able to better deal
with very large file systems
- moved a utility function into index.go
- no functionality changes, only code reorg.
R=r, adg1
CC=golang-dev
https://golang.org/cl/2098044
2010-09-07 17:21:00 -07:00
Russ Cox
e50611d235
os, exec: rename argv0 to name
...
R=r, gri1
CC=golang-dev
https://golang.org/cl/2119044
2010-09-07 16:29:07 -04:00
Jukka-Pekka Kekkonen
1cec72cff1
build: work with GNU Make 3.82
...
Fix building on GNU Make 3.82 (caused by mixed implicit and normal
rules).
The issue was introduced in changeset 6110:ca0beac3b543.
R=rsc
CC=golang-dev
https://golang.org/cl/2100044
2010-09-07 15:14:14 -04:00
Russ Cox
636342292c
runtime: fix linux/amd64 build: wrong name for munmap
...
TBR=r
CC=golang-dev
https://golang.org/cl/2140043
2010-09-07 13:17:10 -04:00
Russ Cox
d4cc557b0d
runtime: use manual stack for garbage collection
...
Old code was using recursion to traverse object graph.
New code uses an explicit stack, cutting the per-pointer
footprint to two words during the recursion and avoiding
the standard allocator and stack splitting code.
in test/garbage:
Reduces parser runtime by 2-3%
Reduces Peano runtime by 40%
Increases tree runtime by 4-5%
R=r
CC=golang-dev
https://golang.org/cl/2150042
2010-09-07 09:57:22 -04:00
Russ Cox
2eb00d57b4
cgo: silence warning for C call returning const pointer
...
Fix suggested by Albert Strasheim.
R=adg
CC=golang-dev
https://golang.org/cl/2154041
2010-09-07 09:54:20 -04:00
Nigel Tao
fa92b113b1
exp/draw: reintroduce the MouseEvent.Nsec timestamp.
...
R=rsc
CC=golang-dev
https://golang.org/cl/2166042
2010-09-07 23:42:01 +10:00
Brad Fitzpatrick
34c312e11e
arm: use the correct stat syscalls
...
We were using the 64-bit struct with the old 32-bit
system calls.
http://code.google.com/p/go/issues/detail?id=1083
This also fixes up mksyscall.sh to generate
gofmt-compliant code.
R=rsc
CC=golang-dev, kaib
https://golang.org/cl/2148042
2010-09-07 09:23:49 -04:00
Nigel Tao
832ed355fe
image: change a ColorImage's minimum point from (0, 0) to (-1e9, -1e9).
...
R=r
CC=golang-dev
https://golang.org/cl/2138045
2010-09-07 19:16:59 +10:00
Nigel Tao
c849b23ce9
exp/draw: unify a draw.Context's keyboard, mouse, etc. channels into a
...
single event channel.
A quit event is now represented by closing that channel.
R=r, rsc, nigeltao
CC=golang-dev
https://golang.org/cl/2114042
2010-09-06 19:22:49 +10:00
Anthony Martin
68cce4ab20
fmt.Scan: fix integer overflow on 32-bit machines
...
R=r, rsc
CC=golang-dev
https://golang.org/cl/2144043
2010-09-06 08:04:53 +10:00
Rob Pike
d54b921c9b
netchan: use acknowledgements on export send.
...
Also add exporter.Drain() to wait for completion.
This makes it possible for an Exporter to fire off a message
and wait (by calling Drain) for the message to be received,
even if a client has yet to call to retrieve it.
Once this design is settled, I'll do the same for import send.
Testing strategies welcome. I have some working stand-alone
tests.
R=rsc
CC=golang-dev
https://golang.org/cl/2137041
2010-09-04 23:41:54 +10:00
Rob Pike
6405ab0fae
fmt: delete erroneous sentence about return value for Sprint*.
...
R=rsc
CC=golang-dev
https://golang.org/cl/2160041
2010-09-04 22:29:10 +10:00
Russ Cox
ef8af73ef5
build: implement NOINSTALL=1 for Make.ccmd
...
The makefiles for prof and cov use it already.
(It's also in Make.clib.)
R=adg
CC=golang-dev
https://golang.org/cl/2036045
2010-09-03 15:37:57 -04:00
Russ Cox
a41db4318d
goinstall: assume go binaries are in path
...
(Following new convention.)
Fixes #1063 .
R=adg
CC=golang-dev
https://golang.org/cl/2115042
2010-09-03 15:37:45 -04:00
Nigel Tao
2b4218f321
image: introduce Config type and DecodeConfig function, to decode an
...
image's color model and dimensions without allocating and decoding its
actual pixels.
Fixes #695 .
R=r
CC=golang-dev
https://golang.org/cl/2151042
2010-09-03 18:03:08 +10:00
Rob Pike
d94fedabb4
list: update comment to state that the zero value is ready to use.
...
R=gri
CC=golang-dev
https://golang.org/cl/2147042
2010-09-03 17:11:56 +10:00
Russ Cox
1cb951d994
gc: appease bison version running on FreeBSD builder
...
R=ken2
CC=golang-dev
https://golang.org/cl/2141042
2010-09-02 14:31:39 -04:00
Robert Griesemer
a37e3697da
exp/iterables: fix typo
...
Fixes #1069 .
R=rsc
CC=golang-dev
https://golang.org/cl/2143041
2010-09-02 11:31:00 -07:00
Russ Cox
f699811c14
time: do not crash in String on nil Time
...
R=r
CC=golang-dev
https://golang.org/cl/2052041
2010-09-02 14:21:40 -04:00
Russ Cox
8d7ae528bf
http: add Date to server, Last-Modified and If-Modified-Since to file server
...
R=r
CC=golang-dev
https://golang.org/cl/2051041
2010-09-02 14:21:11 -04:00
Russ Cox
5bf658cc8f
build: create bin and pkg directories as needed; drop from hg
...
R=dsymonds, r
CC=golang-dev
https://golang.org/cl/2050043
2010-09-02 14:20:02 -04:00
Russ Cox
4e64555894
runtime: add GOOS, GOARCH; fix FuncLine
...
Changes to FuncLine sync it with symtab.c's funcline.
R=r
CC=girard.m1, golang-dev
https://golang.org/cl/2083041
2010-09-02 14:19:12 -04:00
Russ Cox
dea283750b
gc: fix spurious syntax error
...
Fixes #1071 .
R=ken2
CC=golang-dev
https://golang.org/cl/2136043
2010-09-02 14:16:01 -04:00
Scott Lawrence
ebe837d6eb
goinstall: added -a flag to mean "all remote packages"
...
Fixes #897 .
goinstall -a can be used to reinstall all packages after an upgrade
goinstall -a -u can be used to update all package
A history of remote package installs is stored in $GOROOT/goinstall.log
R=rsc, adg
CC=golang-dev
https://golang.org/cl/1947041
2010-09-02 13:48:28 -04:00
Alex Brainman
b05679cdd6
8l: suppress emitting DWARF in Windows PE.
...
Fixes #1064 .
R=rsc, lvd, vcc
CC=golang-dev
https://golang.org/cl/2104042
2010-09-02 17:00:24 +10:00
Andrew Gerrand
2fe0f8da52
http: add PostForm function to post url-encoded key/value data.
...
This is a common task, so it makes sense to have a helper to do it.
(App Engine doesn't like "Transfer-Encoding: chunked" for POST
bodies, which is the default for regular Post.)
R=rsc
CC=golang-dev
https://golang.org/cl/2113041
2010-09-02 10:01:34 +10:00