]> Cypherpunks repositories - gostls13.git/log
gostls13.git
15 years agoadd exits
Rob Pike [Fri, 14 Aug 2009 01:22:44 +0000 (18:22 -0700)]
add exits

R=rsc
DELTA=2339  (19 added, 2303 deleted, 17 changed)
OCL=33239
CL=33253

15 years agoDon't try to account for CALL instruction in 0th frame.
Austin Clements [Fri, 14 Aug 2009 01:10:38 +0000 (18:10 -0700)]
Don't try to account for CALL instruction in 0th frame.

R=rsc
APPROVED=rsc
DELTA=9  (4 added, 3 deleted, 2 changed)
OCL=33238
CL=33251

15 years agodebugging symbols for 8g.
Russ Cox [Thu, 13 Aug 2009 22:45:58 +0000 (15:45 -0700)]
debugging symbols for 8g.
backtraces don't work,
but they didn't work when i started either.

R=ken
OCL=33230
CL=33230

15 years agofix typo
Kai Backman [Thu, 13 Aug 2009 22:14:41 +0000 (15:14 -0700)]
fix typo

R=rsc
APPROVED=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=33209
CL=33227

15 years ago6g/6l: add go type information to symbol table.
Russ Cox [Thu, 13 Aug 2009 21:41:42 +0000 (14:41 -0700)]
6g/6l: add go type information to symbol table.
  archive size +70%
  binary size +30%

old

wreck.mtv=; ls -l /Users/rsc/bin/{godoc,gofmt}
-rwxr-xr-x  1 rsc  eng  1487922 Aug 13 13:21 /Users/rsc/bin/godoc
-rwxr-xr-x  1 rsc  eng   995995 Aug 13 13:21 /Users/rsc/bin/gofmt
wreck.mtv=; du -sh $GOROOT/pkg/
9.5M /home/rsc/go/pkg/
wreck.mtv=;

new

wreck.mtv=; ls -l /Users/rsc/bin/{godoc,gofmt}
-rwxr-xr-x  1 rsc  eng  2014390 Aug 13 14:25 /Users/rsc/bin/godoc
-rwxr-xr-x  1 rsc  eng  1268705 Aug 13 14:25 /Users/rsc/bin/gofmt
wreck.mtv=; du -sh $GOROOT/pkg
 16M /home/rsc/go/pkg
wreck.mtv=;

R=ken
OCL=33217
CL=33220

15 years agomakefile fixes; convert runtime to use new makefiles
Russ Cox [Thu, 13 Aug 2009 21:41:10 +0000 (14:41 -0700)]
makefile fixes; convert runtime to use new makefiles

R=r
DELTA=67  (17 added, 29 deleted, 21 changed)
OCL=33215
CL=33219

15 years agorename mkasmh to mkasmh.sh
Rob Pike [Thu, 13 Aug 2009 21:23:35 +0000 (14:23 -0700)]
rename mkasmh to mkasmh.sh

R=rsc
DELTA=204  (153 added, 49 deleted, 2 changed)
OCL=33213
CL=33213

15 years agofix test
Rob Pike [Thu, 13 Aug 2009 20:33:11 +0000 (13:33 -0700)]
fix test

R=gri
DELTA=4  (0 added, 4 deleted, 0 changed)
OCL=33202
CL=33204

15 years agochange the names to have .sh suffixes.
Rob Pike [Thu, 13 Aug 2009 20:22:37 +0000 (13:22 -0700)]
change the names to have .sh suffixes.
also fix the comments in the generated files.

R=rsc
DELTA=949  (470 added, 465 deleted, 14 changed)
OCL=33197
CL=33201

15 years agotests, .proto, .cgo
Rob Pike [Thu, 13 Aug 2009 20:06:48 +0000 (13:06 -0700)]
tests, .proto, .cgo

R=rsc
DELTA=38  (21 added, 3 deleted, 14 changed)
OCL=33193
CL=33200

15 years agoget this out of the way
Rob Pike [Thu, 13 Aug 2009 18:29:05 +0000 (11:29 -0700)]
get this out of the way

OCL=33178
CL=33180

15 years agoRecognize gccgo error messages.
Ian Lance Taylor [Thu, 13 Aug 2009 16:42:28 +0000 (09:42 -0700)]
Recognize gccgo error messages.

bug039.go:6:7: error: redefinition of 'x'
bug039.go:5:1: note: previous definition of 'x' was here

bug049.go:6:9: error: incompatible types in binary expression

bug062.go:6:7: error: incompatible type in initialization

bug086.go:5:1: error: control reaches end of non-void function

bug103.go:8:2: error: variable has no type

bug121.go:9:2: error: expected signature or type name

bug131.go:7:7: error: incompatible type in initialization

bug165.go:10:8: error: expected complete type

bug171.go:5:1: error: control reaches end of non-void function
bug171.go:6:1: error: control reaches end of non-void function

bug172.go:7:6: error: expected integer type

bug182.go:7:2: error: if statement expects boolean expression

bug183.go:10:5: error: incompatible types in assignment
bug183.go:19:5: error: incompatible types in assignment

R=rsc
DELTA=15  (0 added, 0 deleted, 15 changed)
OCL=33168
CL=33175

15 years agofix build
Rob Pike [Thu, 13 Aug 2009 16:35:42 +0000 (09:35 -0700)]
fix build

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

15 years agoAdd AUTHORS and LICENSE files.
Rob Pike [Thu, 13 Aug 2009 16:21:28 +0000 (09:21 -0700)]
Add AUTHORS and LICENSE files.

R=gri,iant
DELTA=47  (43 added, 0 deleted, 4 changed)
OCL=33127
CL=33173

15 years agoupdate tutorial
Rob Pike [Thu, 13 Aug 2009 15:54:26 +0000 (08:54 -0700)]
update tutorial

R=rsc
DELTA=30  (5 added, 0 deleted, 25 changed)
OCL=33138
CL=33170

15 years agomechanism for putting go types into 6.out symbol table.
Russ Cox [Thu, 13 Aug 2009 01:16:24 +0000 (18:16 -0700)]
mechanism for putting go types into 6.out symbol table.
no types yet.

R=ken
OCL=33142
CL=33146

15 years agosilence gcc warning
Russ Cox [Thu, 13 Aug 2009 01:14:07 +0000 (18:14 -0700)]
silence gcc warning

R=ken
OCL=33144
CL=33144

15 years agorm outfile if 6g exits with an error
Russ Cox [Thu, 13 Aug 2009 00:58:53 +0000 (17:58 -0700)]
rm outfile if 6g exits with an error

R=ken
OCL=33134
CL=33141

15 years agoConvert interpreter to whole-package compilation.
Austin Clements [Thu, 13 Aug 2009 00:24:05 +0000 (17:24 -0700)]
Convert interpreter to whole-package compilation.

R=rsc
APPROVED=rsc
DELTA=334  (110 added, 211 deleted, 13 changed)
OCL=33135
CL=33137

15 years agoConvert ptrace to whole-package compilation.
Austin Clements [Thu, 13 Aug 2009 00:22:47 +0000 (17:22 -0700)]
Convert ptrace to whole-package compilation.

R=rsc
APPROVED=rsc
DELTA=15  (9 added, 6 deleted, 0 changed)
OCL=33136
CL=33136

15 years agochange gotype in symbol table from
Russ Cox [Wed, 12 Aug 2009 23:14:53 +0000 (16:14 -0700)]
change gotype in symbol table from
character string to machine address.
not filled in, just carved out.

R=austin
DELTA=77  (11 added, 34 deleted, 32 changed)
OCL=33122
CL=33124

15 years agobug188 - sort(x)
Russ Cox [Wed, 12 Aug 2009 22:58:31 +0000 (15:58 -0700)]
bug188 - sort(x)

R=ken
OCL=33123
CL=33123

15 years agorm gobuild
Russ Cox [Wed, 12 Aug 2009 22:17:47 +0000 (15:17 -0700)]
rm gobuild

R=r
DELTA=827  (0 added, 826 deleted, 1 changed)
OCL=33117
CL=33120

15 years agofix bug187 not to crash
Russ Cox [Wed, 12 Aug 2009 21:54:15 +0000 (14:54 -0700)]
fix bug187 not to crash

TBR=austin
DELTA=9  (4 added, 4 deleted, 1 changed)
OCL=33115
CL=33115

15 years agodelete code for forward type declarations
Russ Cox [Wed, 12 Aug 2009 21:41:13 +0000 (14:41 -0700)]
delete code for forward type declarations

R=ken
OCL=33108
CL=33113

15 years agodelete heuristic left over from incremental compilation
Russ Cox [Wed, 12 Aug 2009 21:41:02 +0000 (14:41 -0700)]
delete heuristic left over from incremental compilation

R=r
DELTA=31  (2 added, 28 deleted, 1 changed)
OCL=33064
CL=33112

15 years agodelete forward type declarations
Russ Cox [Wed, 12 Aug 2009 21:40:47 +0000 (14:40 -0700)]
delete forward type declarations

R=r
DELTA=163  (1 added, 149 deleted, 13 changed)
OCL=33106
CL=33111

15 years agoavoid unnecessary installs
Russ Cox [Wed, 12 Aug 2009 21:40:29 +0000 (14:40 -0700)]
avoid unnecessary installs

R=r
DELTA=6  (4 added, 0 deleted, 2 changed)
OCL=33107
CL=33110

15 years agoBug involving ... initializers and interface values.
Austin Clements [Wed, 12 Aug 2009 20:57:05 +0000 (13:57 -0700)]
Bug involving ... initializers and interface values.

R=rsc
APPROVED=rsc
DELTA=22  (22 added, 0 deleted, 0 changed)
OCL=33053
CL=33104

15 years agofix linux build for whole package compilation
Rob Pike [Wed, 12 Aug 2009 20:51:02 +0000 (13:51 -0700)]
fix linux build for whole package compilation

R=rsc
OCL=33103
CL=33103

15 years agoconvert gob to whole-package compilation.
Russ Cox [Wed, 12 Aug 2009 20:19:27 +0000 (13:19 -0700)]
convert gob to whole-package compilation.
had to reorder some init code.

R=r
DELTA=136  (15 added, 110 deleted, 11 changed)
OCL=33071
CL=33102

15 years agoconvert non-low-level non-google pkg code
Russ Cox [Wed, 12 Aug 2009 20:19:17 +0000 (13:19 -0700)]
convert non-low-level non-google pkg code
to whole-package compilation.

R=r
OCL=33070
CL=33101

15 years agoconvert non-pkg go files to whole-package compilation.
Russ Cox [Wed, 12 Aug 2009 20:18:54 +0000 (13:18 -0700)]
convert non-pkg go files to whole-package compilation.
mostly removing forward declarations.

R=r
DELTA=138  (2 added, 127 deleted, 9 changed)
OCL=33068
CL=33099

15 years agonew included Make.pkg for handwritten package makefiles.
Russ Cox [Wed, 12 Aug 2009 20:18:46 +0000 (13:18 -0700)]
new included Make.pkg for handwritten package makefiles.
gobuild is obsolete; don't build it (will delete eventually).

revised gotest for whole-package compilation.

R=r
DELTA=102  (68 added, 6 deleted, 28 changed)
OCL=33067
CL=33098

15 years agoconvert low-level (used by testing) packages to
Russ Cox [Wed, 12 Aug 2009 20:18:37 +0000 (13:18 -0700)]
convert low-level (used by testing) packages to
whole-package compilation.  new Makefiles,
tests now in separate package

bytes
flag
fmt
io
math
once
os
reflect
strconv
sync
time
utf8

delete import "xxx" in package xxx.

inside package xxx, xxx is not declared
anymore so s/xxx.//g

delete file and package level forward declarations.

note the new internal_test.go and sync
and strconv to provide public access to
internals during testing.  the installed version
of the package omits that file and thus does
not open the internals to all clients.

R=r
OCL=33065
CL=33097

15 years ago6g: save all 64 bits of AX/DX
Russ Cox [Wed, 12 Aug 2009 20:18:27 +0000 (13:18 -0700)]
6g: save all 64 bits of AX/DX

8g: save AX/DX around div

R=ken
OCL=33094
CL=33096

15 years agowhole-package compilation
Russ Cox [Wed, 12 Aug 2009 20:18:19 +0000 (13:18 -0700)]
whole-package compilation

R=ken
OCL=33063
CL=33095

15 years agobug186 - f(iota)
Russ Cox [Wed, 12 Aug 2009 00:05:22 +0000 (17:05 -0700)]
bug186 - f(iota)

R=ken
OCL=33051
CL=33051

15 years agomake a simpler regexp implementation with fewer dependencies and put it inside testing.
Rob Pike [Tue, 11 Aug 2009 20:54:47 +0000 (13:54 -0700)]
make a simpler regexp implementation with fewer dependencies and put it inside testing.
remove "regexp." from regexp tests.

R=rsc
DELTA=1173  (1152 added, 1 deleted, 20 changed)
OCL=33028
CL=33037

15 years agocommentary about extern register
Rob Pike [Tue, 11 Aug 2009 20:30:35 +0000 (13:30 -0700)]
commentary about extern register

R=rsc
DELTA=16  (12 added, 0 deleted, 4 changed)
OCL=33030
CL=33035

15 years agorenamed fast.arith.s to include $GOARCH
Robert Griesemer [Tue, 11 Aug 2009 18:23:05 +0000 (11:23 -0700)]
renamed fast.arith.s to include $GOARCH

R=rsc
DELTA=80  (40 added, 40 deleted, 0 changed)
OCL=33024
CL=33027

15 years agoremove unnecessary pkg. references
Russ Cox [Tue, 11 Aug 2009 05:02:51 +0000 (22:02 -0700)]
remove unnecessary pkg. references

R=r
DELTA=95  (0 added, 0 deleted, 95 changed)
OCL=33012
CL=33012

15 years agofix indirect error
Russ Cox [Tue, 11 Aug 2009 01:19:32 +0000 (18:19 -0700)]
fix indirect error
x.go:3: invalid indirect of X (type int)

was
x.go:3: invalid indirect of nil

R=ken
OCL=33008
CL=33008

15 years ago- use in-place bignum operations where available
Robert Griesemer [Tue, 11 Aug 2009 00:44:46 +0000 (17:44 -0700)]
- use in-place bignum operations where available
- runs approx. 30% faster

R=r
DELTA=24  (10 added, 2 deleted, 12 changed)
OCL=32984
CL=33005

15 years ago- factored out 128-bit muladd and div into arith.go
Robert Griesemer [Tue, 11 Aug 2009 00:29:55 +0000 (17:29 -0700)]
- factored out 128-bit muladd and div into arith.go
- wrote corresponding fast versions in fast.arith.s
- implemented in-place operations for some routines
- updated existing code to be compatible with in-place
  routines

These changes allow the pidigits benchmark to run
approx. 30% faster. Enabling the assembly routines
in fast.arith.s will give another approx. 3%.

R=r
DELTA=486  (252 added, 68 deleted, 166 changed)
OCL=32980
CL=33003

15 years agonew timing data after compiler updates (fp regs, integer div and mod)
Rob Pike [Tue, 11 Aug 2009 00:04:59 +0000 (17:04 -0700)]
new timing data after compiler updates (fp regs, integer div and mod)

R=rsc
DELTA=90  (90 added, 0 deleted, 0 changed)
OCL=32993
CL=33001

15 years agoImplement switch statement. Can now extract effects from
Austin Clements [Mon, 10 Aug 2009 23:27:54 +0000 (16:27 -0700)]
Implement switch statement.  Can now extract effects from
non-addressable expressions.

R=rsc
APPROVED=rsc
DELTA=241  (202 added, 15 deleted, 24 changed)
OCL=32790
CL=32995

15 years ago8-bit div and mod
Russ Cox [Mon, 10 Aug 2009 19:46:23 +0000 (12:46 -0700)]
8-bit div and mod

R=ken
OCL=32975
CL=32975

15 years agobug in int8 mod
Ken Thompson [Mon, 10 Aug 2009 18:20:33 +0000 (11:20 -0700)]
bug in int8 mod

R=rsc
OCL=32971
CL=32971

15 years agoAdd methods AllMatches, AllMatchesString, AllMatchesIter,
Stephen Ma [Mon, 10 Aug 2009 02:30:47 +0000 (19:30 -0700)]
Add methods AllMatches, AllMatchesString, AllMatchesIter,
AllMatchesStringIter, based on sawn and sawzall functions in sawzall.

APPROVED=rsc
DELTA=218  (218 added, 0 deleted, 0 changed)
OCL=32408
CL=32949

15 years agoPartially fix build: don't assume . is in PATH.
David Symonds [Mon, 10 Aug 2009 02:18:40 +0000 (19:18 -0700)]
Partially fix build: don't assume . is in PATH.

APPROVED=rsc
DELTA=1  (1 added, 0 deleted, 0 changed)
OCL=32948
CL=32948

15 years agoincrease from 3 to 11 floating registers
Ken Thompson [Sun, 9 Aug 2009 23:42:21 +0000 (16:42 -0700)]
increase from 3 to 11 floating registers

R=rsc
OCL=32947
CL=32947

15 years ago1. integer division by a constant done.
Ken Thompson [Sun, 9 Aug 2009 22:16:06 +0000 (15:16 -0700)]
1. integer division by a constant done.
2. moved functions from 6g to gc
for portability to other families.
3. added rotate-carry instructions to
peek and reg.

R=rsc
OCL=32946
CL=32946

15 years agoRegenerate v7.tar with a real V7 tar.
David Symonds [Sun, 9 Aug 2009 22:03:30 +0000 (15:03 -0700)]
Regenerate v7.tar with a real V7 tar.
Fix octal parsing that it unearthed.

R=rsc
APPROVED=rsc
DELTA=11  (5 added, 0 deleted, 6 changed)
OCL=32924
CL=32945

15 years agorun benchmarks in a relatively fast test mode, as part of run.bash/all.bash
Rob Pike [Sun, 9 Aug 2009 21:31:05 +0000 (14:31 -0700)]
run benchmarks in a relatively fast test mode, as part of run.bash/all.bash

R=rsc
DELTA=293  (224 added, 0 deleted, 69 changed)
OCL=32917
CL=32944

15 years agoanother plateau - almost done
Ken Thompson [Sat, 8 Aug 2009 23:53:21 +0000 (16:53 -0700)]
another plateau - almost done
only need to fix up certain
denominators

R=rsc
OCL=32928
CL=32928

15 years agoplateau in divide by a constant
Ken Thompson [Sat, 8 Aug 2009 22:26:09 +0000 (15:26 -0700)]
plateau in divide by a constant
still to do - overflow, mod

R=rsc
OCL=32927
CL=32927

15 years agomore work on divide by constant.
Ken Thompson [Sat, 8 Aug 2009 03:21:04 +0000 (20:21 -0700)]
more work on divide by constant.
no real change -- disabled because of bugs

R=rsc
OCL=32923
CL=32923

15 years ago- clarified section on return statements
Robert Griesemer [Sat, 8 Aug 2009 00:05:41 +0000 (17:05 -0700)]
- clarified section on return statements
- added some TODOs

DELTA=46  (15 added, 4 deleted, 27 changed)
OCL=32901
CL=32918

15 years agobug159
Russ Cox [Fri, 7 Aug 2009 23:47:54 +0000 (16:47 -0700)]
bug159

R=ken
OCL=32902
CL=32914

15 years agochameneos
Rob Pike [Fri, 7 Aug 2009 22:28:46 +0000 (15:28 -0700)]
chameneos

R=rsc
DELTA=514  (513 added, 0 deleted, 1 changed)
OCL=32898
CL=32910

15 years agoremove 8.out before creating it.
Russ Cox [Fri, 7 Aug 2009 22:22:09 +0000 (15:22 -0700)]
remove 8.out before creating it.
hope this will work around Mac NFS bug
where writing to an 8.out that has crashed
recently sometimes wedges NFS.

R=r
DELTA=3  (3 added, 0 deleted, 0 changed)
OCL=32906
CL=32908

15 years agobug185 - return b,a from func() (a,b int)
Russ Cox [Fri, 7 Aug 2009 21:38:31 +0000 (14:38 -0700)]
bug185 - return b,a from func() (a,b int)

R=ken
OCL=32900
CL=32900

15 years agoannotations
Russ Cox [Fri, 7 Aug 2009 21:18:30 +0000 (14:18 -0700)]
annotations

TBR=r
OCL=32896
CL=32896

15 years agobug184 - assignment compatibility in unpacked multireturn
Russ Cox [Fri, 7 Aug 2009 21:00:18 +0000 (14:00 -0700)]
bug184 - assignment compatibility in unpacked multireturn

R=ken
OCL=32890
CL=32894

15 years agosimplify threadring slightly; slight speed improvement
Rob Pike [Fri, 7 Aug 2009 20:30:20 +0000 (13:30 -0700)]
simplify threadring slightly; slight speed improvement

R=rsc
DELTA=7  (3 added, 3 deleted, 1 changed)
OCL=32885
CL=32889

15 years agobug183 - embedded vs non-embedded struct field in eqtype
Russ Cox [Fri, 7 Aug 2009 20:23:09 +0000 (13:23 -0700)]
bug183 - embedded vs non-embedded struct field in eqtype

R=ken
OCL=32888
CL=32888

15 years agobug182 - compiler crash
Russ Cox [Fri, 7 Aug 2009 20:17:28 +0000 (13:17 -0700)]
bug182 - compiler crash

R=ken
OCL=32887
CL=32887

15 years agobug181 - type T *struct { T } is an invalid embedded type
Russ Cox [Fri, 7 Aug 2009 20:14:01 +0000 (13:14 -0700)]
bug181 - type T *struct { T } is an invalid embedded type

R=ken
OCL=32886
CL=32886

15 years agoclean up a few error messages;
Russ Cox [Fri, 7 Aug 2009 20:00:20 +0000 (13:00 -0700)]
clean up a few error messages;
disable func redeclaration mismatch test;
fix golden.out

R=ken
OCL=32883
CL=32883

15 years ago8 shift bug
Russ Cox [Fri, 7 Aug 2009 19:57:44 +0000 (12:57 -0700)]
8 shift bug

R=ken
OCL=32882
CL=32882

15 years agothreadring
Rob Pike [Fri, 7 Aug 2009 19:53:51 +0000 (12:53 -0700)]
threadring
more interesting than most

R=rsc
DELTA=132  (131 added, 0 deleted, 1 changed)
OCL=32876
CL=32881

15 years agoforward declarations not necessary.
Russ Cox [Fri, 7 Aug 2009 19:50:26 +0000 (12:50 -0700)]
forward declarations not necessary.
still to do:
* initializer cycle detection
* nicer error for type checking cycles

R=ken
OCL=32855
CL=32880

15 years agotiming updates after 6g change for efficient division by powers of two
Rob Pike [Fri, 7 Aug 2009 17:39:45 +0000 (10:39 -0700)]
timing updates after 6g change for efficient division by powers of two

R=rsc
DELTA=25  (23 added, 0 deleted, 2 changed)
OCL=32873
CL=32875

15 years agodivide by a constant power of 2
Ken Thompson [Fri, 7 Aug 2009 05:33:12 +0000 (22:33 -0700)]
divide by a constant power of 2

R=rsc
OCL=32858
CL=32858

15 years agotimings for pidigits
Rob Pike [Fri, 7 Aug 2009 01:27:15 +0000 (18:27 -0700)]
timings for pidigits

TBR=rsc
OCL=32857
CL=32857

15 years ago- initial version of pidigits.go benchmark
Robert Griesemer [Fri, 7 Aug 2009 01:16:51 +0000 (18:16 -0700)]
- initial version of pidigits.go benchmark
- extra bignum.go functionality for pidigits.go
- tuned bignum multiplication

R=r
DELTA=193  (186 added, 0 deleted, 7 changed)
OCL=32852
CL=32856

15 years agometeor-contest
Rob Pike [Fri, 7 Aug 2009 01:04:48 +0000 (18:04 -0700)]
meteor-contest

R=rsc
DELTA=1276  (1275 added, 0 deleted, 1 changed)
OCL=32851
CL=32854

15 years ago- allow more general type switch syntax
Robert Griesemer [Fri, 7 Aug 2009 00:44:56 +0000 (17:44 -0700)]
- allow more general type switch syntax
- support for reverse printing of AST
  (for compiler testing)
- added -reverse flag to gofmt

R=rsc
DELTA=163  (125 added, 11 deleted, 27 changed)
OCL=32808
CL=32853

15 years agomandelbrot
Rob Pike [Thu, 6 Aug 2009 21:21:21 +0000 (14:21 -0700)]
mandelbrot

R=rsc
DELTA=147  (145 added, 0 deleted, 2 changed)
OCL=32840
CL=32845

15 years agoMake ptrace_linux compile with recent changes to switch type
Austin Clements [Thu, 6 Aug 2009 20:54:13 +0000 (13:54 -0700)]
Make ptrace_linux compile with recent changes to switch type
checking.

R=rsc
APPROVED=rsc
DELTA=11  (0 added, 0 deleted, 11 changed)
OCL=32839
CL=32841

15 years agoadd runtime.GOMAXPROCS, allowing a program to, in effect, set $GOMAXPROCS
Rob Pike [Thu, 6 Aug 2009 20:07:05 +0000 (13:07 -0700)]
add runtime.GOMAXPROCS, allowing a program to, in effect, set $GOMAXPROCS

R=rsc
DELTA=29  (28 added, 1 deleted, 0 changed)
OCL=32829
CL=32837

15 years agok-nucleotide
Rob Pike [Thu, 6 Aug 2009 20:00:26 +0000 (13:00 -0700)]
k-nucleotide

R=rsc
DELTA=367  (366 added, 0 deleted, 1 changed)
OCL=32832
CL=32836

15 years ago- bufio.ReadRune fix for empty reads w/o errors
Robert Griesemer [Thu, 6 Aug 2009 19:05:16 +0000 (12:05 -0700)]
- bufio.ReadRune fix for empty reads w/o errors
- added testcases

R=rsc
DELTA=61  (56 added, 2 deleted, 3 changed)
OCL=32831
CL=32834

15 years agominor fix
Robert Griesemer [Thu, 6 Aug 2009 17:53:29 +0000 (10:53 -0700)]
minor fix

R=rsc
DELTA=2  (1 added, 1 deleted, 0 changed)
OCL=32828
CL=32830

15 years agoparallel spectral-norm
Rob Pike [Thu, 6 Aug 2009 01:44:49 +0000 (18:44 -0700)]
parallel spectral-norm

R=rsc
DELTA=85  (84 added, 1 deleted, 0 changed)
OCL=32810
CL=32810

15 years agospectral-norm
Rob Pike [Thu, 6 Aug 2009 00:25:38 +0000 (17:25 -0700)]
spectral-norm
make regexp-dna use bytes not strings (no significant timing change)

R=rsc
DELTA=149  (138 added, 1 deleted, 10 changed)
OCL=32804
CL=32807

15 years ago- FieldByName lookup through anonymous fields
Robert Griesemer [Wed, 5 Aug 2009 22:56:44 +0000 (15:56 -0700)]
- FieldByName lookup through anonymous fields
- FieldByIndex
- changed StructField.Index type from int -> []int
- adjustments to reflect clients

R=rsc,r
DELTA=336  (263 added, 47 deleted, 26 changed)
OCL=32731
CL=32802

15 years agosupport []byte (more efficient) as well as string in the interfaces.
Rob Pike [Wed, 5 Aug 2009 22:44:45 +0000 (15:44 -0700)]
support []byte (more efficient) as well as string in the interfaces.
change the names; Match is for []byte and MatchString is for string, etc.

R=rsc
DELTA=195  (155 added, 0 deleted, 40 changed)
OCL=32800
CL=32800

15 years agospecial case: recognize '[^\n]' and make it as fast as '.'
Rob Pike [Wed, 5 Aug 2009 21:40:34 +0000 (14:40 -0700)]
special case: recognize '[^\n]' and make it as fast as '.'

R=rsc
DELTA=25  (23 added, 1 deleted, 1 changed)
OCL=32793
CL=32799

15 years agoMake os.RemoveAll return no error if path does not exist.
Austin Clements [Wed, 5 Aug 2009 21:18:54 +0000 (14:18 -0700)]
Make os.RemoveAll return no error if path does not exist.
This fixes a problem introduced by CL 32684 into gobuild,
which used to use 'rm -rf' to remove the _obj directory.

R=rsc
APPROVED=rsc
DELTA=8  (4 added, 0 deleted, 4 changed)
OCL=32794
CL=32796

15 years agoregex-dna
Rob Pike [Wed, 5 Aug 2009 20:03:46 +0000 (13:03 -0700)]
regex-dna

R=rsc
DELTA=243  (242 added, 0 deleted, 1 changed)
OCL=32786
CL=32791

15 years agoImplement struct types, selector expressions, and type
Austin Clements [Wed, 5 Aug 2009 18:49:51 +0000 (11:49 -0700)]
Implement struct types, selector expressions, and type
declarations.

R=rsc
APPROVED=rsc
DELTA=587  (519 added, 21 deleted, 47 changed)
OCL=32754
CL=32788

15 years agofannkuch
Rob Pike [Wed, 5 Aug 2009 18:33:59 +0000 (11:33 -0700)]
fannkuch

R=rsc
DELTA=240  (239 added, 0 deleted, 1 changed)
OCL=32783
CL=32785

15 years agodelay range processing. old2new is gone
Russ Cox [Wed, 5 Aug 2009 09:33:30 +0000 (02:33 -0700)]
delay range processing.  old2new is gone

R=ken
OCL=32780
CL=32780

15 years agodelay := processing
Russ Cox [Wed, 5 Aug 2009 07:42:44 +0000 (00:42 -0700)]
delay := processing

R=ken
OCL=32772
CL=32772

15 years agofix amd64 build
Russ Cox [Wed, 5 Aug 2009 07:11:24 +0000 (00:11 -0700)]
fix amd64 build

R=ken
OCL=32771
CL=32771

15 years agomake Syms smaller.
Russ Cox [Wed, 5 Aug 2009 05:59:23 +0000 (22:59 -0700)]
make Syms smaller.
collapse a lot of duplication in dcl.c
switch to NodeList* from Dcl*

R=ken
OCL=32770
CL=32770

15 years agobinary tree
Rob Pike [Wed, 5 Aug 2009 02:38:08 +0000 (19:38 -0700)]
binary tree

R=rsc
DELTA=324  (323 added, 0 deleted, 1 changed)
OCL=32759
CL=32768

15 years agoget function calls out of the way before
Russ Cox [Wed, 5 Aug 2009 02:16:57 +0000 (19:16 -0700)]
get function calls out of the way before
allocating registers in shift and div.

fix behavior when res == a reserved register.

R=ken
OCL=32765
CL=32767