]> Cypherpunks repositories - gostls13.git/log
gostls13.git
15 years agoupdate gofmt test script
Robert Griesemer [Fri, 12 Feb 2010 23:28:11 +0000 (15:28 -0800)]
update gofmt test script

R=adg
CC=golang-dev
https://golang.org/cl/207088

15 years agohttp: clarify ServeHTTP return
Russ Cox [Fri, 12 Feb 2010 22:27:44 +0000 (14:27 -0800)]
http: clarify ServeHTTP return

Fixes #580.

R=adg
CC=golang-dev
https://golang.org/cl/207086

15 years agogc: diagnose invalid array bounds
Russ Cox [Fri, 12 Feb 2010 21:59:02 +0000 (13:59 -0800)]
gc: diagnose invalid array bounds

Fixes #587.

R=ken2
CC=golang-dev
https://golang.org/cl/207085

15 years agoruntime: dummy gettime for mingw/386.
Russ Cox [Fri, 12 Feb 2010 20:49:16 +0000 (12:49 -0800)]
runtime: dummy gettime for mingw/386.

Fixes #598.

R=adg
CC=golang-dev
https://golang.org/cl/206089

15 years agocorrect meaning of "absolute" and "relative"
Robert Griesemer [Thu, 11 Feb 2010 21:59:10 +0000 (13:59 -0800)]
correct meaning of "absolute" and "relative"
(implementation was swapped)

R=adg
CC=golang-dev, rsc
https://golang.org/cl/207069

15 years agoSteps towards more flexible godoc:
Robert Griesemer [Thu, 11 Feb 2010 18:01:03 +0000 (10:01 -0800)]
Steps towards more flexible godoc:
The Mapping object implements a flexible
mapping of relative to absolute paths and
vice versa.

R=rsc
CC=golang-dev
https://golang.org/cl/206067

15 years agostop the 5c optimizer from clobbering extern static registers.
Kai Backman [Thu, 11 Feb 2010 06:42:05 +0000 (22:42 -0800)]
stop the 5c optimizer from clobbering extern static registers.

R=rsc, ken2
CC=golang-dev
https://golang.org/cl/204064

15 years agoruntime: delete MHeapMapCache, which is useless
Russ Cox [Thu, 11 Feb 2010 05:23:08 +0000 (21:23 -0800)]
runtime: delete MHeapMapCache, which is useless
because free needs to mark the block as freed to
coordinate with the garbage collector.

(in C++ free can blindly put the block on the free list,
no questions asked, so the cache saves some work.)

R=iant
CC=golang-dev
https://golang.org/cl/206069

15 years agoexp/draw test.
Nigel Tao [Thu, 11 Feb 2010 02:38:16 +0000 (13:38 +1100)]
exp/draw test.

R=rsc
CC=golang-dev
https://golang.org/cl/203062

15 years agoAdded tests for http.Request/Response.Write()
Petar Maymounkov [Thu, 11 Feb 2010 01:29:03 +0000 (17:29 -0800)]
Added tests for http.Request/Response.Write()

R=rsc
CC=golang-dev
https://golang.org/cl/199070

15 years agoarm: take out fixedbugs/bug120 - gives inconsistent errors
Russ Cox [Thu, 11 Feb 2010 01:21:34 +0000 (17:21 -0800)]
arm: take out fixedbugs/bug120 - gives inconsistent errors

R=kaib
CC=golang-dev
https://golang.org/cl/207062

15 years agonet: use slightly less predictable dns request id
Russ Cox [Thu, 11 Feb 2010 00:35:35 +0000 (16:35 -0800)]
net: use slightly less predictable dns request id

not trying to be secure, just not repetitive
(sending with the same id repeatedly makes
some resolvers stop replying.)

eventually we'll replace this with linking against
the system's native resolver.

R=p
CC=golang-dev
https://golang.org/cl/207051

15 years agoarm: fix build on android
Russ Cox [Wed, 10 Feb 2010 23:01:02 +0000 (15:01 -0800)]
arm: fix build on android

R=kaib
CC=golang-dev
https://golang.org/cl/206059

15 years agoruntime: tighten garbage collector
Russ Cox [Wed, 10 Feb 2010 22:59:39 +0000 (14:59 -0800)]
runtime: tighten garbage collector
 * specialize sweepspan as sweepspan0 and sweepspan1.
 * in sweepspan1, inline "free" to avoid expensive mlookup.

R=iant
CC=golang-dev
https://golang.org/cl/206060

15 years agoruntime: do not zero blocks on free (this time for sure!)
Russ Cox [Wed, 10 Feb 2010 19:31:00 +0000 (11:31 -0800)]
runtime: do not zero blocks on free (this time for sure!)

R=iant
CC=golang-dev
https://golang.org/cl/207054

15 years ago8l: pe executable building code changed to include import table for kernel32.dll...
Alex Brainman [Wed, 10 Feb 2010 08:47:52 +0000 (00:47 -0800)]
8l: pe executable building code changed to include import table for kernel32.dll functions

Fixes #586.

R=rsc
CC=golang-dev
https://golang.org/cl/203060

15 years agogc: fix mkopnames and color grep interaction
Russ Cox [Wed, 10 Feb 2010 08:44:43 +0000 (00:44 -0800)]
gc: fix mkopnames and color grep interaction

Fixes #406.

R=adg
CC=golang-dev
https://golang.org/cl/207053

15 years agold: unused variable
Russ Cox [Wed, 10 Feb 2010 08:44:22 +0000 (00:44 -0800)]
ld: unused variable

R=adg
CC=golang-dev
https://golang.org/cl/207050

15 years agoA+C: add Alex Brainman (individual CLA)
Russ Cox [Wed, 10 Feb 2010 08:44:07 +0000 (00:44 -0800)]
A+C: add Alex Brainman (individual CLA)

R=adg
CC=golang-dev
https://golang.org/cl/207052

15 years agoclean new garbage collector benchmark binaries
Russ Cox [Wed, 10 Feb 2010 08:43:31 +0000 (00:43 -0800)]
clean new garbage collector benchmark binaries

TBR=agl1
CC=golang-dev
https://golang.org/cl/207055

15 years agomath: add Exp2; 386 FPU versions of Exp2 and Log1p
Charles L. Dorian [Wed, 10 Feb 2010 08:06:41 +0000 (00:06 -0800)]
math: add Exp2; 386 FPU versions of Exp2 and Log1p

Added tests and benchmarks for Exp2 (special cases same
as Exp). Log1p also enhances speed of inverse hyperbolics.

R=rsc
CC=golang-dev
https://golang.org/cl/206058

15 years agoruntime: garbage collection + malloc performance
Russ Cox [Wed, 10 Feb 2010 08:00:12 +0000 (00:00 -0800)]
runtime: garbage collection + malloc performance
  * add bit tracking finalizer status, avoiding getfinalizer lookup
  * add ability to allocate uncleared memory

R=iant
CC=golang-dev
https://golang.org/cl/207044

15 years agomime: new package, use in http
Michael Hoisie [Wed, 10 Feb 2010 04:47:45 +0000 (20:47 -0800)]
mime: new package, use in http

R=rsc
CC=golang-dev
https://golang.org/cl/186160

15 years agofix garbage benchmark Makefile.
Russ Cox [Wed, 10 Feb 2010 04:29:08 +0000 (20:29 -0800)]
fix garbage benchmark Makefile.

apparently some versions of GNU make cannot
handle the %: %.$O rule.  i don't understand why
and don't care enough to find out.

R=agl1
CC=golang-dev
https://golang.org/cl/206055

15 years agohttp: protect io.WriteString in Request/Response.Write with error checking,
Petar Maymounkov [Wed, 10 Feb 2010 01:42:51 +0000 (17:42 -0800)]
http: protect io.WriteString in Request/Response.Write with error checking,
since they were causing a silent program exit (too many EPIPE's).

R=rsc
CC=golang-dev
https://golang.org/cl/204062

15 years agobug fix in 6c/8c/5c mis-aligned
Ken Thompson [Wed, 10 Feb 2010 01:26:04 +0000 (17:26 -0800)]
bug fix in 6c/8c/5c mis-aligned
function arguments.

R=rsc
CC=golang-dev
https://golang.org/cl/206054

15 years agofix NaCl build for latest runtime changes
Russ Cox [Wed, 10 Feb 2010 00:56:22 +0000 (16:56 -0800)]
fix NaCl build for latest runtime changes

R=iant
CC=golang-dev
https://golang.org/cl/206052

15 years agoruntime: fix FreeBSD build
Russ Cox [Wed, 10 Feb 2010 00:54:51 +0000 (16:54 -0800)]
runtime: fix FreeBSD build

stab in the dark but plausible: the kernel does try to
return time zone information.
http://fxr.watson.org/fxr/source/kern/kern_time.c?v=FREEBSD8#L421

R=iant
CC=golang-dev
https://golang.org/cl/206053

15 years agodashboard: auto-update builder.sh.
Russ Cox [Tue, 9 Feb 2010 21:45:38 +0000 (13:45 -0800)]
dashboard: auto-update builder.sh.
avoid possibility of busy loop pounding on dashboard.

R=agl1
CC=golang-dev
https://golang.org/cl/206051

15 years agomath: add functions Log2, Nextafter, Fdim, Fmax, Fmin
Charles L. Dorian [Tue, 9 Feb 2010 21:33:12 +0000 (13:33 -0800)]
math: add functions Log2, Nextafter, Fdim, Fmax, Fmin

Add functions, tests and benchmarks. Fix typos in comments
in expm1 and hypot_386.  Fix Acosh domain error in benchmark
test.

R=rsc
CC=golang-dev
https://golang.org/cl/204069

15 years ago8a/8l: Added CMOVcc instructions
Evan Shaw [Tue, 9 Feb 2010 21:33:07 +0000 (13:33 -0800)]
8a/8l: Added CMOVcc instructions

R=rsc
CC=golang-dev
https://golang.org/cl/204067

15 years agoadd simple garbage collector benchmarks to dashboard
Russ Cox [Tue, 9 Feb 2010 21:33:00 +0000 (13:33 -0800)]
add simple garbage collector benchmarks to dashboard

R=agl1
CC=golang-dev
https://golang.org/cl/207043

15 years agomake units compile
Fazlul Shahriar [Tue, 9 Feb 2010 21:20:22 +0000 (13:20 -0800)]
make units compile

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/206044

15 years ago.hgignore: ignore .gitignore (already ignoring .git)
Russ Cox [Tue, 9 Feb 2010 21:18:51 +0000 (13:18 -0800)]
.hgignore: ignore .gitignore (already ignoring .git)

R=agl1
CC=golang-dev
https://golang.org/cl/206047

15 years agoruntime: allow arbitrary return type in SetFinalizer.
Russ Cox [Tue, 9 Feb 2010 05:41:54 +0000 (21:41 -0800)]
runtime: allow arbitrary return type in SetFinalizer.
finalize chan, to free OS X semaphore inside Lock.
os: finalize File, to close fd.

Fixes #503.

R=ken2
CC=golang-dev
https://golang.org/cl/204065

15 years agogc: fix method expression bug
Russ Cox [Tue, 9 Feb 2010 05:40:35 +0000 (21:40 -0800)]
gc: fix method expression bug

R=ken2
CC=golang-dev
https://golang.org/cl/206043

15 years agoStruct field ambiguity test.
Ian Lance Taylor [Mon, 8 Feb 2010 23:40:09 +0000 (15:40 -0800)]
Struct field ambiguity test.

gccgo gets this wrong at the moment.

R=rsc
CC=golang-dev
https://golang.org/cl/205044

15 years agoruntime: instrument malloc + garbage collector.
Russ Cox [Mon, 8 Feb 2010 22:32:22 +0000 (14:32 -0800)]
runtime: instrument malloc + garbage collector.
add simple garbage collection benchmark.

R=iant
CC=golang-dev
https://golang.org/cl/204053

15 years agoFix *l/*c -V flag segfault
Dean Prichard [Mon, 8 Feb 2010 19:53:27 +0000 (11:53 -0800)]
Fix *l/*c -V flag segfault

*l/*c -V will segfault on macos without this trivial fix.

R=adg
CC=golang-dev
https://golang.org/cl/205042

15 years ago*l/*c: add -V flag to display version number
Andrew Gerrand [Mon, 8 Feb 2010 17:46:53 +0000 (09:46 -0800)]
*l/*c: add -V flag to display version number

R=rsc
CC=golang-dev
https://golang.org/cl/204044

15 years agotesting: Fix comment typo
Evan Shaw [Mon, 8 Feb 2010 07:11:54 +0000 (23:11 -0800)]
testing: Fix comment typo

R=iant, rsc
CC=golang-dev
https://golang.org/cl/204068

15 years agoencoding/pem: add marshalling support.
Adam Langley [Sun, 7 Feb 2010 20:22:36 +0000 (15:22 -0500)]
encoding/pem: add marshalling support.

R=rsc
CC=golang-dev
https://golang.org/cl/203043

15 years agoruntime: introduce MemStatsType
Russ Cox [Sun, 7 Feb 2010 09:20:44 +0000 (01:20 -0800)]
runtime: introduce MemStatsType

R=ken2
CC=golang-dev
https://golang.org/cl/204061

15 years agofix comment
Kai Backman [Sun, 7 Feb 2010 05:59:46 +0000 (21:59 -0800)]
fix comment

R=rsc
CC=golang-dev
https://golang.org/cl/203053

15 years agodraw.Draw fast paths for a nil mask (and RGBA dst).
Nigel Tao [Sat, 6 Feb 2010 04:57:19 +0000 (15:57 +1100)]
draw.Draw fast paths for a nil mask (and RGBA dst).

Averaged times (in microseconds) for drawing an 800x600 rectangle
are listed below. The summary is: around a 100x improvement.

draw.Draw call times were typically linear in the number of pixels
touched (i.e. drawing an 800x600 rectangle took 100x as much time as
drawing an 80x60 rectangle).

Before this change, there was only the general-but-slow code path.
When drawing any src with a 50%-opaque mask: 237300 us
When drawing any src with a nil mask: 50100 us

After this change, the 50%-opaque mask case is unchanged.
For an *image.RGBA dst and nil mask and...
...a uniform color (i.e. an image.ColorImage) src: 282 us
...another *image.RGBA src: 615 us.

For the curious, an intermediate implementation detected the special
cases but used simple nested for loops instead of the built-in copy
function. The respective times (compared to 282 and 615 for the
final implementation, or 50100 for the original) were 3110 and 3573.

Times were measured with 8g/8l on my laptop. I haven't tried gccgo
or other architectures.

R=r, rsc
CC=golang-dev
https://golang.org/cl/201048

15 years agoMatch gccgo error message.
Ian Lance Taylor [Sat, 6 Feb 2010 04:56:20 +0000 (20:56 -0800)]
Match gccgo error message.

bug251.go:11:2: error: invalid recursive interface

R=rsc
CC=golang-dev
https://golang.org/cl/204052

15 years agoMatch gccgo error messages.
Ian Lance Taylor [Sat, 6 Feb 2010 02:38:27 +0000 (18:38 -0800)]
Match gccgo error messages.

ddd1.go:16:10: error: argument 1 has incompatible type
ddd1.go:17:10: error: argument 1 has incompatible type
ddd1.go:15:10: error: floating point constant truncated to integer

R=rsc
CC=golang-dev
https://golang.org/cl/204048

15 years agohttp: sort header keys when writing Response or Request to wire
Petar Maymounkov [Sat, 6 Feb 2010 02:32:02 +0000 (18:32 -0800)]
http: sort header keys when writing Response or Request to wire

R=rsc
CC=golang-dev
https://golang.org/cl/203050

15 years agobug in const float divide
Ken Thompson [Fri, 5 Feb 2010 23:18:32 +0000 (15:18 -0800)]
bug in const float divide

R=rsc
CC=golang-dev
https://golang.org/cl/204042

15 years agomath: Atan2 special cases and tests; atan2_386
Charles L. Dorian [Fri, 5 Feb 2010 22:55:19 +0000 (14:55 -0800)]
math: Atan2 special cases and tests; atan2_386

Added special cases, tests and benchmarks for Atan2;
added 386 FPU version of Atan2.

R=rsc
CC=golang-dev
https://golang.org/cl/201068

15 years agoUgly hack to provide some mechanism for printing documentation about
Rob Pike [Fri, 5 Feb 2010 21:53:46 +0000 (08:53 +1100)]
Ugly hack to provide some mechanism for printing documentation about
Go source outside $GOROOT.

If the argument is a path starting with / or ., disregard $GOROOT.
Also, disable the check for package name matching the directory,
which is counterproductive in this case.

Apologies for the violence to the code but we need some help documenting
Go code outside the standard repository.

R=gri
CC=golang-dev
https://golang.org/cl/201064

15 years agodashboard: present benchmarks
Russ Cox [Fri, 5 Feb 2010 10:58:40 +0000 (02:58 -0800)]
dashboard: present benchmarks
  * fix bug in benchmark collection: bad benchmark data key
    meant that all the builders collided when writing data.
  * report benchmarks even if make bench exits non-zero.
  * graphical and json presentations

R=agl1
CC=golang-dev
https://golang.org/cl/201065

15 years agoasn1: Fixes and additions to marshalling
Adam Langley [Fri, 5 Feb 2010 10:42:02 +0000 (05:42 -0500)]
asn1: Fixes and additions to marshalling

Marshalling:
* Fixes several silly bugs.
* Support the RawContents type.
* Support the RawValue type.
* Recurse into nested interface{}.

Both directions:
* Better handling of SETs. You can now tag an element in a
  structure with "set" to get the correct tag for serialisation.
* For types that aren't in a structure, you can now name them
  with "SET" on the end.
* SETs are no longer implicitly treated as SEQUENCEs.

R=rsc
CC=golang-dev
https://golang.org/cl/201049

15 years agocrypto/tls: typo fix
Adam Langley [Fri, 5 Feb 2010 10:39:49 +0000 (05:39 -0500)]
crypto/tls: typo fix

R=rsc
CC=golang-dev
https://golang.org/cl/201047

15 years agopath: make Join variadic
Stephen Weinberg [Fri, 5 Feb 2010 10:39:33 +0000 (02:39 -0800)]
path: make Join variadic

R=rsc, r
CC=golang-dev
https://golang.org/cl/198049

15 years ago5a/6a/8a/5c/6c/8c: remove fixed-size arrays for -I and -D options
Dean Prichard [Fri, 5 Feb 2010 09:40:58 +0000 (01:40 -0800)]
5a/6a/8a/5c/6c/8c: remove fixed-size arrays for -I and -D options

R=rsc
CC=golang-dev
https://golang.org/cl/198044

15 years agomath: special cases for Modf, Frexp and Ldexp; added Modf_386
Charles L. Dorian [Fri, 5 Feb 2010 08:41:30 +0000 (00:41 -0800)]
math: special cases for Modf, Frexp and Ldexp; added Modf_386

Also moved Modf from bits.go into modf.go and added timing tests.

R=rsc
CC=golang-dev
https://golang.org/cl/202042

15 years agoMatch gccgo error messages.
Ian Lance Taylor [Fri, 5 Feb 2010 05:31:30 +0000 (21:31 -0800)]
Match gccgo error messages.

bug121.go:12:3: error: name list not allowed in interface type
bug121.go:16:2: error: expected signature or type name

semi1.go:10:76: error: unexpected semicolon or newline before ‘{’
semi1.go:10:5: error: reference to undefined name ‘x’
semi1.go:10:8: error: reference to undefined name ‘y’
semi1.go:12:3: error: reference to undefined name ‘z’

semi2.go:10:79: error: unexpected semicolon or newline before ‘{’
semi2.go:10:9: error: reference to undefined name ‘x’

semi3.go:10:79: error: unexpected semicolon or newline before ‘{’
semi3.go:10:6: error: reference to undefined name ‘x’
semi3.go:10:9: error: reference to undefined name ‘y’
semi3.go:10:12: error: reference to undefined name ‘z’
semi3.go:12:3: error: reference to undefined name ‘z’

semi4.go:11:2: error: unexpected semicolon or newline before ‘{’
semi4.go:10:6: error: reference to undefined name ‘x’
semi4.go:12:3: error: reference to undefined name ‘z’

semi5.go:10:1: error: unexpected semicolon or newline before ‘{’

semi7.go:11:2: error: unexpected semicolon or newline before ‘else’
semi7.go:10:5: error: reference to undefined name ‘x’

slice.go:9:11: error: missing lower bound in slice expression
slice.go:9:9: error: reference to undefined name ‘y’
slice.go:9:12: error: reference to undefined name ‘z’

R=rsc
CC=golang-dev
https://golang.org/cl/201061

15 years agorelease.2010-02-04
Andrew Gerrand [Fri, 5 Feb 2010 01:39:51 +0000 (17:39 -0800)]
release.2010-02-04

R=rsc
CC=golang-dev
https://golang.org/cl/202055

15 years agorelease.2010-02-04 step one weekly.2010-02-04
Andrew Gerrand [Fri, 5 Feb 2010 01:37:46 +0000 (17:37 -0800)]
release.2010-02-04 step one

R=rsc
CC=golang-dev
https://golang.org/cl/202054

15 years agohandle nils safely in Printf.
Rob Pike [Fri, 5 Feb 2010 00:23:25 +0000 (11:23 +1100)]
handle nils safely in Printf.
add some tests for erroneous formats.

R=rsc
CC=golang-dev
https://golang.org/cl/201058

15 years agoAdded mingw specific build stubs.
Joe Poirier [Thu, 4 Feb 2010 21:09:09 +0000 (13:09 -0800)]
Added mingw specific build stubs.

R=rsc
CC=golang-dev
https://golang.org/cl/198071

15 years agotime: Sleep through interruptions
Christopher Wedgwood [Thu, 4 Feb 2010 21:09:02 +0000 (13:09 -0800)]
time: Sleep through interruptions

R=rsc
CC=golang-dev
https://golang.org/cl/202043

15 years agoFreeBSD: Kill only takes pid & signal
Christopher Wedgwood [Thu, 4 Feb 2010 21:08:54 +0000 (13:08 -0800)]
FreeBSD: Kill only takes pid & signal

Cosmetic fix.  The FreeBSD system call only takes two
arguments.

http://fxr.watson.org/fxr/source/kern/kern_sig.c?im=bigexcerpts#L1678

R=dho, rsc
CC=golang-dev
https://golang.org/cl/202051

15 years agoA+C: Joe Poirier (individual CLA)
Russ Cox [Thu, 4 Feb 2010 21:08:47 +0000 (13:08 -0800)]
A+C: Joe Poirier (individual CLA)

R=adg, adg1
CC=golang-dev
https://golang.org/cl/202044

15 years ago6l: move mapped symbol table lower in memory
Andrew Gerrand [Thu, 4 Feb 2010 20:46:11 +0000 (12:46 -0800)]
6l: move mapped symbol table lower in memory
Allows binary to run on some Linux system.

Fix for issue 365.

R=rsc
CC=golang-dev
https://golang.org/cl/199096

15 years agoAdded Andrew Gerrand to CONTRIBUTORS
Andrew Gerrand [Thu, 4 Feb 2010 19:42:41 +0000 (11:42 -0800)]
Added Andrew Gerrand to CONTRIBUTORS

R=golang-dev
CC=golang-dev
https://golang.org/cl/201041

15 years agoIn draw.Draw, separate the source-point and mask-point.
Nigel Tao [Thu, 4 Feb 2010 10:21:32 +0000 (21:21 +1100)]
In draw.Draw, separate the source-point and mask-point.
This lets you draw text (i.e. with mask = a font image) with
sources that aren't uniform colors.

R=r, rsc
CC=golang-dev
https://golang.org/cl/193067

15 years agosyscall: on freebsd, darwin, give Kill same signature as on linux
Russ Cox [Thu, 4 Feb 2010 10:06:08 +0000 (02:06 -0800)]
syscall: on freebsd, darwin, give Kill same signature as on linux

R=r, cw
CC=golang-dev
https://golang.org/cl/201043

15 years agoAdd named colors (e.g. image.Blue), suitable for exp/draw.
Nigel Tao [Thu, 4 Feb 2010 09:25:37 +0000 (20:25 +1100)]
Add named colors (e.g. image.Blue), suitable for exp/draw.

R=r, rsc
CC=golang-dev
https://golang.org/cl/198066

15 years agohttp: use ChunkWriter in Request.Write
Petar Maymounkov [Thu, 4 Feb 2010 08:23:01 +0000 (00:23 -0800)]
http: use ChunkWriter in Request.Write

R=rsc
CC=golang-dev
https://golang.org/cl/196079

15 years agoos/signal: send SIGCHLDs to Incoming
Christopher Wedgwood [Thu, 4 Feb 2010 07:24:28 +0000 (23:24 -0800)]
os/signal: send SIGCHLDs to Incoming

R=rsc
CC=golang-dev
https://golang.org/cl/199082

15 years agosearch for runtime.a in the package path instead of hardcoding
Kai Backman [Thu, 4 Feb 2010 06:31:38 +0000 (22:31 -0800)]
search for runtime.a in the package path instead of hardcoding
the location. remove last remnants of broken -l flag.

R=rsc
CC=golang-dev
https://golang.org/cl/201042

15 years agoarm: toss make-arm.bash
Russ Cox [Thu, 4 Feb 2010 04:46:37 +0000 (20:46 -0800)]
arm: toss make-arm.bash

R=kaib
CC=golang-dev
https://golang.org/cl/199094

15 years agoAdd RFC822 formats as named constants.
Rob Pike [Thu, 4 Feb 2010 04:39:27 +0000 (15:39 +1100)]
Add RFC822 formats as named constants.
Make sure to print a time zone when formatting even if none is defined.
Add a comment introducing lookupTimezone (not lookupTimeZone).

Fixes isse 577.

R=rsc
CC=golang-dev
https://golang.org/cl/196090

15 years agoadd apple's .DS_Store to ignored list
Rob Pike [Thu, 4 Feb 2010 04:12:39 +0000 (20:12 -0800)]
add apple's .DS_Store to ignored list

R=rsc
CC=golang-dev
https://golang.org/cl/198102

15 years agodebug/gosym: fix test for new 6l
Russ Cox [Thu, 4 Feb 2010 00:53:19 +0000 (16:53 -0800)]
debug/gosym: fix test for new 6l

TBR=r
CC=golang-dev
https://golang.org/cl/199091

15 years agofinalizers; merge package malloc into package runtime
Russ Cox [Thu, 4 Feb 2010 00:31:34 +0000 (16:31 -0800)]
finalizers; merge package malloc into package runtime

R=r, cw
CC=golang-dev
https://golang.org/cl/198085

15 years agold: include main and runtime in the library loop
Russ Cox [Thu, 4 Feb 2010 00:30:45 +0000 (16:30 -0800)]
ld: include main and runtime in the library loop

Fixes #585.

R=r
CC=golang-dev
https://golang.org/cl/195075

15 years agosort: fix comment typo
Andrey Mirtchovski [Wed, 3 Feb 2010 07:01:21 +0000 (23:01 -0800)]
sort: fix comment typo

R=rsc
CC=golang-dev
https://golang.org/cl/198084

15 years agofix build - misc ... vs ...T fixes
Russ Cox [Wed, 3 Feb 2010 02:19:27 +0000 (18:19 -0800)]
fix build - misc ... vs ...T fixes

TBR=r
CC=golang-dev
https://golang.org/cl/198081

15 years agoadded note about the GOARM env variable
Kai Backman [Wed, 3 Feb 2010 02:09:07 +0000 (18:09 -0800)]
added note about the GOARM env variable

R=rsc, r
CC=golang-dev
https://golang.org/cl/198074

15 years agobug252: make ... vs ...T crossing an error, at least for now
Russ Cox [Tue, 2 Feb 2010 23:00:13 +0000 (15:00 -0800)]
bug252: make ... vs ...T crossing an error, at least for now

R=r
CC=golang-dev
https://golang.org/cl/199066

15 years agogc: bug250, bug251 - recursive interface types
Russ Cox [Tue, 2 Feb 2010 07:58:49 +0000 (23:58 -0800)]
gc: bug250, bug251 - recursive interface types

Fixes #287.

R=ken2
CC=golang-dev
https://golang.org/cl/199057

15 years agoNew image.A type, to represent anti-aliased font glyphs.
Nigel Tao [Tue, 2 Feb 2010 07:38:04 +0000 (18:38 +1100)]
New image.A type, to represent anti-aliased font glyphs.

R=r, rsc
CC=golang-dev
https://golang.org/cl/199052

15 years agoMatch gccgo error messages.
Ian Lance Taylor [Tue, 2 Feb 2010 07:27:33 +0000 (23:27 -0800)]
Match gccgo error messages.

bug249.go:10:5: error: incompatible type in initialization
bug249.go:26:5: error: incompatible type in initialization

R=rsc
CC=golang-dev
https://golang.org/cl/198058

15 years agogc: bug246
Russ Cox [Tue, 2 Feb 2010 07:05:15 +0000 (23:05 -0800)]
gc: bug246

R=ken2
CC=golang-dev
https://golang.org/cl/198057

15 years agomath: change Cosh test to close, not veryclose (needed on some x86 chips)
Russ Cox [Tue, 2 Feb 2010 06:46:37 +0000 (22:46 -0800)]
math: change Cosh test to close, not veryclose (needed on some x86 chips)

R=r
CC=Charlie Dorian, golang-dev
https://golang.org/cl/199054

15 years agomath: add functions; update tests and special cases
Charles L. Dorian [Tue, 2 Feb 2010 06:21:40 +0000 (22:21 -0800)]
math: add functions; update tests and special cases

Added special cases to comments for asin.go and fabs.go.
Added Trunc() to floor.go and floor_386.s.  Fixed formatting
error in hypot_386.s  Added new functions Acosh, Asinh,
Atanh, Copysign, Erf, Erfc, Expm1, and Log1p.  Added
386 FPU version of Fmod.  Added tests, benchmarks, and
precision to expected results in all_test.go.  Edited
makefile so it all compiles.

R=rsc
CC=golang-dev
https://golang.org/cl/195052

15 years agogc: bug242
Russ Cox [Tue, 2 Feb 2010 06:18:51 +0000 (22:18 -0800)]
gc: bug242

R=ken2
CC=golang-dev
https://golang.org/cl/198053

15 years ago...T is now implemented
Rob Pike [Tue, 2 Feb 2010 02:59:23 +0000 (18:59 -0800)]
...T  is now implemented

R=rsc, gri
CC=golang-dev
https://golang.org/cl/198050

15 years agoupdate printer tests to use new syntax
Robert Griesemer [Tue, 2 Feb 2010 01:51:55 +0000 (17:51 -0800)]
update printer tests to use new syntax

R=rsc
CC=golang-dev
https://golang.org/cl/198048

15 years agoio: revised Pipe implementation
Russ Cox [Tue, 2 Feb 2010 01:43:15 +0000 (17:43 -0800)]
io: revised Pipe implementation

* renamed channels to say what gets sent
* use channel closed status instead of racy check of boolean

R=nigeltao_golang
CC=golang-dev
https://golang.org/cl/196065

15 years agoallow any scalar type in xml.Unmarshal.
Rob Pike [Tue, 2 Feb 2010 00:53:10 +0000 (11:53 +1100)]
allow any scalar type in xml.Unmarshal.

Fixes #574.

R=rsc
CC=golang-dev
https://golang.org/cl/196056

15 years agoMatch gccgo error messages.
Ian Lance Taylor [Tue, 2 Feb 2010 00:35:23 +0000 (16:35 -0800)]
Match gccgo error messages.

import1.go:12:8: error: redefinition of ‘bufio’
import1.go:11:8: note: previous definition of ‘bufio’ was here
import1.go:16:2: error: redefinition of ‘fmt’
import1.go:15:2: note: previous definition of ‘fmt’ was here
import1.go:11:8: error: imported and not used: bufio

R=rsc
CC=golang-dev
https://golang.org/cl/194165

15 years agoIgnore the temporary files used for improved error messages.
Ian Lance Taylor [Tue, 2 Feb 2010 00:34:25 +0000 (16:34 -0800)]
Ignore the temporary files used for improved error messages.

R=rsc
CC=golang-dev
https://golang.org/cl/199047

15 years agoFix for gccgo, which uses a package prefix.
Ian Lance Taylor [Tue, 2 Feb 2010 00:26:50 +0000 (16:26 -0800)]
Fix for gccgo, which uses a package prefix.

R=rsc
CC=golang-dev
https://golang.org/cl/198046

15 years agoMatch gccgo error messages.
Ian Lance Taylor [Tue, 2 Feb 2010 00:25:55 +0000 (16:25 -0800)]
Match gccgo error messages.

I have to admit that "cannot use type p.T as type p.T" is a
bit weak.  8g gives a similar error ("cannot use v1 (type p.T)
as type p.T in assignment").

bug3.go:37:5: error: incompatible type in initialization (incompatible type for method ‘M’ (different parameter types))
bug3.go:38:5: error: incompatible type in initialization (incompatible type for method ‘M’ (different parameter types))
bug3.go:43:5: error: incompatible type in initialization (incompatible type for method ‘M’ (different parameter types))
bug3.go:44:5: error: incompatible type in initialization (incompatible type for method ‘M’ (different parameter types))
bug3.go:49:5: error: incompatible types in assignment (cannot use type p.T as type p.T)
bug3.go:50:5: error: incompatible types in assignment (cannot use type p.T as type p.T)
bug3.go:55:5: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types))
bug3.go:56:5: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types))
bug3.go:57:6: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types))
bug3.go:58:6: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types))
bug3.go:59:5: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types))
bug3.go:60:5: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types))
bug3.go:61:6: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types))
bug3.go:62:6: error: incompatible types in assignment (incompatible type for method ‘M’ (different parameter types))

R=rsc
CC=golang-dev
https://golang.org/cl/199044

15 years agogc: final ...T bug for the day
Russ Cox [Tue, 2 Feb 2010 00:22:16 +0000 (16:22 -0800)]
gc: final ...T bug for the day

R=ken2
CC=golang-dev
https://golang.org/cl/199046

15 years agoCorrected broken assertion.
Robert Griesemer [Tue, 2 Feb 2010 00:14:22 +0000 (16:14 -0800)]
Corrected broken assertion.
Fixes #571.

R=rsc
CC=golang-dev
https://golang.org/cl/198045