]> Cypherpunks repositories - gostls13.git/log
gostls13.git
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

15 years ago8g:
Russ Cox [Wed, 3 Jun 2009 06:25:17 +0000 (23:25 -0700)]
8g:
  * floating point -> integer conversions.
    x86 defines that overflow/underflow
    results in 1<<15, 1<<31, 1<<63 for
    int16, int32, int64.  when building the
    unsigned conversions out of the native signed
    ones, 8g turns overflow/underflow into zero.
    the spec does not say what should happen.

  * many tiny bug fixes.  can run a large number
    of files from go/test now, and can fmt.Printf.

  * struggling with byte register allocation
    and float32 computation.

R=ken
OCL=29642
CL=29811

15 years agomechanically-generated syscall files
Russ Cox [Wed, 3 Jun 2009 06:22:25 +0000 (23:22 -0700)]
mechanically-generated syscall files

R=r
DELTA=1615  (1615 added, 0 deleted, 0 changed)
OCL=29803
CL=29810

15 years ago386 library updates
Russ Cox [Wed, 3 Jun 2009 06:22:12 +0000 (23:22 -0700)]
386 library updates

R=r
DELTA=161  (153 added, 0 deleted, 8 changed)
OCL=29802
CL=29809

15 years agominor cleanup, 64-bit /= and %= on 32-bit
Russ Cox [Wed, 3 Jun 2009 06:21:58 +0000 (23:21 -0700)]
minor cleanup, 64-bit /= and %= on 32-bit

R=ken
OCL=29806
CL=29808

15 years agofor consistency with syscall, rename files
Russ Cox [Wed, 3 Jun 2009 06:02:20 +0000 (23:02 -0700)]
for consistency with syscall, rename files
from GOARCH_GOOS -> GOOS_GOARCH.

update os_test and add test of Time.

R=r
DELTA=490  (247 added, 233 deleted, 10 changed)
OCL=29730
CL=29805

15 years ago32-bit fixes in lessstack.
Russ Cox [Wed, 3 Jun 2009 06:02:12 +0000 (23:02 -0700)]
32-bit fixes in lessstack.

avoid tight coupling between deferreturn and jmpdefer.
before, jmpdefer knew the exact frame size of deferreturn
in order to pop it off the stack.  now, deferreturn passes
jmpdefer a pointer to the frame above it explicitly.
that avoids a magic constant and should be less fragile.

R=r
DELTA=32  (6 added, 3 deleted, 23 changed)
OCL=29801
CL=29804

15 years ago8l fixes, cut and paste from 6l.
Russ Cox [Wed, 3 Jun 2009 05:33:21 +0000 (22:33 -0700)]
8l fixes, cut and paste from 6l.
move PtrSize value into 6l/8l files.

R=r
DELTA=78  (47 added, 15 deleted, 16 changed)
OCL=29729
CL=29798

15 years agoAdd container/list package.
David Symonds [Wed, 3 Jun 2009 03:26:14 +0000 (20:26 -0700)]
Add container/list package.

This is imported from //cacheserving/gash/cache/list*.go,
but with style changes to suit the Go standard library.

R=r,rsc
APPROVED=r
DELTA=286  (286 added, 0 deleted, 0 changed)
OCL=29438
CL=29796

15 years agochange datafmt syntax to use '@' instead of '^' (to match
Robert Griesemer [Wed, 3 Jun 2009 01:03:47 +0000 (18:03 -0700)]
change datafmt syntax to use '@' instead of '^' (to match
convention used in template.go)

R=rsc
DELTA=22  (3 added, 1 deleted, 18 changed)
OCL=29780
CL=29782

15 years agoremove superfluous indirection
Robert Griesemer [Wed, 3 Jun 2009 00:47:20 +0000 (17:47 -0700)]
remove superfluous indirection

R=rsc
DELTA=7  (0 added, 0 deleted, 7 changed)
OCL=29776
CL=29778

15 years ago- renamed format -> datafmt
Robert Griesemer [Wed, 3 Jun 2009 00:18:27 +0000 (17:18 -0700)]
- renamed format -> datafmt
- factored out datafmt-specifics from pretty to ast

R=rsc
DELTA=3580  (1810 added, 1763 deleted, 7 changed)
OCL=29770
CL=29774

15 years agoFixes to URL functionality:
Steve Newman [Tue, 2 Jun 2009 19:48:18 +0000 (12:48 -0700)]
Fixes to URL functionality:
- Extend http.URLUnescape to convert '+' to space
- Add http.URLEscape
- Rename URL.Query to EncodedQuery (and stop decoding it, as decoding this field
  before separating key/value pairs loses important information)
- Report a clean error on incomplete hex escapes
- Update existing tests, add new ones

APPROVED=rsc
DELTA=293  (256 added, 3 deleted, 34 changed)
OCL=29685
CL=29759

15 years agoauto-generated, renamed, and deleted files
Russ Cox [Tue, 2 Jun 2009 05:15:08 +0000 (22:15 -0700)]
auto-generated, renamed, and deleted files
associated with CL 29709.

R=r
DELTA=6444  (3476 added, 2958 deleted, 10 changed)
OCL=29710
CL=29724

15 years agonew syscall package: manually maintained files and scripts.
Russ Cox [Tue, 2 Jun 2009 05:14:57 +0000 (22:14 -0700)]
new syscall package: manually maintained files and scripts.
auto-generated files and deletions are in another CL.

goals for new syscall:
* automate as much as possible
* do not let clients do unsafe things
* use simple types (int not int64)
* fewer files

the files are renamed from foo_amd64_linux to foo_linux_amd64,
both because it reads better (all the linux are related, all the amd64 less so)
and because it made it easier to replace the existing ones.

R=r
DELTA=2336  (2260 added, 6 deleted, 70 changed)
OCL=29709
CL=29723

15 years agoupdate Go tree to use new syscall package.
Russ Cox [Tue, 2 Jun 2009 05:14:39 +0000 (22:14 -0700)]
update Go tree to use new syscall package.

R=r
DELTA=713  (109 added, 386 deleted, 218 changed)
OCL=29707
CL=29722

15 years agomake godefs work better for generating Go.
Russ Cox [Tue, 2 Jun 2009 05:14:25 +0000 (22:14 -0700)]
make godefs work better for generating Go.

R=r
DELTA=121  (92 added, 4 deleted, 25 changed)
OCL=29706
CL=29721

15 years agoformat package
Robert Griesemer [Tue, 2 Jun 2009 02:13:44 +0000 (19:13 -0700)]
format package

R=r,rsc
DELTA=2871  (1712 added, 1118 deleted, 41 changed)
OCL=29222
CL=29704

15 years ago- enable scanner to handle illegal chars w/o returning an error
Robert Griesemer [Tue, 2 Jun 2009 02:12:10 +0000 (19:12 -0700)]
- enable scanner to handle illegal chars w/o returning an error
so that it can be used for non-Go chars
- adjust parser accordingly

R=rsc
DELTA=58  (42 added, 2 deleted, 14 changed)
OCL=29688
CL=29703

15 years agoio.ReadFile
Robert Griesemer [Tue, 2 Jun 2009 02:00:07 +0000 (19:00 -0700)]
io.ReadFile

R=r,rsc
DELTA=64  (63 added, 0 deleted, 1 changed)
OCL=29702
CL=29702

15 years agoprevent multiple similar errors
Ken Thompson [Sun, 31 May 2009 20:02:24 +0000 (13:02 -0700)]
prevent multiple similar errors
in complex literals. side effect is
fix of error in initializerr.go

R=r
OCL=29667
CL=29667

15 years agonew 64-bit math test.
Russ Cox [Sun, 31 May 2009 19:35:11 +0000 (12:35 -0700)]
new 64-bit math test.
allow multiline recipes in run.

R=r
DELTA=712  (708 added, 2 deleted, 2 changed)
OCL=29641
CL=29666

15 years agoAdjust expected errors to work with gccgo.
Ian Lance Taylor [Sun, 31 May 2009 18:18:52 +0000 (11:18 -0700)]
Adjust expected errors to work with gccgo.

The change to assign.go is because the gcc testsuite fails to
handle .* in a normal way: it matches against the entire
compiler output, not just a single line.

assign.go:15:6: error: incompatible types in assignment (implicit assignment of 'sync.Mutex' hidden field 'key')
assign.go:19:6: error: incompatible types in assignment (implicit assignment of 'sync.Mutex' hidden field 'key')
assign.go:23:6: error: incompatible types in assignment (implicit assignment of 'sync.Mutex' hidden field 'key')
assign.go:27:6: error: incompatible types in assignment (implicit assignment of 'sync.Mutex' hidden field 'key')

chan/perm.go:14:5: error: incompatible types in assignment
chan/perm.go:15:5: error: incompatible types in assignment
chan/perm.go:16:6: error: incompatible types in assignment
chan/perm.go:17:6: error: incompatible types in assignment
chan/perm.go:24:7: error: invalid send on receive-only channel
chan/perm.go:25:12: error: invalid send on receive-only channel
chan/perm.go:31:4: error: invalid receive on send-only channel
chan/perm.go:32:9: error: invalid receive on send-only channel
chan/perm.go:38:2: error: invalid send on receive-only channel
chan/perm.go:42:2: error: invalid receive on send-only channel

initializerr.go:14:17: error: reference to undefined variable 'X'
initializerr.go:14:19: error: mixture of field and value initializers
initializerr.go:15:26: error: duplicate value for field 'Y'
initializerr.go:16:10: error: too many values in struct composite literal
initializerr.go:18:19: error: index expression is not integer constant
initializerr.go:17:11: error: too many elements in composite literal

R=rsc
DELTA=12  (0 added, 0 deleted, 12 changed)
OCL=29657
CL=29665

15 years agobug157
Russ Cox [Sun, 31 May 2009 04:18:15 +0000 (21:18 -0700)]
bug157

R=ken
OCL=29651
CL=29653

15 years agobug 158
Ken Thompson [Sun, 31 May 2009 00:06:51 +0000 (17:06 -0700)]
bug 158

R=r
OCL=29646
CL=29646

15 years agomake gobuild failures more readable.
Russ Cox [Sat, 30 May 2009 01:12:04 +0000 (18:12 -0700)]
make gobuild failures more readable.

1. ar reports names of objects with duplicate text symbols.
2. gobuild only shows first line of error output for each failed command.
3. gobuild ignores files that begin with ascii non-alphanumeric non _.

; gobuild
$ 6g -I _obj gobuild.go
  gobuild.go:150: PackageImports: undefined
$ 6g -I _obj makefile.go
  makefile.go:102: ShellString: undefined
$ 6g -I _obj util.go
  util.go:114: syntax error near zzz
gobuild: stalemate
;

; gobuild
$ 6ar grc _obj/gobuild.a util.6 util1.6
  duplicate text symbol: util1.6 and util.6: gobuildĀ·Build
$ 6g -I _obj gobuild.go
  gobuild.go:150: PackageImports: undefined
$ 6g -I _obj makefile.go
  makefile.go:102: ShellString: undefined
gobuild: stalemate
;

R=r
DELTA=95  (49 added, 9 deleted, 37 changed)
OCL=29625
CL=29640

15 years agoReplacement for abandoned CL 29626:
Robert Griesemer [Fri, 29 May 2009 23:43:24 +0000 (16:43 -0700)]
Replacement for abandoned CL 29626:
bug157 and bug158

R=rsc
DELTA=59  (59 added, 0 deleted, 0 changed)
OCL=29632
CL=29634

15 years agounary ^ update.
Russ Cox [Fri, 29 May 2009 23:04:16 +0000 (16:04 -0700)]
unary ^ update.

[]int -> string is already in the document.

DELTA=7  (1 added, 1 deleted, 5 changed)
OCL=29622
CL=29631

15 years agoAutomated g4 rollback of changelist 29478.
Rob Pike [Fri, 29 May 2009 22:46:03 +0000 (15:46 -0700)]
Automated g4 rollback of changelist 29478.

*** Reason for rollback ***

  these semicolons are necessary only because of a bug in 6g

*** Original change description ***

add missing semicolons in example

TBR=gri
OCL=29624
CL=29624

15 years agobug 156
Ken Thompson [Fri, 29 May 2009 22:34:47 +0000 (15:34 -0700)]
bug 156

R=r
OCL=29623
CL=29623

15 years agobug 155
Ken Thompson [Fri, 29 May 2009 21:42:24 +0000 (14:42 -0700)]
bug 155

R=r
OCL=29619
CL=29619

15 years ago64-bit integer math bugs
Russ Cox [Fri, 29 May 2009 20:46:43 +0000 (13:46 -0700)]
64-bit integer math bugs

R=r
DELTA=46  (46 added, 0 deleted, 0 changed)
OCL=29569
CL=29614

15 years agobug 149
Ken Thompson [Fri, 29 May 2009 20:44:30 +0000 (13:44 -0700)]
bug 149

R=r
OCL=29612
CL=29612

15 years agoFix godoc deadlock.
Russ Cox [Fri, 29 May 2009 20:31:53 +0000 (13:31 -0700)]
Fix godoc deadlock.

The code was already careful not to use malloc/free
for stack growth during calls to malloc.
Avoid them during calls to free too.

R=r
DELTA=9  (7 added, 0 deleted, 2 changed)
OCL=29606
CL=29610

15 years agointeger conversions and test.
Russ Cox [Fri, 29 May 2009 16:17:35 +0000 (09:17 -0700)]
integer conversions and test.

R=ken
OCL=29577
CL=29589

15 years ago64-bit integer arithmetic.
Russ Cox [Fri, 29 May 2009 07:13:09 +0000 (00:13 -0700)]
64-bit integer arithmetic.
passes ridiculous test from CL 29569.

R=ken
OCL=29571
CL=29573

15 years agoprint uint64 as uint64.
Russ Cox [Fri, 29 May 2009 05:24:03 +0000 (22:24 -0700)]
print uint64 as uint64.

R=ken
OCL=29568
CL=29570

15 years agodetect recursive initialization
Ken Thompson [Thu, 28 May 2009 23:00:55 +0000 (16:00 -0700)]
detect recursive initialization

R=r
OCL=29544
CL=29544

15 years agobetter 64-bit handling in 8g.
Russ Cox [Thu, 28 May 2009 22:48:47 +0000 (15:48 -0700)]
better 64-bit handling in 8g.
fewer moves, fewer stupid LEALs.
powser1 runs (with evaln commented out).
beginnings of floating point.

R=ken
OCL=29540
CL=29543

15 years agoRebooted 5g effort from 6g. Tons of minor fixes and tweaks to
Kai Backman [Thu, 28 May 2009 21:25:54 +0000 (14:25 -0700)]
Rebooted 5g effort from 6g. Tons of minor fixes and tweaks to
get the code going.

R=rsc
APPROVED=rsc
DELTA=4752  (1723 added, 948 deleted, 2081 changed)
OCL=29403
CL=29530

15 years agoChange 5l to use Biobufs for IO.
Kai Backman [Thu, 28 May 2009 14:41:23 +0000 (07:41 -0700)]
Change 5l to use Biobufs for IO.

R=rsc
APPROVED=rsc
DELTA=132  (16 added, 45 deleted, 71 changed)
OCL=29468
CL=29497

15 years agoclean up gmove:
Russ Cox [Thu, 28 May 2009 06:55:14 +0000 (23:55 -0700)]
clean up gmove:
* conversions all in one place.
* no separate load, store phases;
  direct memory addressing when possible
  (this is the x86 after all!).
  avoids extra registers, extra MOVQs.
* fixes int32 -> uint64 bug
  (was zero-extending)

R=ken
OCL=29482
CL=29484

15 years agobug 153
Ken Thompson [Thu, 28 May 2009 01:37:02 +0000 (18:37 -0700)]
bug 153

R=r
OCL=29479
CL=29479

15 years agoadd missing semicolons in example
Rob Pike [Thu, 28 May 2009 01:31:28 +0000 (18:31 -0700)]
add missing semicolons in example

R=rsc
DELTA=5  (0 added, 0 deleted, 5 changed)
OCL=29475
CL=29478

15 years agoattach package comment
Russ Cox [Thu, 28 May 2009 01:20:26 +0000 (18:20 -0700)]
attach package comment

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

15 years agoadded protection against race condition
Ken Thompson [Wed, 27 May 2009 22:56:44 +0000 (15:56 -0700)]
added protection against race condition
between first and second pass of converting
[]int to string.

R=r
OCL=29467
CL=29467

15 years agostring([]int) conversion
Ken Thompson [Wed, 27 May 2009 22:38:02 +0000 (15:38 -0700)]
string([]int) conversion

R=r
OCL=29466
CL=29466

15 years agofix bug154; tweak bug153 exit status
Russ Cox [Wed, 27 May 2009 17:16:13 +0000 (10:16 -0700)]
fix bug154; tweak bug153 exit status

R=ken
OCL=29448
CL=29448

15 years agogetrusage on darwin; untested but builds.
Russ Cox [Wed, 27 May 2009 17:05:23 +0000 (10:05 -0700)]
getrusage on darwin; untested but builds.

R=dsymonds
DELTA=5  (5 added, 0 deleted, 0 changed)
OCL=29424
CL=29447

15 years agofloating point bug
Robert Griesemer [Wed, 27 May 2009 16:57:44 +0000 (09:57 -0700)]
floating point bug

R=rsc
DELTA=35  (35 added, 0 deleted, 0 changed)
OCL=29442
CL=29444

15 years agobad error message
Robert Griesemer [Wed, 27 May 2009 16:47:13 +0000 (09:47 -0700)]
bad error message

TBR=rsc
DELTA=14  (14 added, 0 deleted, 0 changed)
OCL=29441
CL=29441

15 years agobug151, bug152 -> fixedbugs
Russ Cox [Wed, 27 May 2009 04:11:43 +0000 (21:11 -0700)]
bug151, bug152 -> fixedbugs

R=ken
OCL=29425
CL=29427

15 years ago8g: missing change from last CL
Russ Cox [Wed, 27 May 2009 04:11:31 +0000 (21:11 -0700)]
8g: missing change from last CL

R=ken
OCL=29426
CL=29426

15 years ago8g: 64-bit arithmetic and assorted bug fixes;
Russ Cox [Wed, 27 May 2009 04:07:26 +0000 (21:07 -0700)]
8g: 64-bit arithmetic and assorted bug fixes;
can run 64-bit sieve and powser.
interfaces are limping along.
next hurdle is floating point.

R=ken
OCL=29418
CL=29423

15 years agoGetrusage for linux.
David Symonds [Wed, 27 May 2009 03:38:57 +0000 (20:38 -0700)]
Getrusage for linux.

R=rsc
APPROVED=rsc
DELTA=40  (38 added, 0 deleted, 2 changed)
OCL=29351
CL=29422

15 years agoand the golden file
Ken Thompson [Wed, 27 May 2009 02:58:59 +0000 (19:58 -0700)]
and the golden file

R=r
OCL=29421
CL=29421