]> Cypherpunks repositories - gostls13.git/log
gostls13.git
16 years agodescribe each interface test
Russ Cox [Tue, 12 May 2009 23:09:47 +0000 (16:09 -0700)]
describe each interface test

R=r
DELTA=20  (20 added, 0 deleted, 0 changed)
OCL=28707
CL=28716

16 years agoupdate reflect for upcoming interface representation change.
Russ Cox [Tue, 12 May 2009 23:08:16 +0000 (16:08 -0700)]
update reflect for upcoming interface representation change.
test case for new change.

both work with the current compiler too.

R=r
DELTA=150  (145 added, 2 deleted, 3 changed)
OCL=28703
CL=28715

16 years agofix build: proto depends on fmt now
Russ Cox [Tue, 12 May 2009 22:47:55 +0000 (15:47 -0700)]
fix build: proto depends on fmt now

TBR=r,dsymonds
OCL=28711
CL=28711

16 years agoAllow http.Redirect to do both temporary (307) and permanent (301) redirects.
David Symonds [Tue, 12 May 2009 22:41:19 +0000 (15:41 -0700)]
Allow http.Redirect to do both temporary (307) and permanent (301) redirects.
This also adds a missing 'return' when a malformed URL is passed to it.

R=rsc
APPROVED=rsc
DELTA=30  (13 added, 2 deleted, 15 changed)
OCL=28598
CL=28710

16 years agoimplement IsNil() bool for those types that can be nil. most of them, anyway.
Rob Pike [Tue, 12 May 2009 21:57:44 +0000 (14:57 -0700)]
implement IsNil() bool for those types that can be nil.  most of them, anyway.

R=rsc
DELTA=97  (96 added, 0 deleted, 1 changed)
OCL=28596
CL=28702

16 years agoA couple of godoc improvements:
Robert Griesemer [Mon, 11 May 2009 23:52:59 +0000 (16:52 -0700)]
A couple of godoc improvements:
- sort directories before printing
- apply filtering to factory functions and methods
- remove a couple of unused files

R=r
DELTA=84  (34 added, 40 deleted, 10 changed)
OCL=28657
CL=28657

16 years agochange utf8.FullRuneInString and utf8.DecodeRuneInString
Russ Cox [Mon, 11 May 2009 21:10:34 +0000 (14:10 -0700)]
change utf8.FullRuneInString and utf8.DecodeRuneInString
to use single string argument instead of string, index.

R=r
DELTA=136  (9 added, 7 deleted, 120 changed)
OCL=28642
CL=28644

16 years agoweekly snapshot
Robert Griesemer [Mon, 11 May 2009 16:47:53 +0000 (09:47 -0700)]
weekly snapshot
- godoc updated to work w/new directory structure

TBR=r
OCL=28624
CL=28624

16 years agocheck for redeclaration of package name
Russ Cox [Fri, 8 May 2009 23:40:55 +0000 (16:40 -0700)]
check for redeclaration of package name

R=r
DELTA=10  (10 added, 0 deleted, 0 changed)
OCL=28585
CL=28591

16 years agogobuild: command printing bug fix
Russ Cox [Fri, 8 May 2009 23:38:42 +0000 (16:38 -0700)]
gobuild: command printing bug fix

R=r
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=28583
CL=28590

16 years agouse exitgroup on linux to exit whole process.
Russ Cox [Fri, 8 May 2009 23:36:46 +0000 (16:36 -0700)]
use exitgroup on linux to exit whole process.

R=r
DELTA=60  (38 added, 19 deleted, 3 changed)
OCL=28589
CL=28589

16 years agoPackage unsafe is undocumented. By installing (but not compiling) this file,
Rob Pike [Fri, 8 May 2009 23:24:55 +0000 (16:24 -0700)]
Package unsafe is undocumented.  By installing (but not compiling) this file,
which contains only declarations, we can have godoc present documentation
for the package.

R=gri,rsc
DELTA=44  (43 added, 0 deleted, 1 changed)
OCL=28555
CL=28588

16 years agoDocument runtime functions.
Rob Pike [Fri, 8 May 2009 22:55:45 +0000 (15:55 -0700)]
Document runtime functions.

R=rsc
DELTA=25  (25 added, 0 deleted, 0 changed)
OCL=28574
CL=28580

16 years ago6g:
Russ Cox [Fri, 8 May 2009 22:40:31 +0000 (15:40 -0700)]
6g:
new type equality restrictions
better handling of renamed packages
"sys" is no longer available to programs

R=ken
OCL=28553
CL=28578

16 years agoimplications of stricter type equality:
Russ Cox [Fri, 8 May 2009 22:40:14 +0000 (15:40 -0700)]
implications of stricter type equality:
if both types are named, they must be
the same type (arising from the same
declaration).

R=r,gri
DELTA=44  (21 added, 4 deleted, 19 changed)
OCL=28436
CL=28577

16 years agofix comment
Russ Cox [Fri, 8 May 2009 22:39:18 +0000 (15:39 -0700)]
fix comment

R=r
DELTA=1  (0 added, 1 deleted, 0 changed)
OCL=28576
CL=28576

16 years agofix build - missing file
Russ Cox [Fri, 8 May 2009 22:29:43 +0000 (15:29 -0700)]
fix build - missing file

TBR=r
OCL=28575
CL=28575

16 years agomove things out of sys into os and runtime
Russ Cox [Fri, 8 May 2009 22:21:41 +0000 (15:21 -0700)]
move things out of sys into os and runtime

R=r
OCL=28569
CL=28573

16 years agoMove sys.Reflect and sys.Unreflect into unsafe.
Rob Pike [Fri, 8 May 2009 21:57:56 +0000 (14:57 -0700)]
Move sys.Reflect and sys.Unreflect into unsafe.

R=rsc
DELTA=19  (4 added, 5 deleted, 10 changed)
OCL=28563
CL=28566

16 years agoeqtype(t1, t2, 0) => eqtype(t1, t2)
Russ Cox [Fri, 8 May 2009 21:40:38 +0000 (14:40 -0700)]
eqtype(t1, t2, 0) => eqtype(t1, t2)

R=ken
OCL=28559
CL=28562

16 years agothrow away os._Error.
Russ Cox [Fri, 8 May 2009 21:40:20 +0000 (14:40 -0700)]
throw away os._Error.
make some error types in a few packages

R=r
DELTA=110  (25 added, 46 deleted, 39 changed)
OCL=28382
CL=28561

16 years agoembeddability: change bufio.BufRead to bufio.Reader etc.
Rob Pike [Fri, 8 May 2009 18:52:39 +0000 (11:52 -0700)]
embeddability: change bufio.BufRead to bufio.Reader etc.

R=rsc
DELTA=112  (0 added, 4 deleted, 108 changed)
OCL=28537
CL=28543

16 years agoName change to improve embeddability:
Rob Pike [Fri, 8 May 2009 18:22:57 +0000 (11:22 -0700)]
Name change to improve embeddability:
io.Read->io.Reader
io.Write,Close,etc.->io.Writer,Closer etc.

R=rsc
DELTA=190  (0 added, 0 deleted, 190 changed)
OCL=28525
CL=28535

16 years agoupdate tutorial text to refer to io.Reader etc.
Rob Pike [Fri, 8 May 2009 18:21:25 +0000 (11:21 -0700)]
update tutorial text to refer to io.Reader etc.

R=rsc
DELTA=15  (0 added, 5 deleted, 10 changed)
OCL=28526
CL=28532

16 years agoupdate spec to io.Writer
Rob Pike [Fri, 8 May 2009 18:21:20 +0000 (11:21 -0700)]
update spec to io.Writer

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=28528
CL=28531

16 years ago- document string([]int{...}) conversion
Robert Griesemer [Fri, 8 May 2009 17:25:06 +0000 (10:25 -0700)]
- document string([]int{...}) conversion
- cleanup of open issues section

R=r
DELTA=31  (12 added, 9 deleted, 10 changed)
OCL=28450
CL=28513

16 years agominor cleanup, not required by compiler changes
Russ Cox [Fri, 8 May 2009 17:14:55 +0000 (10:14 -0700)]
minor cleanup, not required by compiler changes

R=r
DELTA=14  (1 added, 4 deleted, 9 changed)
OCL=28447
CL=28509

16 years agoconversion bug
Robert Griesemer [Fri, 8 May 2009 16:58:25 +0000 (09:58 -0700)]
conversion bug

R=r
DELTA=24  (24 added, 0 deleted, 0 changed)
OCL=28451
CL=28508

16 years agoanother attempt at avoiding IPv6 when it's not supported.
Russ Cox [Fri, 8 May 2009 00:36:29 +0000 (17:36 -0700)]
another attempt at avoiding IPv6 when it's not supported.

dsymonds confirms that this one works.

R=r
DELTA=50  (23 added, 17 deleted, 10 changed)
OCL=28433
CL=28444

16 years agomake go/src/lib/hash one directory per package
Rob Pike [Fri, 8 May 2009 00:15:24 +0000 (17:15 -0700)]
make go/src/lib/hash one directory per package
(slipped through the cracks last time)

R=rsc
DELTA=2436  (1337 added, 1090 deleted, 9 changed)
OCL=28427
CL=28443

16 years agoDefine Len() for JSON Map.
David Symonds [Thu, 7 May 2009 22:09:32 +0000 (15:09 -0700)]
Define Len() for JSON Map.

R=rsc
APPROVED=rsc
DELTA=6  (5 added, 0 deleted, 1 changed)
OCL=28398
CL=28430

16 years agotest of struct with embedded interface.
Russ Cox [Thu, 7 May 2009 20:43:00 +0000 (13:43 -0700)]
test of struct with embedded interface.
also tests method calls on ptr to interface value.

R=r
DELTA=74  (74 added, 0 deleted, 0 changed)
OCL=28419
CL=28424

16 years agoif a struct s contains an anonymous interface value
Russ Cox [Thu, 7 May 2009 20:42:47 +0000 (13:42 -0700)]
if a struct s contains an anonymous interface value
with method m, s.m() is ok and m now shows up
in s's method set for interface runtime.

see http://cl/28419-p2 for new test interface10.go.

R=ken
OCL=28420
CL=28423

16 years agonext step for 6.out on Borg: fix and test
Russ Cox [Thu, 7 May 2009 17:31:48 +0000 (10:31 -0700)]
next step for 6.out on Borg: fix and test
net code on IPv4-only machines.

R=r
DELTA=27  (25 added, 0 deleted, 2 changed)
OCL=28404
CL=28411

16 years ago6g: error messages
Russ Cox [Thu, 7 May 2009 17:30:22 +0000 (10:30 -0700)]
6g: error messages

part 2; missing files

R=ken
OCL=28408
CL=28410

16 years ago6g: error messages
Russ Cox [Thu, 7 May 2009 17:29:35 +0000 (10:29 -0700)]
6g: error messages

replace "shape error across CALL" with more information.

x.go:7: not enough arguments to CALL
a int, b int
int
x.go:10: assignment count mismatch: 3 = 2
x.go:12: too many arguments to RETURN
[no arguments expected]
int, int, int

also leave type alone after conversion failure,
for later errors:

bug049.go:6: cannot convert nil constant to string
bug049.go:6: illegal types for operand: EQ
string
nil # this used to be blank

R=ken
OCL=28405
CL=28407

16 years ago6g: simplify trampoline by postponing load.
Russ Cox [Thu, 7 May 2009 00:06:06 +0000 (17:06 -0700)]
6g: simplify trampoline by postponing load.

TEXT tramp
MOVQ 8(SP), AX
ADDQ $40, AX
MOVQ AX, 8(SP)
JMP oldfunc

is now

TEXT tramp
ADDQ $40, 8(SP)
JMP oldfunc

and if s/40/0/, then it simplifies to

TEXT tramp
JMP oldfunc

(the tramp is still needed to satisfy
symbol references from other object files)

R=ken
OCL=28377
CL=28381

16 years agointerface method tests
Russ Cox [Thu, 7 May 2009 00:05:55 +0000 (17:05 -0700)]
interface method tests

R=r
DELTA=134  (134 added, 0 deleted, 0 changed)
OCL=28373
CL=28380

16 years agofix a few type errors, make ErrorString a value
Russ Cox [Thu, 7 May 2009 00:05:46 +0000 (17:05 -0700)]
fix a few type errors, make ErrorString a value

will submit with fixed compiler

R=r
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=28371
CL=28379

16 years ago6g: new interface rules (code got simpler!)
Russ Cox [Thu, 7 May 2009 00:05:35 +0000 (17:05 -0700)]
6g: new interface rules (code got simpler!)

R=ken
OCL=28374
CL=28378

16 years agosemi-weekly snapshot:
Robert Griesemer [Wed, 6 May 2009 23:28:18 +0000 (16:28 -0700)]
semi-weekly snapshot:
- format-driven pretty printing now handles all of Go code
- better error handling

R=r
OCL=28370
CL=28372

16 years agomakefile fixes
Russ Cox [Wed, 6 May 2009 23:16:55 +0000 (16:16 -0700)]
makefile fixes

R=r
OCL=28369
CL=28369

16 years ago6g: generate string data as individual symbols,
Russ Cox [Wed, 6 May 2009 20:47:40 +0000 (13:47 -0700)]
6g: generate string data as individual symbols,
so that 6l can discard strings used by dead code.
also, for short strings, generate DUPOK global
symbols so that references to, say, "%s: %s" in
multiple files result in only a single symbol.

R=ken
OCL=28361
CL=28361

16 years agoerror handling had a bug in execute: the error channel was being shared.
Rob Pike [Wed, 6 May 2009 20:42:59 +0000 (13:42 -0700)]
error handling had a bug in execute: the error channel was being shared.
fix that and clean up state handling a little.

R=rsc
DELTA=44  (18 added, 8 deleted, 18 changed)
OCL=28359
CL=28359

16 years agoadded a distinguishing string to the error prints
Ken Thompson [Wed, 6 May 2009 19:43:09 +0000 (12:43 -0700)]
added a distinguishing string to the error prints

R=r
OCL=28321
CL=28357

16 years agoadd missing Makefile to repair build
Rob Pike [Wed, 6 May 2009 04:31:22 +0000 (21:31 -0700)]
add missing Makefile to repair build

TBR=gri
OCL=28320
CL=28320

16 years agosigns on div and mod
Ken Thompson [Wed, 6 May 2009 04:19:58 +0000 (21:19 -0700)]
signs on div and mod

R=r
OCL=28319
CL=28319

16 years agonew dir structure for lib/go
Robert Griesemer [Wed, 6 May 2009 01:38:45 +0000 (18:38 -0700)]
new dir structure for lib/go

R=r
DELTA=9298  (4760 added, 4536 deleted, 2 changed)
OCL=28317
CL=28317

16 years ago6g bug: was dropping assignment of nil to globals
Russ Cox [Wed, 6 May 2009 00:33:51 +0000 (17:33 -0700)]
6g bug: was dropping assignment of nil to globals

R=ken
OCL=28314
CL=28314

16 years agomv container/vector down one level for new rules.
Rob Pike [Wed, 6 May 2009 00:24:01 +0000 (17:24 -0700)]
mv container/vector down one level for new rules.
simplify run.bash now that lib has make test that recurs.

R=rsc
DELTA=1179  (578 added, 596 deleted, 5 changed)
OCL=28313
CL=28313

16 years agowrong type used for dynamic type test
Robert Griesemer [Wed, 6 May 2009 00:05:58 +0000 (17:05 -0700)]
wrong type used for dynamic type test

R=r
DELTA=40  (40 added, 0 deleted, 0 changed)
OCL=28308
CL=28311

16 years agodirectory-per-package step 1: move files from lib/X.go to lib/X/X.go
Rob Pike [Wed, 6 May 2009 00:05:39 +0000 (17:05 -0700)]
directory-per-package step 1: move files from lib/X.go to lib/X/X.go
no substantive changes except:
- new Makefiles, all auto-generated
- go/src/lib/Makefile has been extensively edited

R=rsc
OCL=28310
CL=28310

16 years ago6g tweaks
Russ Cox [Tue, 5 May 2009 23:53:46 +0000 (16:53 -0700)]
6g tweaks
* byteastring is no longer used
* do not generate ODCL, OAS for globals
  (wasn't generating any code but might
  save one or two init functions)
* do not call self from Init function

R=ken
OCL=28309
CL=28309

16 years agobug117 is fixed in 6g; now an errchk
Russ Cox [Tue, 5 May 2009 20:41:46 +0000 (13:41 -0700)]
bug117 is fixed in 6g; now an errchk

R=r
DELTA=42  (20 added, 22 deleted, 0 changed)
OCL=28295
CL=28295

16 years ago6l: eliminate dead code, not just the symbols
Russ Cox [Tue, 5 May 2009 19:43:00 +0000 (12:43 -0700)]
6l: eliminate dead code, not just the symbols

editing the firstp list was ineffective,
because follow rebuilds it from the textp list.

the symbols for dead code were being dropped
from the binary but the code was all still there.

text for fmt.Printf("hello, world\n") drops
from 143945 to 128650.

R=r,ken
DELTA=22  (20 added, 0 deleted, 2 changed)
OCL=28255
CL=28290

16 years agobetter io.ByteBuffer implementation:
Robert Griesemer [Tue, 5 May 2009 19:00:52 +0000 (12:00 -0700)]
better io.ByteBuffer implementation:
- more light-weight
- better buffer management
- added test cases

R=r
DELTA=227  (167 added, 35 deleted, 25 changed)
OCL=28252
CL=28289

16 years agofmt: dead code and data
Russ Cox [Tue, 5 May 2009 18:24:03 +0000 (11:24 -0700)]
fmt: dead code and data

R=r
DELTA=10  (0 added, 10 deleted, 0 changed)
OCL=28258
CL=28287

16 years agoupdate convlit.go to current spec
Russ Cox [Tue, 5 May 2009 18:23:39 +0000 (11:23 -0700)]
update convlit.go to current spec

R=r
DELTA=17  (2 added, 9 deleted, 6 changed)
OCL=28286
CL=28286

16 years agostring slicing is efficient so remove base and bounds arguments from RuneCountInString
Rob Pike [Tue, 5 May 2009 05:12:13 +0000 (22:12 -0700)]
string slicing is efficient so remove base and bounds arguments from RuneCountInString

R=rsc
DELTA=6  (1 added, 0 deleted, 5 changed)
OCL=28242
CL=28256

16 years agomore code optimization
Ken Thompson [Tue, 5 May 2009 04:48:46 +0000 (21:48 -0700)]
more code optimization
1. dont clear external and heap objects
2. propagate constant assignment

R=r
OCL=28254
CL=28254

16 years agoRemake exvar package to be more Go-ish.
David Symonds [Mon, 4 May 2009 22:14:22 +0000 (15:14 -0700)]
Remake exvar package to be more Go-ish.

It now exports a Var interface (anyone can export their own custom var types now), so users need to create and manage their own vars and mark them as exportable via the Publish function. They are exposed via /debug/vars.

R=r,rsc
APPROVED=r
DELTA=605  (314 added, 186 deleted, 105 changed)
OCL=28143
CL=28239

16 years ago- remove wrong fix
Robert Griesemer [Mon, 4 May 2009 22:04:32 +0000 (15:04 -0700)]
- remove wrong fix
  (this corresponds to the currently running version of godoc)

R=r
DELTA=11  (0 added, 10 deleted, 1 changed)
OCL=28238
CL=28238

16 years agomore morestack fiddling
Ken Thompson [Mon, 4 May 2009 02:09:14 +0000 (19:09 -0700)]
more morestack fiddling

R=r
OCL=28204
CL=28204

16 years agomore code fiddling
Ken Thompson [Sun, 3 May 2009 22:17:03 +0000 (15:17 -0700)]
more code fiddling

R=r
OCL=28201
CL=28201

16 years agoFix mismatched quote in a comment.
David Symonds [Sun, 3 May 2009 00:59:42 +0000 (17:59 -0700)]
Fix mismatched quote in a comment.

R=gri
APPROVED=gri
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=28184
CL=28192

16 years agoVerify that a send on a sychronous channel waits until the
Ian Lance Taylor [Sat, 2 May 2009 19:47:33 +0000 (12:47 -0700)]
Verify that a send on a sychronous channel waits until the
value has been received.  This failed with gccgo before
today.

R=ken,r
DELTA=18  (18 added, 0 deleted, 0 changed)
OCL=28185
CL=28190

16 years agoweekly snapshot:
Robert Griesemer [Sat, 2 May 2009 02:32:41 +0000 (19:32 -0700)]
weekly snapshot:
- template-driven ast printing now can successfully
  reproduce entire Go programs

next steps:
- fine-tuning of output
- print interspersed comments
- cleanup and testing against all Go programs
- replace astprinter

R=r
OCL=28181
CL=28181

16 years agocode optmization
Ken Thompson [Sat, 2 May 2009 01:55:16 +0000 (18:55 -0700)]
code optmization
drip init function if it doesnt do anything

R=r
OCL=28180
CL=28180

16 years agocode improvement
Ken Thompson [Sat, 2 May 2009 01:07:33 +0000 (18:07 -0700)]
code improvement
better calling of morestack

R=r
OCL=28179
CL=28179

16 years agoclarifying ambiguity of evaluation order
Robert Griesemer [Sat, 2 May 2009 00:00:16 +0000 (17:00 -0700)]
clarifying ambiguity of evaluation order

R=r
DELTA=16  (0 added, 3 deleted, 13 changed)
OCL=28133
CL=28178

16 years agoCopied 8g/6g into 5g. Used sharp tools to coax a .5 file out
Kai Backman [Fri, 1 May 2009 20:21:53 +0000 (13:21 -0700)]
Copied 8g/6g into 5g. Used sharp tools to coax a .5 file out
of 5g. 5l balks at the output and running 5g with -S shows
the true extent of the disaster. Still, better than
yesterday. Maybe.

Tested on the canonical:

package main
func main() {
}

R=rsc
APPROVED=rsc
DELTA=4182  (4181 added, 0 deleted, 1 changed)
OCL=27601
CL=28175

16 years ago- incorporated feedback per rsc
Robert Griesemer [Thu, 30 Apr 2009 21:43:06 +0000 (14:43 -0700)]
- incorporated feedback per rsc
- fixed a bug and added corresponding test case

R=rsc
DELTA=114  (18 added, 29 deleted, 67 changed)
OCL=28114
CL=28128

16 years agobug146: array/slice conversion before I left missed conversions
Russ Cox [Thu, 30 Apr 2009 20:49:58 +0000 (13:49 -0700)]
bug146: array/slice conversion before I left missed conversions

R=ken
OCL=28120
CL=28124

16 years agoauto-detect whether to use IPv6 or IPv4 kernel interface
Russ Cox [Thu, 30 Apr 2009 20:41:36 +0000 (13:41 -0700)]
auto-detect whether to use IPv6 or IPv4 kernel interface

R=r
DELTA=12  (9 added, 0 deleted, 3 changed)
OCL=28096
CL=28118

16 years agobetter error messages, not that anyone ever sees them
Russ Cox [Thu, 30 Apr 2009 20:40:55 +0000 (13:40 -0700)]
better error messages, not that anyone ever sees them

R=r
DELTA=30  (9 added, 1 deleted, 20 changed)
OCL=28104
CL=28117

16 years agochange 6l library directory flag to -L,
Russ Cox [Thu, 30 Apr 2009 20:32:39 +0000 (13:32 -0700)]
change 6l library directory flag to -L,
to match traditional c linkers.

R=r
DELTA=42  (8 added, 12 deleted, 22 changed)
OCL=28101
CL=28115

16 years agodon't print binary data. add TODO for better errors.
Rob Pike [Thu, 30 Apr 2009 06:33:48 +0000 (23:33 -0700)]
don't print binary data. add TODO for better errors.

TBR=rsc
DELTA=2  (1 added, 0 deleted, 1 changed)
OCL=28066
CL=28070

16 years agorename variables for clarity.
Rob Pike [Thu, 30 Apr 2009 05:16:53 +0000 (22:16 -0700)]
rename variables for clarity.
add test for structure alignment/offset.

R=gri
DELTA=49  (35 added, 0 deleted, 14 changed)
OCL=28068
CL=28068

16 years agoConversion from array to slices should work like assignment:
Ian Lance Taylor [Thu, 30 Apr 2009 03:15:59 +0000 (20:15 -0700)]
Conversion from array to slices should work like assignment:
you should be able to convert a pointer to an array to a
slice, you should not be able to convert an array to a slice.
Currently 6g works the other way around.

R=ken,rsc
DELTA=17  (17 added, 0 deleted, 0 changed)
OCL=28033
CL=28067

16 years agodon't set CLONE_PTRACE -- it confuses strace
Russ Cox [Thu, 30 Apr 2009 01:54:44 +0000 (18:54 -0700)]
don't set CLONE_PTRACE -- it confuses strace

R=r
DELTA=4  (3 added, 1 deleted, 0 changed)
OCL=28063
CL=28065

16 years agoif the process stops with SIGTRAP (breakpoint),
Russ Cox [Thu, 30 Apr 2009 01:53:01 +0000 (18:53 -0700)]
if the process stops with SIGTRAP (breakpoint),
don't relay the signal when restarting it.

R=r
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=28060
CL=28064

16 years agoBug in reflect found by gri. Structs in 6g have a minimum alignment.
Rob Pike [Thu, 30 Apr 2009 01:51:12 +0000 (18:51 -0700)]
Bug in reflect found by gri.  Structs in 6g have a minimum alignment.
iant: will this be ok in gccgo?

R=rsc
DELTA=9  (8 added, 0 deleted, 1 changed)
OCL=28059
CL=28062

16 years agodrop unused result name - trivial change.
Rob Pike [Thu, 30 Apr 2009 01:20:09 +0000 (18:20 -0700)]
drop unused result name - trivial change.

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=28056
CL=28058

16 years agoexit with error status EPIPE if
Russ Cox [Thu, 30 Apr 2009 01:18:42 +0000 (18:18 -0700)]
exit with error status EPIPE if
one fd gets too many EPIPEs in a row
during write.

R=r
DELTA=10  (9 added, 0 deleted, 1 changed)
OCL=28057
CL=28057

16 years agoIgnore SIGPIPE such that write returns EPIPE.
Brendan O'Dea [Thu, 30 Apr 2009 00:36:58 +0000 (17:36 -0700)]
Ignore SIGPIPE such that write returns EPIPE.

Currently a http server will be killed on receipt of SIGPIPE
if a client closes a socket which the server is trying to
write to.

R=rsc
APPROVED=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=27959
CL=28055

16 years agoFix channels used by WaitWrite (http server hangs on writes
Brendan O'Dea [Thu, 30 Apr 2009 00:36:37 +0000 (17:36 -0700)]
Fix channels used by WaitWrite (http server hangs on writes
which hit EAGAIN).

R=rsc
APPROVED=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=27955
CL=28054

16 years agotypo in spec
Robert Griesemer [Wed, 29 Apr 2009 18:45:08 +0000 (11:45 -0700)]
typo in spec

R=tgs
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=28032
CL=28032

16 years agoSome adjustments to godoc:
Robert Griesemer [Wed, 29 Apr 2009 02:11:37 +0000 (19:11 -0700)]
Some adjustments to godoc:
- work-around for incorrect import path
- added tmpl root in order to run against a goroot w/o templates
- clarifications

Daily snapshot of syntax-driven formatter. Some progress.

Updated gccgo Makefile.

TBR=r
OCL=28004
CL=28004

16 years agoallow "defer close(chan)"
Ken Thompson [Wed, 29 Apr 2009 00:20:18 +0000 (17:20 -0700)]
allow "defer close(chan)"
bug found by anton

R=r
OCL=28001
CL=28001

16 years agobug 139
Ken Thompson [Tue, 28 Apr 2009 20:52:56 +0000 (13:52 -0700)]
bug 139

R=r
OCL=27987
CL=27987

16 years agobug131 has been fixed with no change
Ken Thompson [Tue, 28 Apr 2009 20:04:01 +0000 (13:04 -0700)]
bug131 has been fixed with no change

R=r
OCL=27980
CL=27980

16 years agobug 145
Ken Thompson [Tue, 28 Apr 2009 19:28:31 +0000 (12:28 -0700)]
bug 145

R=r
OCL=27979
CL=27979

16 years agofix for broken build
Robert Griesemer [Tue, 28 Apr 2009 16:56:33 +0000 (09:56 -0700)]
fix for broken build

TBR=r
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=27969
CL=27969

16 years agoRecognize gcco error messages.
Ian Lance Taylor [Tue, 28 Apr 2009 14:16:03 +0000 (07:16 -0700)]
Recognize gcco error messages.

declbad.go:15:3: error: variables redeclared but no variable is new
declbad.go:20:3: error: redefinition of 'f'
declbad.go:19:3: note: previous definition of 'f' was here
declbad.go:25:3: error: redefinition of 'i'
declbad.go:24:3: note: previous definition of 'i' was here
declbad.go:30:3: error: variables redeclared but no variable is new
declbad.go:35:3: error: redefinition of 'i'
declbad.go:34:3: note: previous definition of 'i' was here
declbad.go:40:3: error: variables redeclared but no variable is new
declbad.go:45:3: error: variables redeclared but no variable is new

R=r
DELTA=10  (0 added, 0 deleted, 10 changed)
OCL=27934
CL=27957

16 years agoAdd a HTTP handler to the exvar package.
David Symonds [Tue, 28 Apr 2009 11:26:07 +0000 (04:26 -0700)]
Add a HTTP handler to the exvar package.

R=r
APPROVED=r
DELTA=20  (11 added, 6 deleted, 3 changed)
OCL=27782
CL=27950

16 years agoAdd more dependencies for lib/go.
David Symonds [Tue, 28 Apr 2009 04:52:30 +0000 (21:52 -0700)]
Add more dependencies for lib/go.
This makes "make nuke install" work again.

R=r
APPROVED=r
DELTA=2  (1 added, 0 deleted, 1 changed)
OCL=27929
CL=27932

16 years agoimplement .alternates
Rob Pike [Tue, 28 Apr 2009 04:04:46 +0000 (21:04 -0700)]
implement .alternates

R=rsc
OCL=27928
CL=27928

16 years agoFix the chunked encoding - terminate the chunk with CRLF.
Stephen Ma [Mon, 27 Apr 2009 07:38:04 +0000 (00:38 -0700)]
Fix the chunked encoding - terminate the chunk with CRLF.

R=rsc
APPROVED=r
DELTA=11  (10 added, 0 deleted, 1 changed)
OCL=27723
CL=27879

16 years agoAdd string-valued variables to exvar.
David Symonds [Mon, 27 Apr 2009 03:57:01 +0000 (20:57 -0700)]
Add string-valued variables to exvar.

R=r
APPROVED=r
DELTA=62  (58 added, 1 deleted, 3 changed)
OCL=27756
CL=27877

16 years agoflags.Usage() calls fmt.Fprintf() with incorrect args
Brendan O'Dea [Mon, 27 Apr 2009 01:36:17 +0000 (18:36 -0700)]
flags.Usage() calls fmt.Fprintf() with incorrect args

R=r
APPROVED=r
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=27777
CL=27876