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

15 years agomove various bits of code around
Russ Cox [Wed, 5 Aug 2009 01:43:32 +0000 (18:43 -0700)]
move various bits of code around
and delete some dead code.
no actual changes here.

R=ken
OCL=32764
CL=32764

15 years agofix division bug
Russ Cox [Wed, 5 Aug 2009 00:59:10 +0000 (17:59 -0700)]
fix division bug

R=ken
OCL=32760
CL=32760

15 years agoadd info about Sqrt instruction
Rob Pike [Wed, 5 Aug 2009 00:31:19 +0000 (17:31 -0700)]
add info about Sqrt instruction
couple of fixes to timing.sh

R=rsc
DELTA=10  (5 added, 0 deleted, 5 changed)
OCL=32742
CL=32756

15 years agodelayed evaluation of var blocks
Russ Cox [Tue, 4 Aug 2009 23:53:06 +0000 (16:53 -0700)]
delayed evaluation of var blocks

R=ken
OCL=32750
CL=32753

15 years agofix build
Rob Pike [Tue, 4 Aug 2009 22:35:58 +0000 (15:35 -0700)]
fix build

R=gri,rsc
OCL=32748
CL=32748

15 years agonbody benchmark
Rob Pike [Tue, 4 Aug 2009 21:27:46 +0000 (14:27 -0700)]
nbody benchmark
timing.sh improvements

R=rsc
DELTA=334  (319 added, 0 deleted, 15 changed)
OCL=32734
CL=32736

15 years agotrailing newlines
Russ Cox [Tue, 4 Aug 2009 21:22:23 +0000 (14:22 -0700)]
trailing newlines

R=r
DELTA=0  (0 added, 0 deleted, 0 changed)
OCL=32730
CL=32735

15 years agoimprove myrandom() in fasta.
Rob Pike [Tue, 4 Aug 2009 21:07:17 +0000 (14:07 -0700)]
improve myrandom() in fasta.
add script to automate timing

R=rsc
DELTA=78  (68 added, 0 deleted, 10 changed)
OCL=32729
CL=32732

15 years agoanother benchmark: reverse-complement
Rob Pike [Tue, 4 Aug 2009 20:04:37 +0000 (13:04 -0700)]
another benchmark: reverse-complement

R=rsc
DELTA=682  (511 added, 171 deleted, 0 changed)
OCL=32725
CL=32727

15 years agomove select into its own file.
Russ Cox [Tue, 4 Aug 2009 19:57:48 +0000 (12:57 -0700)]
move select into its own file.
split into typecheck + walk

R=ken
OCL=32726
CL=32726

15 years agotype checking of assignments, switch, if, for
Russ Cox [Tue, 4 Aug 2009 17:26:29 +0000 (10:26 -0700)]
type checking of assignments, switch, if, for

R=ken
OCL=32716
CL=32720

15 years agoclean up the code a bit
Rob Pike [Tue, 4 Aug 2009 17:13:58 +0000 (10:13 -0700)]
clean up the code a bit
start a log of progress

R=rsc
DELTA=222  (185 added, 17 deleted, 20 changed)
OCL=32701
CL=32718

15 years agobenchmark checkpoint milestone checkin submission
Rob Pike [Tue, 4 Aug 2009 04:03:58 +0000 (21:03 -0700)]
benchmark checkpoint milestone checkin submission

R=rsc
DELTA=311  (311 added, 0 deleted, 0 changed)
OCL=32696
CL=32699

15 years agoprint profile to stderr. sheesh.
Rob Pike [Tue, 4 Aug 2009 04:03:40 +0000 (21:03 -0700)]
print profile to stderr.  sheesh.

R=rsc
DELTA=40  (0 added, 0 deleted, 40 changed)
OCL=32694
CL=32698

15 years agoWriteString
Rob Pike [Tue, 4 Aug 2009 01:28:05 +0000 (18:28 -0700)]
WriteString

R=rsc
DELTA=41  (41 added, 0 deleted, 0 changed)
OCL=32692
CL=32697

15 years agothis time really clean up a TODO
Rob Pike [Mon, 3 Aug 2009 22:27:15 +0000 (15:27 -0700)]
this time really clean up a TODO

R=rsc
DELTA=28  (0 added, 20 deleted, 8 changed)
OCL=32676
CL=32684

15 years agoclean up a TODO
Rob Pike [Mon, 3 Aug 2009 21:07:19 +0000 (14:07 -0700)]
clean up a TODO

R=rsc
DELTA=45  (28 added, 4 deleted, 13 changed)
OCL=32673
CL=32675

15 years agodon't crash printing a nil map
Rob Pike [Mon, 3 Aug 2009 20:34:20 +0000 (13:34 -0700)]
don't crash printing a nil map

R=rsc
DELTA=19  (18 added, 0 deleted, 1 changed)
OCL=32656
CL=32670

15 years agomore 6g reorg; checkpoint.
Russ Cox [Mon, 3 Aug 2009 18:58:52 +0000 (11:58 -0700)]
more 6g reorg; checkpoint.
typecheck.c is now responsible for all type checking
except for assignment and function argument "..."

R=ken
OCL=32661
CL=32667

15 years agoprinter.go:
Robert Griesemer [Mon, 3 Aug 2009 16:53:00 +0000 (09:53 -0700)]
printer.go:
- emit line tag id's in html mode
- support for general html tags
- better names for a few identifiers

godoc.go:
- emit links from exported names to source code
  (actual placement needs fine-tuning)

R=rsc
DELTA=108  (68 added, 4 deleted, 36 changed)
OCL=32639
CL=32654

15 years agofix long-standing bug in doc reader:
Robert Griesemer [Sat, 1 Aug 2009 01:40:11 +0000 (18:40 -0700)]
fix long-standing bug in doc reader:
- replace forward-declared types with complete
  declaration when it is found

R=rsc
DELTA=23  (15 added, 0 deleted, 8 changed)
OCL=32618
CL=32618

15 years agolanguage re: conversion of left operand in shift operations
Robert Griesemer [Sat, 1 Aug 2009 01:05:07 +0000 (18:05 -0700)]
language re: conversion of left operand in shift operations

DELTA=5  (5 added, 0 deleted, 0 changed)
OCL=32484
CL=32617

15 years agoprinter:
Robert Griesemer [Sat, 1 Aug 2009 01:04:53 +0000 (18:04 -0700)]
printer:
- prepare for generation of HTML id tags and links
- do HTML-escaping in central print routine
- move tabwriter setup into printer
- fixed various TODOs

godoc:
- removed tabwriter setup, need for various HTML-escaping

R=rsc
DELTA=210  (107 added, 36 deleted, 67 changed)
OCL=32612
CL=32616

15 years agomore info about comments
Rob Pike [Sat, 1 Aug 2009 00:54:00 +0000 (17:54 -0700)]
more info about comments

R=rsc
DELTA=100  (82 added, 4 deleted, 14 changed)
OCL=32609
CL=32615

15 years agoImplement type compatibility and fix places where I thought
Austin Clements [Sat, 1 Aug 2009 00:11:34 +0000 (17:11 -0700)]
Implement type compatibility and fix places where I thought
types were supposed to be identical but only needed to be
compatible.  This gets rid of the Type.literal method.  I
renamed the Type.rep method to Type.lit because I believe it
corresponds to the term "literal" as used in the spec.

R=rsc
APPROVED=rsc
DELTA=228  (57 added, 35 deleted, 136 changed)
OCL=32606
CL=32608

15 years agoImplement var declarations. Variables, constants, and types now carry
Austin Clements [Fri, 31 Jul 2009 22:51:27 +0000 (15:51 -0700)]
Implement var declarations.  Variables, constants, and types now carry
the position where they were defined so I can produce good
error messages on redefinitions.

R=rsc
APPROVED=rsc
DELTA=204  (126 added, 13 deleted, 65 changed)
OCL=32599
CL=32605

15 years agoadd test of invariant in findVar
Rob Pike [Fri, 31 Jul 2009 19:52:03 +0000 (12:52 -0700)]
add test of invariant in findVar

R=rsc
DELTA=23  (23 added, 0 deleted, 0 changed)
OCL=32592
CL=32595

15 years agodelete unused arg to empty.
Rob Pike [Fri, 31 Jul 2009 19:42:29 +0000 (12:42 -0700)]
delete unused arg to empty.
add commentary about findVar's invariant.

R=rsc
DELTA=6  (3 added, 0 deleted, 3 changed)
OCL=32583
CL=32594

15 years agomake %v and %p consistent
Rob Pike [Fri, 31 Jul 2009 19:42:21 +0000 (12:42 -0700)]
make %v and %p consistent

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

15 years agocleanup pass before big edits
Rob Pike [Fri, 31 Jul 2009 18:41:30 +0000 (11:41 -0700)]
cleanup pass before big edits

R=rsc
DELTA=73  (27 added, 25 deleted, 21 changed)
OCL=32587
CL=32587

15 years agomissed in last checkin
Russ Cox [Fri, 31 Jul 2009 16:45:39 +0000 (09:45 -0700)]
missed in last checkin

R=ken
OCL=32581
CL=32581

15 years agocheckpoint; still plenty to clean up
Russ Cox [Fri, 31 Jul 2009 16:29:28 +0000 (09:29 -0700)]
checkpoint; still plenty to clean up

R=ken
OCL=32576
CL=32580

15 years ago- don't call String method of AST nodes when converting them to text
Robert Griesemer [Fri, 31 Jul 2009 02:39:47 +0000 (19:39 -0700)]
- don't call String method of AST nodes when converting them to text
- make token.Position.String more robust

TBR=rsc
DELTA=20  (10 added, 6 deleted, 4 changed)
OCL=32564
CL=32564

15 years agobug fix
Robert Griesemer [Fri, 31 Jul 2009 02:29:31 +0000 (19:29 -0700)]
bug fix

R=rsc
OCL=32563
CL=32563

15 years agodelete some code from walkexpr that is now
Russ Cox [Fri, 31 Jul 2009 01:56:44 +0000 (18:56 -0700)]
delete some code from walkexpr that is now
handled by typecheck.

second switch is gone

move floating point minus into back end

R=ken
OCL=32558
CL=32558

15 years agodotted names
Rob Pike [Fri, 31 Jul 2009 01:17:07 +0000 (18:17 -0700)]
dotted names

R=rsc
DELTA=28  (19 added, 0 deleted, 9 changed)
OCL=32550
CL=32554

15 years agogo/ast/filter.go:
Robert Griesemer [Fri, 31 Jul 2009 01:13:55 +0000 (18:13 -0700)]
go/ast/filter.go:
- more orthogonal functionality of filter functions for better re-use

go/doc/doc.go:
- simplified interface
- collect filenames of packages so that they can be shown

godoc:
- removed TODO, show list of package (linked) files used to create documentation

R=rsc
DELTA=130  (68 added, 24 deleted, 38 changed)
OCL=32549
CL=32552

15 years agoString method for token.Position. Extracted from gri's tree.
Austin Clements [Thu, 30 Jul 2009 23:58:19 +0000 (16:58 -0700)]
String method for token.Position.  Extracted from gri's tree.

R=gri
APPROVED=gri
DELTA=33  (20 added, 6 deleted, 7 changed)
OCL=32544
CL=32546

15 years agofix a long-standing typo
Rob Pike [Thu, 30 Jul 2009 23:57:46 +0000 (16:57 -0700)]
fix a long-standing typo

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

15 years agotypechecking checkpoint.
Russ Cox [Thu, 30 Jul 2009 23:53:08 +0000 (16:53 -0700)]
typechecking checkpoint.
started to move typechecking to another file.
can build entire tree still, but lots of work
is duplicated.  much to clean up.

R=ken
OCL=32536
CL=32543

15 years agouse errchk in more places.
Russ Cox [Thu, 30 Jul 2009 23:46:14 +0000 (16:46 -0700)]
use errchk in more places.
let errchk exit 0 even if it has reported a BUG.
it echoed BUG and that's all that matters.

R=r
DELTA=143  (1 added, 89 deleted, 53 changed)
OCL=32533
CL=32542

15 years agoImplement labels, goto, labeled break, and labeled continue.
Austin Clements [Thu, 30 Jul 2009 21:39:27 +0000 (14:39 -0700)]
Implement labels, goto, labeled break, and labeled continue.
Return checking is now done as a general flow check at the end
of function compilation, since break and goto complicated the
way I was doing return checking before.  Goto-over-declaration
checking is also done as a final flow check.

Temporary variables used for effect extraction are now
actually temporary.  Otherwise "op=", "++", and "--" appear as
declarations that cannot be jumped over.

R=rsc
APPROVED=rsc
DELTA=421  (344 added, 38 deleted, 39 changed)
OCL=32527
CL=32535

15 years agouse full path on command line when compiling,
Russ Cox [Thu, 30 Jul 2009 19:54:38 +0000 (12:54 -0700)]
use full path on command line when compiling,
so that gdb shows full path in stack traces.

R=r
DELTA=4  (4 added, 0 deleted, 0 changed)
OCL=32522
CL=32528

15 years agofix build on amd64
Russ Cox [Thu, 30 Jul 2009 18:03:58 +0000 (11:03 -0700)]
fix build on amd64

R=ken
OCL=32521
CL=32521

15 years agofixed golden.out, which is what 32496 should have done.
Russ Cox [Thu, 30 Jul 2009 01:33:31 +0000 (18:33 -0700)]
fixed golden.out, which is what 32496 should have done.
roll back 32496

TBR=austin
OCL=32499
CL=32501

15 years agofix build
Russ Cox [Thu, 30 Jul 2009 01:18:12 +0000 (18:18 -0700)]
fix build

TBR=austin
OCL=32496
CL=32496

15 years agohandle unsupported types safely.
Rob Pike [Thu, 30 Jul 2009 00:24:25 +0000 (17:24 -0700)]
handle unsupported types safely.

R=rsc
DELTA=154  (71 added, 6 deleted, 77 changed)
OCL=32483
CL=32492

15 years agoparser:
Robert Griesemer [Thu, 30 Jul 2009 00:01:09 +0000 (17:01 -0700)]
parser:
- Changed filter function for parser.ParsePackage to
  take an *os.Dir instead of a filename for more
  powerful filters

- Removed TODO in ast.PackageInterface: Now collect
  package comments from all package files

- Cleanups in godoc: Use the new ParsePackage and
  PackageInterface functions; as a result computing
  package information is much simpler now.

R=rsc
DELTA=285  (80 added, 110 deleted, 95 changed)
OCL=32473
CL=32486

15 years agobreak tabwriter columns when starting a new block of indented statements
Robert Griesemer [Wed, 29 Jul 2009 23:23:17 +0000 (16:23 -0700)]
break tabwriter columns when starting a new block of indented statements

R=r
DELTA=16  (15 added, 0 deleted, 1 changed)
OCL=32475
CL=32481

15 years agobug136 unfixed
Russ Cox [Wed, 29 Jul 2009 22:39:05 +0000 (15:39 -0700)]
bug136 unfixed

R=austin
DELTA=35  (21 added, 14 deleted, 0 changed)
OCL=32469
CL=32474

15 years agofix typo
Rob Pike [Wed, 29 Jul 2009 22:33:12 +0000 (15:33 -0700)]
fix typo

R=rsc
OCL=32472
CL=32472

15 years agoanother test error tweak
Russ Cox [Wed, 29 Jul 2009 22:30:54 +0000 (15:30 -0700)]
another test error tweak

5 known bugs; 0 unexpected bugs; test output differs

R=r
DELTA=3  (2 added, 0 deleted, 1 changed)
OCL=32468
CL=32470

15 years agoclean up EOF
Rob Pike [Wed, 29 Jul 2009 22:24:42 +0000 (15:24 -0700)]
clean up EOF

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

15 years agotweak final line of test output:
Russ Cox [Wed, 29 Jul 2009 22:11:19 +0000 (15:11 -0700)]
tweak final line of test output:

4 known bugs; 0 unexpected bugs

which should be less scary to people
unfamiliar with the tests.

R=r
DELTA=44  (29 added, 12 deleted, 3 changed)
OCL=32460
CL=32464

15 years agohandle some error conditions involving bad data.
Rob Pike [Wed, 29 Jul 2009 22:10:29 +0000 (15:10 -0700)]
handle some error conditions involving bad data.

R=rsc
DELTA=32  (24 added, 1 deleted, 7 changed)
OCL=32461
CL=32463

15 years agobreak and continue fixes
Russ Cox [Wed, 29 Jul 2009 21:49:01 +0000 (14:49 -0700)]
break and continue fixes

labeled break/continue was using
first loop with any label,
not first loop with the right label.

R=ken
OCL=32453
CL=32458

15 years agostatistics HTML page for rpc
Rob Pike [Wed, 29 Jul 2009 20:26:49 +0000 (13:26 -0700)]
statistics HTML page for rpc

R=rsc
DELTA=121  (115 added, 0 deleted, 6 changed)
OCL=32427
CL=32429

15 years agointroduce typecheck pass before walkexpr.
Russ Cox [Wed, 29 Jul 2009 19:47:51 +0000 (12:47 -0700)]
introduce typecheck pass before walkexpr.
not complete but compiler still works.

R=ken
OCL=32424
CL=32426

15 years agoconvert walkexpr to take Node**; drop indir
Russ Cox [Wed, 29 Jul 2009 19:00:34 +0000 (12:00 -0700)]
convert walkexpr to take Node**; drop indir

R=ken
OCL=32421
CL=32421

15 years agoFlatten the Frame tree. Now each function call produces a
Austin Clements [Wed, 29 Jul 2009 18:57:46 +0000 (11:57 -0700)]
Flatten the Frame tree.  Now each function call produces a
single frame and non-overlapping variables reuse frame slots.
As a result, entering and exiting blocks no longer requires
code execution, which means jumps across block boundaries
should be doable now.  Frame slot initialization happens at
definition time now, instead of at frame creation time.  As an
added bonus, Scope's are now exclusively compile-time objects
and we no longer need to specially track the function
activation frame for access to out vars.

R=rsc
APPROVED=rsc
DELTA=313  (102 added, 90 deleted, 121 changed)
OCL=32416
CL=32420

15 years agoexpression printer; %#N
Russ Cox [Wed, 29 Jul 2009 18:51:34 +0000 (11:51 -0700)]
expression printer; %#N

R=ken
OCL=32419
CL=32419

15 years agoquietgcc: do not use -m64 on 32-bit machines
Russ Cox [Wed, 29 Jul 2009 18:47:11 +0000 (11:47 -0700)]
quietgcc: do not use -m64 on 32-bit machines

R=r
DELTA=9  (8 added, 0 deleted, 1 changed)
OCL=32413
CL=32418