]> Cypherpunks repositories - gostls13.git/log
gostls13.git
14 years agogob: Register should use the original type, not the indirected one.
Rob Pike [Tue, 14 Dec 2010 23:04:52 +0000 (15:04 -0800)]
gob: Register should use the original type, not the indirected one.
Fixes a bug reported on golang-nuts.

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

14 years agogovet: on error continue to the next file
Christopher Wedgwood [Tue, 14 Dec 2010 22:12:22 +0000 (14:12 -0800)]
govet: on error continue to the next file

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

14 years agogob: document the byte count used in the encoding of values.
Rob Pike [Tue, 14 Dec 2010 22:04:52 +0000 (14:04 -0800)]
gob: document the byte count used in the encoding of values.

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

14 years agoreflect: add Append and AppendSlice functions.
Nigel Tao [Tue, 14 Dec 2010 21:50:08 +0000 (08:50 +1100)]
reflect: add Append and AppendSlice functions.

R=r, nigeltao_gnome, rog, niemeyer
CC=golang-dev
https://golang.org/cl/3529042

14 years agoregexp: simplify code for brackets, per rsc suggestion
Rob Pike [Tue, 14 Dec 2010 20:01:35 +0000 (12:01 -0800)]
regexp: simplify code for brackets, per rsc suggestion

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

14 years agocompress/flate: implement Flush
Russ Cox [Tue, 14 Dec 2010 19:57:12 +0000 (14:57 -0500)]
compress/flate: implement Flush

This Flush is equivalent to zlib's Z_SYNC_FLUSH.
The addition of the explicit Writer type opens the
door to adding a PartialFlush if needed for SSH
and maybe even FullFlush.  It also opens the door
for a SetDictionary method to be added.

http://www.bolet.org/~pornin/deflate-flush.html
documents the various intricacies of flushing a
DEFLATE stream.

R=agl1, r
CC=golang-dev
https://golang.org/cl/3637041

14 years agoregexp: speed up by about 30%.
Rob Pike [Tue, 14 Dec 2010 19:15:32 +0000 (11:15 -0800)]
regexp: speed up by about 30%.
The code used interfaces in a pretty, pedagogical way but not efficiently.
Remove unnecessary interface code for significant speedups.
Before:

regexp.BenchmarkLiteral  1000000       2629 ns/op
regexp.BenchmarkNotLiteral   100000      18131 ns/op
regexp.BenchmarkMatchClass   100000      26647 ns/op
regexp.BenchmarkMatchClass_InRange   100000      27092 ns/op
regexp.BenchmarkReplaceAll   100000      27014 ns/op

After:

regexp.BenchmarkLiteral  1000000       2077 ns/op
regexp.BenchmarkNotLiteral   100000      13738 ns/op
regexp.BenchmarkMatchClass   100000      20418 ns/op
regexp.BenchmarkMatchClass_InRange   100000      20999 ns/op
regexp.BenchmarkReplaceAll   100000      21825 ns/op

There's likely more to do without major surgery, but this is a simple, significant step.

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

14 years agosuffixarray: rename Data() -> Bytes()
Robert Griesemer [Tue, 14 Dec 2010 18:22:00 +0000 (10:22 -0800)]
suffixarray: rename Data() -> Bytes()

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

14 years agohttp: include DEL in the test for unprintable chars
Anthony Martin [Tue, 14 Dec 2010 17:26:30 +0000 (12:26 -0500)]
http: include DEL in the test for unprintable chars

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

14 years agobuild: remove intermediate yacc files in Make.ccmd
Anthony Martin [Tue, 14 Dec 2010 17:22:40 +0000 (12:22 -0500)]
build: remove intermediate yacc files in Make.ccmd

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

14 years agocrypto/tls: use rand.Reader in cert generation example
Anthony Martin [Tue, 14 Dec 2010 17:22:28 +0000 (12:22 -0500)]
crypto/tls: use rand.Reader in cert generation example

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

14 years agosmtp: add *tls.Config argument to StartTLS
Anthony Martin [Tue, 14 Dec 2010 17:22:08 +0000 (12:22 -0500)]
smtp: add *tls.Config argument to StartTLS

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

14 years agoruntime: write only to standard error
Russ Cox [Tue, 14 Dec 2010 16:52:42 +0000 (11:52 -0500)]
runtime: write only to standard error

Will mail a warning to golang-nuts once this is submitted.

R=r, niemeyer
CC=golang-dev
https://golang.org/cl/3573043

14 years agotypo
Russ Cox [Tue, 14 Dec 2010 16:33:17 +0000 (11:33 -0500)]
typo

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

14 years agogo spec: fix two grammar typos
Anthony Martin [Tue, 14 Dec 2010 06:19:41 +0000 (22:19 -0800)]
go spec: fix two grammar typos

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

14 years agotoken/position: provide files iterator
Robert Griesemer [Tue, 14 Dec 2010 01:08:40 +0000 (17:08 -0800)]
token/position: provide files iterator

R=golang-dev, r2
CC=golang-dev
https://golang.org/cl/3541044

14 years agosuffixarray: provide accessor to data
Robert Griesemer [Tue, 14 Dec 2010 01:08:01 +0000 (17:08 -0800)]
suffixarray: provide accessor to data

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

14 years agogo_mem: goroutine exit is not special
Russ Cox [Mon, 13 Dec 2010 22:08:27 +0000 (17:08 -0500)]
go_mem: goroutine exit is not special

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

14 years agoruntime: remove paranoid mapping at 0
Russ Cox [Mon, 13 Dec 2010 21:57:35 +0000 (16:57 -0500)]
runtime: remove paranoid mapping at 0

Too many programs complain that we even try.
This was a bit of security paranoia and not worth
the bother.

Fixes #1340.

R=r, r2
CC=golang-dev
https://golang.org/cl/3579042

14 years agotime: fix bug in Ticker: shutdown using channel rather than memory
Rob Pike [Mon, 13 Dec 2010 21:52:19 +0000 (13:52 -0800)]
time: fix bug in Ticker: shutdown using channel rather than memory

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

14 years agogc: issue 1231
Russ Cox [Mon, 13 Dec 2010 21:51:19 +0000 (16:51 -0500)]
gc: issue 1231

Fixes #1231.

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

14 years agogc: align structs according to max alignment of fields
Russ Cox [Mon, 13 Dec 2010 21:22:19 +0000 (16:22 -0500)]
gc: align structs according to max alignment of fields
cc: same
runtime: test cc alignment (required moving #define of offsetof to runtime.h)
fix bug260

Fixes #482.
Fixes #609.

R=ken2, r
CC=golang-dev
https://golang.org/cl/3563042

14 years agojson: check for invalid UTF-8
Russ Cox [Mon, 13 Dec 2010 20:51:11 +0000 (15:51 -0500)]
json: check for invalid UTF-8

Fixes #1250.

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

14 years agobuild: add a few missing --no-print-directory
Russ Cox [Mon, 13 Dec 2010 20:50:57 +0000 (15:50 -0500)]
build: add a few missing --no-print-directory

Reported by W. Michael Petullo <mike@flyn.org>

Fixes #1269.

R=r, r2
CC=golang-dev
https://golang.org/cl/3618041

14 years agogodefs: guard against structs with pad fields
Russ Cox [Mon, 13 Dec 2010 20:50:47 +0000 (15:50 -0500)]
godefs: guard against structs with pad fields

Fixes #1162.

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

14 years agogc: complex(0)
Russ Cox [Mon, 13 Dec 2010 20:34:45 +0000 (15:34 -0500)]
gc: complex(0)

Fixes #1232.

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

14 years agold: missing prototype
Russ Cox [Mon, 13 Dec 2010 20:26:52 +0000 (15:26 -0500)]
ld: missing prototype

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

14 years agogc: another shift bug
Russ Cox [Mon, 13 Dec 2010 18:42:51 +0000 (13:42 -0500)]
gc: another shift bug

Fixes #1316.

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

14 years agocgo: do not reset tag generator between files
Russ Cox [Mon, 13 Dec 2010 18:20:04 +0000 (13:20 -0500)]
cgo: do not reset tag generator between files

Clean up an error message and error exit too.
Insert blank line after "DO NOT EDIT" comment
to keep it from being a doc comment.

Fixes #1213.
Fixes #1222.

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

14 years agogc: introduce explicit alignments
Russ Cox [Mon, 13 Dec 2010 16:57:41 +0000 (11:57 -0500)]
gc: introduce explicit alignments

No semantic changes here, but working
toward being able to align structs based
on the maximum alignment of the fields
inside instead of having a fixed alignment
for all structs (issue 482).

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

14 years agogc: emit reflect correct reflect types
Russ Cox [Mon, 13 Dec 2010 15:05:20 +0000 (10:05 -0500)]
gc: emit reflect correct reflect types

Fixes #1169.

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

14 years agold: allow .o files with no symbols
Russ Cox [Mon, 13 Dec 2010 15:05:07 +0000 (10:05 -0500)]
ld: allow .o files with no symbols
Don't crash in dwarf for foreign functions.

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

14 years agoruntime/linux/386: set FPU to 64-bit precision
Russ Cox [Mon, 13 Dec 2010 15:04:53 +0000 (10:04 -0500)]
runtime/linux/386: set FPU to 64-bit precision

Fixes #550.

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

14 years agosyscall: remove terminating \r and \n from windows error messages
Alex Brainman [Mon, 13 Dec 2010 06:02:01 +0000 (17:02 +1100)]
syscall: remove terminating \r and \n from windows error messages

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

14 years agoFix windows build.
Wei Guangjing [Mon, 13 Dec 2010 05:41:02 +0000 (16:41 +1100)]
Fix windows build.

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

14 years agoA selection of trivials.
Gustavo Niemeyer [Sun, 12 Dec 2010 22:16:37 +0000 (14:16 -0800)]
A selection of trivials.

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

14 years agogodoc: improved textual search
Robert Griesemer [Sun, 12 Dec 2010 21:13:07 +0000 (13:13 -0800)]
godoc: improved textual search

- improved search result page
- clicking on files shows highlighted search phrase
  (.go files loose their godoc-specific formatting and
  highlighting in this mode - a better solution is in
  the works)
- support for textual results
- fixed bug with non-URL escaped URL parameter (Query)

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

14 years ago5g/8g, 8l, ld, prof: fix output of 32-bit values
Eoghan Sherry [Sun, 12 Dec 2010 19:40:19 +0000 (14:40 -0500)]
5g/8g, 8l, ld, prof: fix output of 32-bit values

If an %lld argument can be 32 or 64 bits wide, cast to vlong.
If always 32 bits, drop the ll.
Fixes #1336.

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

14 years agoreflect: rename reflect.ArrayCopy to be reflect.Copy.
Nigel Tao [Sun, 12 Dec 2010 09:27:29 +0000 (20:27 +1100)]
reflect: rename reflect.ArrayCopy to be reflect.Copy.

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

14 years agogofmt -s -w src
Mikio Hara [Sat, 11 Dec 2010 21:49:45 +0000 (13:49 -0800)]
gofmt -s -w src

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

14 years agogodoc: first cut at textual search
Robert Griesemer [Fri, 10 Dec 2010 22:40:22 +0000 (14:40 -0800)]
godoc: first cut at textual search

To enable use -fulltext flag; e.g.: godoc -v -fulltext -http=:7777

Enabling the fulltext index will use significantly more memory as
the text of all source code, the respective suffixarray, and the
file set data structure is kept in memory. At the moment there is
about 6Mb of source code (~1400 files) indexed under GOROOT.
Source code + suffix array together consume 5*(size of source) or
about 30Mb. The file set data structure consumes about 4b/src line.
By default only up to 5000 results are shown for now.

The presentation of the results needs tuning. In particular,
if a string is found, clicking on the respective file does not
highlight them, yet.

At the moment, only Go source files are indexed. Eventually,
the full text index should encompass other files as well.

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

14 years agomath: s/MinFloat/SmallestNonzeroFloat/
Russ Cox [Fri, 10 Dec 2010 19:39:09 +0000 (11:39 -0800)]
math: s/MinFloat/SmallestNonzeroFloat/

R=r, gri
CC=golang-dev
https://golang.org/cl/3547042

14 years agocgo: avoid self-interference of global names
Russ Cox [Fri, 10 Dec 2010 19:32:58 +0000 (11:32 -0800)]
cgo: avoid self-interference of global names

Fixes #1332.

R=iant, iant2
CC=golang-dev
https://golang.org/cl/3555041

14 years agonm: silently ignore .o files in .a files
Russ Cox [Fri, 10 Dec 2010 19:32:48 +0000 (11:32 -0800)]
nm: silently ignore .o files in .a files

Update #1334.

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

14 years agohtml: parse <table><tr><td> tags.
Nigel Tao [Fri, 10 Dec 2010 01:20:14 +0000 (12:20 +1100)]
html: parse <table><tr><td> tags.

Also, shorten fooInsertionMode to fooIM.

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

14 years agoos: make MkdirAll work with symlinks
Ryan Hitchman [Thu, 9 Dec 2010 23:43:45 +0000 (10:43 +1100)]
os: make MkdirAll work with symlinks

Fixes #1149.

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

14 years agoarm floating point simulation
Ken Thompson [Thu, 9 Dec 2010 22:45:27 +0000 (14:45 -0800)]
arm floating point simulation

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

14 years agohttp: ServeFile to handle Range header for partial requests
Andrew Gerrand [Thu, 9 Dec 2010 21:51:13 +0000 (08:51 +1100)]
http: ServeFile to handle Range header for partial requests
and send Content-Length.

Also includes some testing of the server code.

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

14 years agodashboard: fix project tag filter
Andrew Gerrand [Thu, 9 Dec 2010 21:29:34 +0000 (08:29 +1100)]
dashboard: fix project tag filter

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

14 years agotutorial: a couple of minor fixes.
Rob Pike [Thu, 9 Dec 2010 21:18:31 +0000 (16:18 -0500)]
tutorial: a couple of minor fixes.
Fixes #1333.

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

14 years agoxml: disallow invalid Unicode code points
Nigel Kerr [Thu, 9 Dec 2010 19:51:01 +0000 (14:51 -0500)]
xml: disallow invalid Unicode code points

Fixes #1259.

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

14 years agoA+C: Lorenzo Stoakes, Nigel Kerr (both individual CLA)
Russ Cox [Thu, 9 Dec 2010 19:49:21 +0000 (14:49 -0500)]
A+C: Lorenzo Stoakes, Nigel Kerr (both individual CLA)

R=r
CC=golang-dev, lstoakes, nk
https://golang.org/cl/3549041

14 years agoos: fix test of RemoveAll
Russ Cox [Thu, 9 Dec 2010 19:49:13 +0000 (14:49 -0500)]
os: fix test of RemoveAll

Fixes #22. (again)

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

14 years agosyscall: add network interface constants for linux/386, linux/amd64
Mikio Hara [Thu, 9 Dec 2010 18:55:59 +0000 (13:55 -0500)]
syscall: add network interface constants for linux/386, linux/amd64

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

14 years agogc: syntax error for incomplete chan type
Ryan Hitchman [Thu, 9 Dec 2010 18:41:24 +0000 (13:41 -0500)]
gc: syntax error for incomplete chan type

Fixes #932.

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

14 years agogo/ast: fix ast.Walk
Robert Griesemer [Thu, 9 Dec 2010 18:22:01 +0000 (10:22 -0800)]
go/ast: fix ast.Walk

- change Walk signature to use an ast.Node instead of interface{}
- add Pos functions to a couple of ast types to make them proper nodes
- explicit nil checks where a node can be nil; incorrect ASTs cause Walk to crash

For now ast.Walk is exercised extensively as part of godoc's indexer;
so we have some confidence in its correctness. But this needs a test,
eventually.

Fixes #1326.

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

14 years agogofmt: simplify "x, _ = range y" to "x = range y"
Robert Griesemer [Thu, 9 Dec 2010 18:11:57 +0000 (10:11 -0800)]
gofmt: simplify "x, _ = range y" to "x = range y"

(inspired by CL 3529041 by hitchmanr@gmail.com)

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

14 years agoos/inotify: new package
Balazs Lecz [Thu, 9 Dec 2010 18:11:39 +0000 (13:11 -0500)]
os/inotify: new package

This patch adds a new package: os/inotify, which
provides a Go wrapper to the Linux inotify system.

R=rsc, albert.strasheim, rog, jacek.masiulaniec
CC=golang-dev
https://golang.org/cl/2049043

14 years agogo/token,scanner: fix comments so godoc aligns properly
Robert Griesemer [Thu, 9 Dec 2010 18:11:00 +0000 (10:11 -0800)]
go/token,scanner: fix comments so godoc aligns properly

R=iant, r2
CC=golang-dev
https://golang.org/cl/3532042

14 years agogovet: a new static checker for Go programs.
Rob Pike [Thu, 9 Dec 2010 17:37:18 +0000 (12:37 -0500)]
govet: a new static checker for Go programs.
At the moment, and for the forseeable future, it only checks arguments to print calls.

R=rsc, gri, niemeyer, iant2, rog, lstoakes, jacek.masiulaniec, cw
CC=golang-dev
https://golang.org/cl/3522041

14 years agogob: fix bug sending zero-length top-level slices and maps
Rob Pike [Thu, 9 Dec 2010 16:01:32 +0000 (11:01 -0500)]
gob: fix bug sending zero-length top-level slices and maps
Fixes #1278.

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

14 years agothroughout: simplify two-variable ranges with unused second variable
Ryan Hitchman [Thu, 9 Dec 2010 05:36:56 +0000 (21:36 -0800)]
throughout: simplify two-variable ranges with unused second variable

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

14 years agoevent.go: another print glitch from gocheck.
Rob Pike [Wed, 8 Dec 2010 22:12:25 +0000 (17:12 -0500)]
event.go: another print glitch from gocheck.

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

14 years agodoc: fix invalid id attribute in faq
Andrew Gerrand [Wed, 8 Dec 2010 21:59:29 +0000 (08:59 +1100)]
doc: fix invalid id attribute in faq

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

14 years agoarm: more fixes
Russ Cox [Wed, 8 Dec 2010 21:49:49 +0000 (16:49 -0500)]
arm: more fixes

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

14 years agoruntime/cgo: adapt files copied from libcgo
Russ Cox [Wed, 8 Dec 2010 21:35:05 +0000 (16:35 -0500)]
runtime/cgo: adapt files copied from libcgo

Necessary but not sufficient step toward
making those builds work.

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

14 years agoa few more errors caught by the print checker
Rob Pike [Wed, 8 Dec 2010 21:25:14 +0000 (16:25 -0500)]
a few more errors caught by the print checker

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

14 years ago5l (and 6l, 8l, ld): more arm build fixes
Russ Cox [Wed, 8 Dec 2010 20:44:59 +0000 (15:44 -0500)]
5l (and 6l, 8l, ld): more arm build fixes

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

14 years ago5l: fix build
Russ Cox [Wed, 8 Dec 2010 20:37:51 +0000 (15:37 -0500)]
5l: fix build

Makes 5l build with recent changes, but not yet tested on ARM hardware.

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

14 years ago crypto/elliptic: remove mistakenly commited code
Adam Langley [Wed, 8 Dec 2010 20:01:53 +0000 (15:01 -0500)]
crypto/elliptic: remove mistakenly commited code

        One of my own experiments ended up getting mistakenly commited when
        switching to Jacobian transformations.

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

14 years agofix build: more libcgo references
Russ Cox [Wed, 8 Dec 2010 19:36:45 +0000 (14:36 -0500)]
fix build: more libcgo references

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

14 years agolibcgo: delete (replaced by runtime/cgo)
Russ Cox [Wed, 8 Dec 2010 19:33:17 +0000 (14:33 -0500)]
libcgo: delete (replaced by runtime/cgo)

Move unported files (freebsd*, windows*, nacl*) to runtime/cgo.

Step toward fixing FreeBSD build.

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

14 years agosyscall: fix linux/arm build
Russ Cox [Wed, 8 Dec 2010 19:31:46 +0000 (14:31 -0500)]
syscall: fix linux/arm build

bug introduced at
https://golang.org/cl/2331044

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

14 years agoruntime/cgo: take 2
Russ Cox [Wed, 8 Dec 2010 19:10:00 +0000 (14:10 -0500)]
runtime/cgo: take 2

This is a second attempt at submitting
https://golang.org/cl/3420043

A Mercurial problem lost the new files
in that submit.

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

14 years agocgo: new cgo
Russ Cox [Wed, 8 Dec 2010 18:56:51 +0000 (13:56 -0500)]
cgo: new cgo

Very few changes here: the subtle ones are in Make.pkg.

Note that incredibly (and importantly) there are
no changes necessary to the test programs in misc/cgo.

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

14 years ago6l, 8l: support for linking ELF and Mach-O .o files
Russ Cox [Wed, 8 Dec 2010 18:56:43 +0000 (13:56 -0500)]
6l, 8l: support for linking ELF and Mach-O .o files

More support for references to dynamic symbols,
including full GOT and PLT for ELF objects.

For Mach-O everything ends up in the GOT: dealing
with the real lazy PLT is too hard for now so we punt.

R=iant, iant2
CC=golang-dev
https://golang.org/cl/3491042

14 years agoruntime/cgo: runtime changes for new cgo
Russ Cox [Wed, 8 Dec 2010 18:53:30 +0000 (13:53 -0500)]
runtime/cgo: runtime changes for new cgo

Formerly known as libcgo.
Almost no code here is changing; the diffs
are shown relative to the originals in libcgo.

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

14 years agold: reading of Mach-O object files
Russ Cox [Wed, 8 Dec 2010 18:53:24 +0000 (13:53 -0500)]
ld: reading of Mach-O object files

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

14 years agodebug/elf, debug/macho: add ImportedLibraries, ImportedSymbols
Russ Cox [Wed, 8 Dec 2010 18:53:19 +0000 (13:53 -0500)]
debug/elf, debug/macho: add ImportedLibraries, ImportedSymbols

R=r, iant
CC=golang-dev
https://golang.org/cl/3470044

14 years agogopack: allow ELF/Mach-O objects in .a files without clearing allobj
Russ Cox [Wed, 8 Dec 2010 18:53:13 +0000 (13:53 -0500)]
gopack: allow ELF/Mach-O objects in .a files without clearing allobj

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

14 years ago6l, 8l: minor changes & cleanup
Russ Cox [Wed, 8 Dec 2010 18:53:07 +0000 (13:53 -0500)]
6l, 8l: minor changes & cleanup

R=ken2, ken3
CC=golang-dev
https://golang.org/cl/3505041

14 years agold: reading of ELF object files
Russ Cox [Wed, 8 Dec 2010 18:52:59 +0000 (13:52 -0500)]
ld: reading of ELF object files

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

14 years agold: re-add ELF symbol tables
Russ Cox [Wed, 8 Dec 2010 18:52:50 +0000 (13:52 -0500)]
ld: re-add ELF symbol tables

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

14 years agopath: fix printf glitch in test
Rob Pike [Wed, 8 Dec 2010 14:58:46 +0000 (09:58 -0500)]
path: fix printf glitch in test

R=rh, gri
CC=golang-dev
https://golang.org/cl/3514041

14 years agodoc: fix installation $GOOS choices
Peter Mundy [Wed, 8 Dec 2010 09:27:45 +0000 (20:27 +1100)]
doc: fix installation $GOOS choices

The $GOOS choices text and combinations list should match.

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

14 years agogodoc: use file instead of file set for computing line info
Robert Griesemer [Wed, 8 Dec 2010 05:55:32 +0000 (21:55 -0800)]
godoc: use file instead of file set for computing line info

Reduces indexing time by ~10%; from ~44s to ~39s, best of 3 runs.

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

14 years agotoken/position.go: provide FileSet.File(), minor optimizations
Robert Griesemer [Wed, 8 Dec 2010 05:50:08 +0000 (21:50 -0800)]
token/position.go: provide FileSet.File(), minor optimizations

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

14 years agosyscall: restrict access rights param of OpenProcess() to the minimum needed
Alex Brainman [Wed, 8 Dec 2010 05:20:30 +0000 (16:20 +1100)]
syscall: restrict access rights param of OpenProcess() to the minimum needed

Fixes #1270.

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

14 years agotag release.2010-12-08
Andrew Gerrand [Wed, 8 Dec 2010 03:30:44 +0000 (14:30 +1100)]
tag release.2010-12-08

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

14 years agorelease.2010-12-08 weekly.2010-12-08
Andrew Gerrand [Wed, 8 Dec 2010 03:24:35 +0000 (14:24 +1100)]
release.2010-12-08

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

14 years agoruntime: fix windows build
Alex Brainman [Wed, 8 Dec 2010 01:52:36 +0000 (12:52 +1100)]
runtime: fix windows build

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

14 years agoruntime: add Goroutines
Keith Rarick [Tue, 7 Dec 2010 23:06:31 +0000 (18:06 -0500)]
runtime: add Goroutines

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

14 years agold: fix dwarf decoding of 64-bit reflect values
Eoghan Sherry [Tue, 7 Dec 2010 22:20:52 +0000 (17:20 -0500)]
ld: fix dwarf decoding of 64-bit reflect values

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

14 years agoruntime: debugging help on 386
Russ Cox [Tue, 7 Dec 2010 22:19:36 +0000 (17:19 -0500)]
runtime: debugging help on 386

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

14 years agohtml: handle unexpected EOF during parsing.
Nigel Tao [Tue, 7 Dec 2010 21:59:20 +0000 (08:59 +1100)]
html: handle unexpected EOF during parsing.

This lets us parse HTML like "<html>foo".

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

14 years agocc: allow $ as letter in pragma arguments
Russ Cox [Tue, 7 Dec 2010 21:45:06 +0000 (16:45 -0500)]
cc: allow $ as letter in pragma arguments

(Needed for Mac OS X symbol names.)

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

14 years agogo/parser: Better comment for ParseFile.
Robert Griesemer [Tue, 7 Dec 2010 21:44:01 +0000 (13:44 -0800)]
go/parser: Better comment for ParseFile.

The name ParseFile was kept as it indicates that
this function parses a Go 'SourceFile' per the
Go spec. Similarly, the other functions (ParseExpr,
ParseStmtList, ParseDeclList) parse the corresponding
constructs as defined in the Go spec.

Fixes #1311.

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

14 years agothroughout: fix broken calls to Printf etc.
Rob Pike [Tue, 7 Dec 2010 21:42:54 +0000 (16:42 -0500)]
throughout: fix broken calls to Printf etc.
I have written a tool to verify Printf calls, and although it's not
ready to be reviewed yet it's already uncovered a spate of problems
in the repository.  I'm sending this CL to break the changes into
pieces; as the tool improves it will find more, I'm sure.

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

14 years agodoc: add link to WindowsPort page from install.html
Andrew Gerrand [Tue, 7 Dec 2010 21:31:26 +0000 (08:31 +1100)]
doc: add link to WindowsPort page from install.html

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

14 years agohttp: fix build
Russ Cox [Tue, 7 Dec 2010 21:20:15 +0000 (16:20 -0500)]
http: fix build

R=dsymonds
TBR=dsymonds
CC=golang-dev
https://golang.org/cl/3425044