]> Cypherpunks repositories - gostls13.git/log
gostls13.git
15 years agoshuffle some Linux system calls around for 386
Russ Cox [Wed, 17 Jun 2009 22:16:06 +0000 (15:16 -0700)]
shuffle some Linux system calls around for 386

R=r
DELTA=37  (17 added, 15 deleted, 5 changed)
OCL=30428
CL=30444

15 years agoupdate 386 to new runtime (CL 30381)
Russ Cox [Wed, 17 Jun 2009 22:15:55 +0000 (15:15 -0700)]
update 386 to new runtime (CL 30381)

R=r
DELTA=298  (119 added, 81 deleted, 98 changed)
OCL=30427
CL=30443

15 years agoruntime: stack growth adjustments, cleanup
Russ Cox [Wed, 17 Jun 2009 22:12:16 +0000 (15:12 -0700)]
runtime: stack growth adjustments, cleanup
* keep coherent SP/PC in gobuf
  (i.e., SP that would be in use at that PC)
* gogocall replaces setspgoto,
  should work better in presence of link registers
* delete unused system calls

only amd64; 386 is now broken

R=r
DELTA=548  (183 added, 183 deleted, 182 changed)
OCL=30381
CL=30442

15 years agofix for incorrect type switch clause:
Robert Griesemer [Wed, 17 Jun 2009 21:31:33 +0000 (14:31 -0700)]
fix for incorrect type switch clause:
- nil is not a keyword
- type -> Type

R=rsc
DELTA=10  (4 added, 0 deleted, 6 changed)
OCL=30433
CL=30435

15 years agodo use $$ in path names, so that multiple
Russ Cox [Wed, 17 Jun 2009 20:21:01 +0000 (13:21 -0700)]
do use $$ in path names, so that multiple
runs on the same machine don't collide.

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

15 years ago`` strings should not accept newlines as characters
Robert Griesemer [Wed, 17 Jun 2009 18:44:51 +0000 (11:44 -0700)]
`` strings should not accept newlines as characters

R=r
DELTA=17  (17 added, 0 deleted, 0 changed)
OCL=30417
CL=30422

15 years ago386 system call fixes:
Russ Cox [Wed, 17 Jun 2009 00:17:02 +0000 (17:17 -0700)]
386 system call fixes:
  * use 64-bit file system calls (Linux, Darwin)
  * use 32-bit [sic] uid/gid calls (Linux)
  * fix sockets on Linux

Darwin/386 works again.

Linux/386 is better but must never have worked;
there are still bugs surrounding the creation of new
threads in the runtime package.

R=austin
DELTA=1332  (673 added, 614 deleted, 45 changed)
OCL=30327
CL=30380

15 years agofix nesting level for parameters
Robert Griesemer [Tue, 16 Jun 2009 21:39:19 +0000 (14:39 -0700)]
fix nesting level for parameters

R=rsc
DELTA=8  (4 added, 2 deleted, 2 changed)
OCL=30365
CL=30368

15 years agoclean gofmt
Rob Pike [Tue, 16 Jun 2009 21:03:13 +0000 (14:03 -0700)]
clean gofmt

R=rsc
OCL=30363
CL=30363

15 years agoadd godoc to clean.bash
Rob Pike [Tue, 16 Jun 2009 20:57:08 +0000 (13:57 -0700)]
add godoc to clean.bash

R=rsc
OCL=30361
CL=30361

15 years agodelete dreg comment
Rob Pike [Tue, 16 Jun 2009 20:49:40 +0000 (13:49 -0700)]
delete dreg comment

R=rsc
OCL=30359
CL=30359

15 years ago- some fine-tuning of godoc templates per r's suggestion
Robert Griesemer [Tue, 16 Jun 2009 20:44:15 +0000 (13:44 -0700)]
- some fine-tuning of godoc templates per r's suggestion
- removed gratuitous newline in go/printer

R=r
DELTA=15  (2 added, 13 deleted, 0 changed)
OCL=30358
CL=30358

15 years agoURL should have an empty Scheme if there is an invalid character (i.e.
Jacob Baskin [Tue, 16 Jun 2009 20:23:42 +0000 (13:23 -0700)]
URL should have an empty Scheme if there is an invalid character (i.e.
not [a-zA-Z0-9+-.]) before there is a ":".

This is particularly helpful in the erroneous-but-relatively-common
case of relative URLs containing an unescaped colon in the query
string--see the added test for an example.

R=rsc
APPROVED=rsc
DELTA=15  (15 added, 0 deleted, 0 changed)
OCL=30354
CL=30356

15 years ago- install gofmt in src/cmd/gofmt
Robert Griesemer [Tue, 16 Jun 2009 19:03:32 +0000 (12:03 -0700)]
- install gofmt in src/cmd/gofmt
- remove some left-over files

R=rsc
DELTA=1465  (281 added, 1181 deleted, 3 changed)
OCL=30350
CL=30353

15 years agograb bag of changes aimed at getting stack splitting to work:
Kai Backman [Tue, 16 Jun 2009 18:25:58 +0000 (11:25 -0700)]
grab bag of changes aimed at getting stack splitting to work:
- morestack support for 5l and arm runtime
- argsize support in 5c, 5l, ar and nm. assembly code from 5a
  will break in interesting ways unless NOSPLIT is specified
- explicit cond execution constants
- fix 5l output to use %d instead of %ld so that negative
  values show.
- added a lot of code to arm/asm.s. runtime entry code almost
  working currently aborts at gogo not implemented

R=rsc
APPROVED=rsc
DELTA=305  (125 added, 29 deleted, 151 changed)
OCL=30246
CL=30347

15 years agofix build
Robert Griesemer [Tue, 16 Jun 2009 16:39:57 +0000 (09:39 -0700)]
fix build

R=rsc
DELTA=5  (0 added, 1 deleted, 4 changed)
OCL=30343
CL=30343

15 years agoforgot to adjust tmproot
Robert Griesemer [Tue, 16 Jun 2009 16:30:16 +0000 (09:30 -0700)]
forgot to adjust tmproot

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

15 years agomove godoc to src/cmd/godoc
Robert Griesemer [Tue, 16 Jun 2009 16:14:06 +0000 (09:14 -0700)]
move godoc to src/cmd/godoc

R=rsc
DELTA=945  (944 added, 0 deleted, 1 changed)
OCL=30315
CL=30341

15 years agofix another gc bug, one that i have only imagined,
Russ Cox [Tue, 16 Jun 2009 04:31:56 +0000 (21:31 -0700)]
fix another gc bug, one that i have only imagined,
not observed: do not use malloc to allocate stacks
during garbage collection, because it would make the
malloc data structures change underfoot.

R=r
DELTA=6  (3 added, 0 deleted, 3 changed)
OCL=30323
CL=30326

15 years agofix garbage collection race: save stack trace
Russ Cox [Tue, 16 Jun 2009 04:30:53 +0000 (21:30 -0700)]
fix garbage collection race: save stack trace
when changing process state to Gsyscall, not after.

R=r
DELTA=8  (4 added, 3 deleted, 1 changed)
OCL=30320
CL=30325

15 years agobug163: ideographs are not letters
Rob Pike [Tue, 16 Jun 2009 04:13:28 +0000 (21:13 -0700)]
bug163: ideographs are not letters
also update golden.out from bug162

R=rsc
DELTA=16  (16 added, 0 deleted, 0 changed)
OCL=30298
CL=30324

15 years agob/1909731
Russ Cox [Tue, 16 Jun 2009 03:15:59 +0000 (20:15 -0700)]
b/1909731

package main
func f(a *c.b) {}
func main() {}

BUG=1909731
R=ken
OCL=30322
CL=30322

15 years agoFix a proto encoding crasher whereby a nil in a repeated group field would crash...
David Symonds [Tue, 16 Jun 2009 01:35:04 +0000 (18:35 -0700)]
Fix a proto encoding crasher whereby a nil in a repeated group field would crash the server.

Also fix the reflect bug that was exposed by this bug.

R=r
APPROVED=rsc
DELTA=162  (103 added, 32 deleted, 27 changed)
OCL=30125
CL=30319

15 years agogofmt (final resting place TBD):
Robert Griesemer [Mon, 15 Jun 2009 23:23:16 +0000 (16:23 -0700)]
gofmt (final resting place TBD):
- replacement for pretty; app to format a single .go file

printer.go (pkg/go/printer):
- replacement for astprinter.go; implements AST printing
- also replaces pkg/go/ast/format.go for now

cleanups:
- removed/saved away old code

R=r,rsc,iant
DELTA=2833  (1183 added, 1628 deleted, 22 changed)
OCL=30226
CL=30306

15 years agofixed typo (slipped in with previous submit)
Robert Griesemer [Mon, 15 Jun 2009 22:47:15 +0000 (15:47 -0700)]
fixed typo (slipped in with previous submit)

TBR=rsc
OCL=30300
CL=30300

15 years agoSupport for line comments trailing a field or declaration:
Robert Griesemer [Mon, 15 Jun 2009 22:43:11 +0000 (15:43 -0700)]
Support for line comments trailing a field or declaration:
- ast: added extra fields
- parser: extended comment parsing to capture potential trailing comments

Cleanups:
- parser: more documentation, changed various identifiers from _-style to camelCase

R=r,rsc
DELTA=214  (84 added, 13 deleted, 117 changed)
OCL=30259
CL=30299

15 years agoremoved bogus if-statement
Robert Griesemer [Fri, 12 Jun 2009 22:17:39 +0000 (15:17 -0700)]
removed bogus if-statement

R=iant
DELTA=3  (0 added, 3 deleted, 0 changed)
OCL=30251
CL=30251

15 years agoSwitch http client_test to use google.com/robots.txt to avoid redirect loop.
David Symonds [Thu, 11 Jun 2009 22:55:03 +0000 (15:55 -0700)]
Switch http client_test to use google.com/robots.txt to avoid redirect loop.

www.google.com seems to be redirecting requests in an infinite loop. I haven't tracked down whether it's their code or this code that is causing it. This is just a quick fix so that this test passes.

APPROVED=r
DELTA=4  (0 added, 0 deleted, 4 changed)
OCL=30178
CL=30210

15 years agoAdd support for the basic extension done by Schilling's star.
David Symonds [Thu, 11 Jun 2009 04:32:36 +0000 (21:32 -0700)]
Add support for the basic extension done by Schilling's star.
Compute checksums in both ways (unsigned and signed).

R=rsc
APPROVED=rsc
DELTA=188  (145 added, 21 deleted, 22 changed)
OCL=30126
CL=30179

15 years ago- parser bug: return keyword may be followed by case or default keyword as well
Robert Griesemer [Wed, 10 Jun 2009 22:40:19 +0000 (15:40 -0700)]
- parser bug: return keyword may be followed by case or default keyword as well
- fixed unrelated typo

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=30175
CL=30175

15 years agoAdding a batch of missing system calls.
Kai Backman [Wed, 10 Jun 2009 18:53:07 +0000 (11:53 -0700)]
Adding a batch of missing system calls.

R=rsc
APPROVED=rsc
DELTA=1329  (1264 added, 1 deleted, 64 changed)
OCL=30040
CL=30158

15 years agoAdded ld/go.c functionality into 5l, primarily dead code
Kai Backman [Wed, 10 Jun 2009 03:51:53 +0000 (20:51 -0700)]
Added ld/go.c functionality into 5l, primarily dead code
removal and typesigs and strings.

Also added new header support to 5c/5a/5l.

R=rsc
APPROVED=rsc
DELTA=98  (66 added, 10 deleted, 22 changed)
OCL=30103
CL=30123

15 years agomake 5g use 1 byte per binary asm statement.
Kai Backman [Tue, 9 Jun 2009 18:34:35 +0000 (11:34 -0700)]
make 5g use 1 byte per binary asm statement.

R=rsc
APPROVED=rsc
DELTA=4  (0 added, 4 deleted, 0 changed)
OCL=30110
CL=30112

15 years agoBasic HTTP client.
Steve Newman [Tue, 9 Jun 2009 17:58:58 +0000 (10:58 -0700)]
Basic HTTP client.

R=rsc
APPROVED=rsc
DELTA=392  (386 added, 2 deleted, 4 changed)
OCL=29963
CL=30107

15 years agobring over deps.bash
Russ Cox [Tue, 9 Jun 2009 17:47:13 +0000 (10:47 -0700)]
bring over deps.bash

TBR=r
OCL=30106
CL=30106

15 years agomv src/lib to src/pkg
Rob Pike [Tue, 9 Jun 2009 16:53:44 +0000 (09:53 -0700)]
mv src/lib to src/pkg
tests: all.bash passes, gobuild still works, godoc still works.

R=rsc
OCL=30096
CL=30102

15 years agobug: pointer arithmetic involving large offsets
Russ Cox [Tue, 9 Jun 2009 16:45:30 +0000 (09:45 -0700)]
bug: pointer arithmetic involving large offsets
needs to dereference the base pointer to make
sure it catches nil.

R=r,ken
DELTA=21  (21 added, 0 deleted, 0 changed)
OCL=30083
CL=30101

15 years agoA basic tar package.
David Symonds [Tue, 9 Jun 2009 06:22:56 +0000 (23:22 -0700)]
A basic tar package.

R=rsc
APPROVED=rsc
DELTA=371  (370 added, 0 deleted, 1 changed)
OCL=30029
CL=30084

15 years agomksyscall was treating 64-bit systems as 32-bit,
Russ Cox [Tue, 9 Jun 2009 05:10:48 +0000 (22:10 -0700)]
mksyscall was treating 64-bit systems as 32-bit,
so 64-bit args like the offset in Seek were being
mishandled.  fix.

R=dsymonds
DELTA=1269  (645 added, 611 deleted, 13 changed)
OCL=30082
CL=30082

15 years agoinitial morestack support for 5l. still disabled, doesn't work.
Kai Backman [Tue, 9 Jun 2009 03:20:35 +0000 (20:20 -0700)]
initial morestack support for 5l. still disabled, doesn't work.

R=rsc
APPROVED=rsc
DELTA=245  (167 added, 63 deleted, 15 changed)
OCL=30039
CL=30081

15 years agobug fix: literals can be empty
Robert Griesemer [Tue, 9 Jun 2009 02:25:26 +0000 (19:25 -0700)]
bug fix: literals can be empty

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

15 years ago- godoc periodic sync for Linux and Darwin
Robert Griesemer [Tue, 9 Jun 2009 01:09:33 +0000 (18:09 -0700)]
- godoc periodic sync for Linux and Darwin
- support debug/sync (if automatic sync is enabled in the first place)
- removed debug/restart feature

R=rsc
DELTA=97  (37 added, 27 deleted, 33 changed)
OCL=30068
CL=30079

15 years agoadd new function io.ReadAll
Russ Cox [Tue, 9 Jun 2009 00:22:28 +0000 (17:22 -0700)]
add new function io.ReadAll

R=gri
DELTA=14  (6 added, 4 deleted, 4 changed)
OCL=30072
CL=30074

15 years agoPad error text for browsers that are too smart.
Russ Cox [Mon, 8 Jun 2009 21:15:13 +0000 (14:15 -0700)]
Pad error text for browsers that are too smart.

404 page not found

Chrome would ignore this error page if this text weren't here.
Chrome would ignore this error page if this text weren't here.
Chrome would ignore this error page if this text weren't here.
Chrome would ignore this error page if this text weren't here.
Chrome would ignore this error page if this text weren't here.
Chrome would ignore this error page if this text weren't here.
Chrome would ignore this error page if this text weren't here.
Chrome would ignore this error page if this text weren't here.
Chrome would ignore this error page if this text weren't here.
Chrome would ignore this error page if this text weren't here.
Chrome would ignore this error page if this text weren't here.
Chrome would ignore this error page if this text weren't here.
Chrome would ignore this error page if this text weren't here.
Chrome would ignore this error page if this text weren't here.
Chrome would ignore this error page if this text weren't here.
Chrome would ignore this error page if this text weren't here.

R=presotto
APPROVED=p
DELTA=50  (50 added, 0 deleted, 0 changed)
OCL=30056
CL=30061

15 years agoAdd comment.
Russ Cox [Mon, 8 Jun 2009 21:09:04 +0000 (14:09 -0700)]
Add comment.

R=gri
DELTA=2  (2 added, 0 deleted, 0 changed)
OCL=30058
CL=30060

15 years ago- bug fix: no need to add extra '.' when renaming custom formatters
Robert Griesemer [Mon, 8 Jun 2009 21:07:20 +0000 (14:07 -0700)]
- bug fix: no need to add extra '.' when renaming custom formatters
- added corresponding test case

R=rsc
DELTA=10  (7 added, 1 deleted, 2 changed)
OCL=30055
CL=30059

15 years agoadd exec example to http triv.go.
Russ Cox [Mon, 8 Jun 2009 21:03:21 +0000 (14:03 -0700)]
add exec example to http triv.go.
fix darwin interrupt bug (race with SIGCHLD).

R=gri
DELTA=46  (40 added, 0 deleted, 6 changed)
OCL=30052
CL=30057

15 years agoissue http redirect when needed
Robert Griesemer [Mon, 8 Jun 2009 18:49:29 +0000 (11:49 -0700)]
issue http redirect when needed

R=rsc
DELTA=31  (6 added, 8 deleted, 17 changed)
OCL=30046
CL=30051

15 years agoFix Makefile in runtime to create proper /pkg subdir.
Kai Backman [Mon, 8 Jun 2009 17:38:49 +0000 (10:38 -0700)]
Fix Makefile in runtime to create proper /pkg subdir.

R=rsc
APPROVED=rsc
DELTA=2  (1 added, 0 deleted, 1 changed)
OCL=30043
CL=30043

15 years agomove src/runtime -> src/lib/runtime;
Russ Cox [Sun, 7 Jun 2009 05:04:50 +0000 (22:04 -0700)]
move src/runtime -> src/lib/runtime;
hand-edited files.

R=r
DELTA=125  (77 added, 16 deleted, 32 changed)
OCL=30001
CL=30008

15 years agomove src/runtime -> src/lib/runtime;
Russ Cox [Sun, 7 Jun 2009 05:04:39 +0000 (22:04 -0700)]
move src/runtime -> src/lib/runtime;
only automatic g4 mv here.

R=r
OCL=30002
CL=30007

15 years agogzip package
Russ Cox [Sun, 7 Jun 2009 04:56:04 +0000 (21:56 -0700)]
gzip package

R=dsymonds
DELTA=559  (559 added, 0 deleted, 0 changed)
OCL=29993
CL=30005

15 years agoflate package
Russ Cox [Sun, 7 Jun 2009 04:51:47 +0000 (21:51 -0700)]
flate package

R=dsymonds
DELTA=858  (858 added, 0 deleted, 0 changed)
OCL=29992
CL=30004

15 years agoPublish types PipeReader and PipeWriter
Russ Cox [Sun, 7 Jun 2009 04:51:05 +0000 (21:51 -0700)]
Publish types PipeReader and PipeWriter
to expose new CloseWithError methods.

R=r
DELTA=161  (72 added, 15 deleted, 74 changed)
OCL=29980
CL=30003

15 years agoan 8g checkpoint.
Russ Cox [Sun, 7 Jun 2009 02:28:16 +0000 (19:28 -0700)]
an 8g checkpoint.
needs cleanup, optimizer,
but all.bash works.

R=ken
OCL=29974
CL=30000

15 years agobug140 is fixed
Russ Cox [Sun, 7 Jun 2009 02:28:01 +0000 (19:28 -0700)]
bug140 is fixed

R=ken
OCL=29989
CL=29999

15 years agoimplement optional semicolons with help from the lexer,
Russ Cox [Sun, 7 Jun 2009 02:27:48 +0000 (19:27 -0700)]
implement optional semicolons with help from the lexer,
instead of having to double the type and statement grammars.

R=ken
OCL=29987
CL=29998

15 years ago6g: add TODO about float constants back
Russ Cox [Sun, 7 Jun 2009 02:27:30 +0000 (19:27 -0700)]
6g: add TODO about float constants back

R=ken
OCL=29984
CL=29997

15 years agofix build: testing depends on regexp now; re-ran deps.bash
Russ Cox [Sun, 7 Jun 2009 02:03:00 +0000 (19:03 -0700)]
fix build: testing depends on regexp now; re-ran deps.bash

TBR=r
OCL=29991
CL=29994

15 years agoBasic HTTP POST support.
David Symonds [Sun, 7 Jun 2009 00:30:17 +0000 (17:30 -0700)]
Basic HTTP POST support.

R=rsc
APPROVED=rsc
DELTA=45  (37 added, 1 deleted, 7 changed)
OCL=29964
CL=29990

15 years agoupdate golden.out with new compiler errors
Russ Cox [Sun, 7 Jun 2009 00:01:14 +0000 (17:01 -0700)]
update golden.out with new compiler errors

R=r
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=29986
CL=29988

15 years agogc: grammar cleanup:
Russ Cox [Sat, 6 Jun 2009 19:46:38 +0000 (12:46 -0700)]
gc: grammar cleanup:
  * no longer distinguishes const, var, type, package names.
  * all the predefined names are not tokens anymore.

R=ken
OCL=29326
CL=29985

15 years agodelete unnecessary newline
Russ Cox [Sat, 6 Jun 2009 07:01:47 +0000 (00:01 -0700)]
delete unnecessary newline

R=gri
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=29971
CL=29975

15 years agoset reasonable initial time stamp (instead of begin of epoch)
Robert Griesemer [Sat, 6 Jun 2009 06:54:44 +0000 (23:54 -0700)]
set reasonable initial time stamp (instead of begin of epoch)

R=rsc
DELTA=1  (1 added, 0 deleted, 0 changed)
OCL=29970
CL=29973

15 years ago8l: add AIMULW
Russ Cox [Sat, 6 Jun 2009 06:52:43 +0000 (23:52 -0700)]
8l: add AIMULW

R=ken
OCL=29972
CL=29972

15 years agodisable automatic p4 sync (new default)
Robert Griesemer [Sat, 6 Jun 2009 06:28:02 +0000 (23:28 -0700)]
disable automatic p4 sync (new default)

TBR=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=29969
CL=29969

15 years agouse cc provided xlog2 instead of system log2.
Russ Cox [Sat, 6 Jun 2009 06:12:07 +0000 (23:12 -0700)]
use cc provided xlog2 instead of system log2.
(on plan 9 cc calls it log2, but that conflicts here.)
the difference is that xlog2 returns -1 on non powers of 2.
8c was rewriting /10 into /8.

R=ken
OCL=29968
CL=29968

15 years agomore build refinements:
Russ Cox [Sat, 6 Jun 2009 05:18:32 +0000 (22:18 -0700)]
more build refinements:
 * use new Make.$GOARCH files in gobuild.
 * rename 6ar to arch-generic gopack.
 * place objects in $GOROOT/pkg/$GOOS_$GOARCH
   (makes cross-compiling easier, and no one
   ever types these paths by hand anyway).

R=r
DELTA=29  (6 added, 8 deleted, 15 changed)
OCL=29923
CL=29967

15 years agorebuilt Makefiles for CL 29923
Russ Cox [Sat, 6 Jun 2009 05:18:21 +0000 (22:18 -0700)]
rebuilt Makefiles for CL 29923

R=r
DELTA=761  (1 added, 433 deleted, 327 changed)
OCL=29927
CL=29966

15 years ago- cleanup: remove use of local ReadFile in favor of io.ReadFile
Robert Griesemer [Sat, 6 Jun 2009 00:55:55 +0000 (17:55 -0700)]
- cleanup: remove use of local ReadFile in favor of io.ReadFile
- don't show p4 sync output if -verbose is not set

R=rsc
DELTA=25  (5 added, 15 deleted, 5 changed)
OCL=29962
CL=29962

15 years agoshow remote addr instead of host in log lines
Robert Griesemer [Sat, 6 Jun 2009 00:08:22 +0000 (17:08 -0700)]
show remote addr instead of host in log lines

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

15 years ago- added goroutine to automatically p4 sync the current workspace
Robert Griesemer [Fri, 5 Jun 2009 23:48:20 +0000 (16:48 -0700)]
- added goroutine to automatically p4 sync the current workspace
- set "Updated" timestamp on served pages to p4 sync time

R=rsc
DELTA=72  (66 added, 3 deleted, 3 changed)
OCL=29959
CL=29959

15 years agoAdd Upper, Lower, Trim methods to strings package.
Steve Newman [Fri, 5 Jun 2009 20:09:03 +0000 (13:09 -0700)]
Add Upper, Lower, Trim methods to strings package.

APPROVED=rsc
DELTA=110  (110 added, 0 deleted, 0 changed)
OCL=29766
CL=29951

15 years agorestructure makefiles, scripts to factor out O= logic.
Russ Cox [Fri, 5 Jun 2009 17:59:55 +0000 (10:59 -0700)]
restructure makefiles, scripts to factor out O= logic.
remove a few hardcoded paths elsewhere too.

R=r,gri
DELTA=123  (44 added, 15 deleted, 64 changed)
OCL=29914
CL=29945

15 years agofix 386 malloc tests,
Russ Cox [Fri, 5 Jun 2009 17:59:37 +0000 (10:59 -0700)]
fix 386 malloc tests,
detect 386 darwin breakpoint line.

R=r
DELTA=22  (4 added, 0 deleted, 18 changed)
OCL=29929
CL=29944

15 years agofix 386 log test
Russ Cox [Fri, 5 Jun 2009 17:59:25 +0000 (10:59 -0700)]
fix 386 log test

R=r
DELTA=13  (0 added, 1 deleted, 12 changed)
OCL=29928
CL=29943

15 years agoRolling galign back to 32 bit.
Kai Backman [Fri, 5 Jun 2009 04:11:55 +0000 (21:11 -0700)]
Rolling galign back to 32 bit.

R=rsc
APPROVED=rsc
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=29532
CL=29917

15 years agodon't need these anymore;
Russ Cox [Fri, 5 Jun 2009 04:10:49 +0000 (21:10 -0700)]
don't need these anymore;

R=kaib
DELTA=36  (0 added, 36 deleted, 0 changed)
OCL=29908
CL=29916

15 years ago386-related fixes and guards
Russ Cox [Fri, 5 Jun 2009 04:09:06 +0000 (21:09 -0700)]
386-related fixes and guards

R=r
DELTA=44  (19 added, 1 deleted, 24 changed)
OCL=29912
CL=29915

15 years agostring([]int) is now implemented
Rob Pike [Thu, 4 Jun 2009 23:51:47 +0000 (16:51 -0700)]
string([]int) is now implemented

R=rsc
DELTA=18  (10 added, 2 deleted, 6 changed)
OCL=29909
CL=29909

15 years agobug161, fixed
Russ Cox [Thu, 4 Jun 2009 23:18:13 +0000 (16:18 -0700)]
bug161, fixed

R=ken
OCL=29907
CL=29907

15 years ago- interpret form feed char as newline + flush
Robert Griesemer [Thu, 4 Jun 2009 22:47:57 +0000 (15:47 -0700)]
- interpret form feed char as newline + flush
- cleanups:
  - replaced internal byte buffer implementation with io.ByteBuffer (now that we have one)
  - removed all uses of goto statements in favor of structured code
  - converted tests into a table-driven test

R=r
DELTA=277  (48 added, 67 deleted, 162 changed)
OCL=29890
CL=29901

15 years agorename -chatty to more conventional -v.
Russ Cox [Thu, 4 Jun 2009 22:40:28 +0000 (15:40 -0700)]
rename -chatty to more conventional -v.
add -match flag to select tests.

gotest -match 'TestDeepEqual$'

R=r
DELTA=13  (12 added, 0 deleted, 1 changed)
OCL=29900
CL=29900

15 years agouse the new bytes package
Rob Pike [Thu, 4 Jun 2009 22:28:09 +0000 (15:28 -0700)]
use the new bytes package

R=rsc
DELTA=61  (8 added, 31 deleted, 22 changed)
OCL=29897
CL=29899

15 years agomore 8g progress.
Russ Cox [Thu, 4 Jun 2009 22:24:01 +0000 (15:24 -0700)]
more 8g progress.
likely to go back to registers for most temporaries.

most tests in lib pass.  these fail:

datafmt
fmt
go/scanner
log
reflect
strconv
template

R=ken
OCL=29896
CL=29898

15 years agobytes.Copy
Rob Pike [Thu, 4 Jun 2009 22:00:15 +0000 (15:00 -0700)]
bytes.Copy

R=rsc
DELTA=38  (38 added, 0 deleted, 0 changed)
OCL=29895
CL=29895

15 years agoadd a bytes package analogous to the strings package.
Rob Pike [Thu, 4 Jun 2009 21:41:31 +0000 (14:41 -0700)]
add a bytes package analogous to the strings package.
also has Equal and Compare

R=rsc
DELTA=348  (348 added, 0 deleted, 0 changed)
OCL=29892
CL=29894

15 years ago- report an error if format is nil instead of crashing
Robert Griesemer [Thu, 4 Jun 2009 21:31:11 +0000 (14:31 -0700)]
- report an error if format is nil instead of crashing
- treat '\f' like '\n' ('\f' has special meaning in the
  tabwriter now)

R=rsc
DELTA=7  (4 added, 0 deleted, 3 changed)
OCL=29790
CL=29893

15 years agoallow &^= in assignments
Robert Griesemer [Thu, 4 Jun 2009 20:43:19 +0000 (13:43 -0700)]
allow &^= in assignments

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

15 years agomissing darwin files; g4 nothave.
Russ Cox [Thu, 4 Jun 2009 20:33:57 +0000 (13:33 -0700)]
missing darwin files; g4 nothave.

R=r
DELTA=115  (115 added, 0 deleted, 0 changed)
OCL=29884
CL=29888

15 years agomachine-generated files for CL 29882
Russ Cox [Thu, 4 Jun 2009 20:33:48 +0000 (13:33 -0700)]
machine-generated files for CL 29882

R=r
DELTA=1652  (1652 added, 0 deleted, 0 changed)
OCL=29883
CL=29887

15 years agolinux 386 support; now in same state as darwin 386
Russ Cox [Thu, 4 Jun 2009 20:33:40 +0000 (13:33 -0700)]
linux 386 support; now in same state as darwin 386
(stuck on 8l bug).

R=r
DELTA=349  (342 added, 1 deleted, 6 changed)
OCL=29882
CL=29886

15 years agodangling pointer bug (thanks valgrind)
Russ Cox [Thu, 4 Jun 2009 20:33:29 +0000 (13:33 -0700)]
dangling pointer bug (thanks valgrind)

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

15 years agomore 386 runtime fixes.
Russ Cox [Thu, 4 Jun 2009 18:16:03 +0000 (11:16 -0700)]
more 386 runtime fixes.
can pass many tests;
current stumbling block is an 8l bug.

R=r
DELTA=122  (83 added, 8 deleted, 31 changed)
OCL=29872
CL=29876

15 years agofix handling of floating point zero constant 0p+0
Russ Cox [Thu, 4 Jun 2009 18:06:37 +0000 (11:06 -0700)]
fix handling of floating point zero constant 0p+0

R=r
DELTA=25  (25 added, 0 deleted, 0 changed)
OCL=29875
CL=29875

15 years agobug in parallel assignment
Russ Cox [Thu, 4 Jun 2009 00:26:53 +0000 (17:26 -0700)]
bug in parallel assignment

R=r
DELTA=40  (40 added, 0 deleted, 0 changed)
OCL=29850
CL=29855

15 years agozero struct in T{}
Russ Cox [Wed, 3 Jun 2009 23:10:13 +0000 (16:10 -0700)]
zero struct in T{}

R=ken
OCL=29849
CL=29849

15 years agofix build. i would love to know why my other client
Russ Cox [Wed, 3 Jun 2009 17:18:45 +0000 (10:18 -0700)]
fix build.  i would love to know why my other client
didn't see this as a diff.

TBR=r
OCL=29827
CL=29831

15 years agoDefine os.PageSize and syscall.PageSize.
David Symonds [Wed, 3 Jun 2009 10:25:34 +0000 (03:25 -0700)]
Define os.PageSize and syscall.PageSize.

R=rsc
APPROVED=rsc
DELTA=13  (13 added, 0 deleted, 0 changed)
OCL=29429
CL=29819

15 years agotrivial cut and paste: move 64-bit simulation into cgen64.c
Russ Cox [Wed, 3 Jun 2009 06:26:02 +0000 (23:26 -0700)]
trivial cut and paste: move 64-bit simulation into cgen64.c

R=ken
OCL=29812
CL=29812