]> Cypherpunks repositories - gostls13.git/log
gostls13.git
16 years agochange the URL in the test to avoid a redirection that breaks it in sydney.
Rob Pike [Mon, 16 Feb 2009 03:58:00 +0000 (19:58 -0800)]
change the URL in the test to avoid a redirection that breaks it in sydney.

R=rsc
OCL=25054
CL=25054

16 years agoadd os.ForkExec, os.Exec, os.Wait, exec.OpenCmd.
Russ Cox [Mon, 16 Feb 2009 03:35:52 +0000 (19:35 -0800)]
add os.ForkExec, os.Exec, os.Wait, exec.OpenCmd.
as thread-safe as possible, given the surrounding system.
add stub RWLock implementation.

R=r
DELTA=852  (834 added, 6 deleted, 12 changed)
OCL=25046
CL=25053

16 years agoinsert ${GOOS} and ${GOARCH} in
Russ Cox [Mon, 16 Feb 2009 03:20:35 +0000 (19:20 -0800)]
insert ${GOOS} and ${GOARCH} in
command-line comment.

R=r
DELTA=11  (6 added, 0 deleted, 5 changed)
OCL=25051
CL=25051

16 years agocleanups:
Russ Cox [Sun, 15 Feb 2009 22:18:39 +0000 (14:18 -0800)]
cleanups:
get rid of _ on private names in net.
fix os_test file name list.
newline not needed on Errorf.

R=r
DELTA=305  (34 added, 2 deleted, 269 changed)
OCL=25047
CL=25047

16 years agobuild nits
Russ Cox [Sun, 15 Feb 2009 21:41:48 +0000 (13:41 -0800)]
build nits

R=r
DELTA=8  (0 added, 6 deleted, 2 changed)
OCL=25045
CL=25045

16 years agobug fix for &x[0] when x is slice
Russ Cox [Sun, 15 Feb 2009 21:15:46 +0000 (13:15 -0800)]
bug fix for &x[0] when x is slice

R=ken
OCL=25044
CL=25044

16 years ago- accept new composite literal syntax
Robert Griesemer [Sat, 14 Feb 2009 00:27:53 +0000 (16:27 -0800)]
- accept new composite literal syntax
- remove all parsing heuristics
- as a result, accept a wider syntax, but parser is simpler

R=r
OCL=25029
CL=25029

16 years ago- added Makefile change again (lost due to to p4 misuse)
Robert Griesemer [Fri, 13 Feb 2009 23:10:35 +0000 (15:10 -0800)]
- added Makefile change again (lost due to to p4 misuse)

R=rsc
OCL=25026
CL=25026

16 years ago- vector package (identical to array except for names)
Robert Griesemer [Fri, 13 Feb 2009 23:07:56 +0000 (15:07 -0800)]
- vector package (identical to array except for names)
- updated some file (but not all - left array package in place for now)

R=rsc
DELTA=530  (483 added, 0 deleted, 47 changed)
OCL=25025
CL=25025

16 years agoconvert composite literals from { } to ( ).
Russ Cox [Fri, 13 Feb 2009 22:48:32 +0000 (14:48 -0800)]
convert composite literals from { } to ( ).

only non-trivial changes are in
convlit1.go
golden.out

R=gri
OCL=25019
CL=25024

16 years agoadd composite literal ( ) syntax.
Russ Cox [Fri, 13 Feb 2009 22:48:16 +0000 (14:48 -0800)]
add composite literal ( ) syntax.
warn about composite literal { } syntax.

R=ken
OCL=25018
CL=25023

16 years agofix build
Russ Cox [Fri, 13 Feb 2009 22:35:36 +0000 (14:35 -0800)]
fix build

TBR=r
OCL=25021
CL=25021

16 years agolabel declarations not handled properly
Robert Griesemer [Fri, 13 Feb 2009 21:42:43 +0000 (13:42 -0800)]
label declarations not handled properly

R=rsc
DELTA=27  (27 added, 0 deleted, 0 changed)
OCL=25015
CL=25015

16 years ago- fixed bugs related to the empty statement
Robert Griesemer [Fri, 13 Feb 2009 00:06:21 +0000 (16:06 -0800)]
- fixed bugs related to the empty statement
  (now in sync with the spec and with 6g)
- fixed incorrect logging statement in gds

R=r
OCL=24970
CL=24970

16 years ago- syntax for composite literals use () instead of {}
Robert Griesemer [Thu, 12 Feb 2009 05:57:15 +0000 (21:57 -0800)]
- syntax for composite literals use () instead of {}
- do not permit + for array concatenation anymore
  (not implemented and not a good idea)
- document that unsafe function results are compile time constants
- fixed minor typos

DELTA=41  (7 added, 11 deleted, 23 changed)
OCL=24899
CL=24927

16 years agorequire type assertions when narrowing.
Russ Cox [Thu, 12 Feb 2009 01:57:29 +0000 (17:57 -0800)]
require type assertions when narrowing.

R=ken
OCL=24350
CL=24914

16 years agoinsert type assertions when narrowing.
Russ Cox [Thu, 12 Feb 2009 01:55:16 +0000 (17:55 -0800)]
insert type assertions when narrowing.

R=r
OCL=24349
CL=24913

16 years agofix gc bug. i think this is tgs's second bug.
Russ Cox [Thu, 12 Feb 2009 01:54:03 +0000 (17:54 -0800)]
fix gc bug.  i think this is tgs's second bug.
i stumbled across it in all.bash.

TBR=r
OCL=24912
CL=24912

16 years ago- language for embedded interfaces (as discussed this morning)
Robert Griesemer [Wed, 11 Feb 2009 23:09:15 +0000 (15:09 -0800)]
- language for embedded interfaces (as discussed this morning)
- fixed a syntax error

R=r
DELTA=17  (15 added, 0 deleted, 2 changed)
OCL=24876
CL=24889

16 years agoAdded section on package unsafe:
Robert Griesemer [Wed, 11 Feb 2009 21:46:30 +0000 (13:46 -0800)]
Added section on package unsafe:
- contains a (proposed) constant Maxalign
- contains some text re" alignment guarantees

R=ken,r
DELTA=97  (94 added, 1 deleted, 2 changed)
OCL=24791
CL=24871

16 years agochange DirInfo->dirInfo now that 6g export bug is fixed
Rob Pike [Wed, 11 Feb 2009 00:44:04 +0000 (16:44 -0800)]
change DirInfo->dirInfo now that 6g export bug is fixed

R=rsc
DELTA=4  (0 added, 0 deleted, 4 changed)
OCL=24788
CL=24805

16 years agodrop the os_ prefix on the file names in os. os_test.go can stay.
Rob Pike [Wed, 11 Feb 2009 00:40:06 +0000 (16:40 -0800)]
drop the os_ prefix on the file names in os.  os_test.go can stay.

R=rsc
DELTA=793  (392 added, 392 deleted, 9 changed)
OCL=24777
CL=24804

16 years agofix export bug Rob tripped over.
Russ Cox [Tue, 10 Feb 2009 21:57:31 +0000 (13:57 -0800)]
fix export bug Rob tripped over.

the lexer is already hiding names,
so this clumsy hack is no longer necessary.

R=ken
OCL=24783
CL=24783

16 years agoMake Readdirnames work properly on Linux.
Rob Pike [Tue, 10 Feb 2009 19:55:48 +0000 (11:55 -0800)]
Make Readdirnames work properly on Linux.
Refactor so Readdir is portable code.

R=rsc
DELTA=192  (50 added, 130 deleted, 12 changed)
OCL=24770
CL=24772

16 years agoImplement unsafe.Alignof.
Ian Lance Taylor [Tue, 10 Feb 2009 19:46:26 +0000 (11:46 -0800)]
Implement unsafe.Alignof.

R=ken
DELTA=20  (19 added, 0 deleted, 1 changed)
OCL=24719
CL=24771

16 years agoFix Readdirnames to behave properly if reading in little pieces. Requires storing...
Rob Pike [Tue, 10 Feb 2009 19:27:45 +0000 (11:27 -0800)]
Fix Readdirnames to behave properly if reading in little pieces. Requires storing some
state in the FD.

This is Darwin only.  Next CL will make Readdir use Readdirnames to generate its files
and move Readdir into portable code, as well as fix Readdirnames for Linux.

R=rsc
DELTA=116  (79 added, 12 deleted, 25 changed)
OCL=24756
CL=24768

16 years ago- removed obsolete comments
Robert Griesemer [Tue, 10 Feb 2009 18:37:11 +0000 (10:37 -0800)]
- removed obsolete comments

R=r
DELTA=2  (0 added, 1 deleted, 1 changed)
OCL=24755
CL=24760

16 years agoSome real GDS functionality:
Robert Griesemer [Tue, 10 Feb 2009 05:05:14 +0000 (21:05 -0800)]
Some real GDS functionality:
- directory listings w/ working links
- some links working in source code (most don't do the right thing yet)
- use of logging

R=r
OCL=24728
CL=24728

16 years agofix Getdirentries: base comes back in r2.
Rob Pike [Tue, 10 Feb 2009 04:04:36 +0000 (20:04 -0800)]
fix Getdirentries: base comes back in r2.

R=rsc
DELTA=3  (3 added, 0 deleted, 0 changed)
OCL=24727
CL=24727

16 years agosimple accessors for Dir mode bits
Rob Pike [Mon, 9 Feb 2009 20:50:54 +0000 (12:50 -0800)]
simple accessors for Dir mode bits

R=rsc
DELTA=71  (71 added, 0 deleted, 0 changed)
OCL=24687
CL=24694

16 years agotypo. this split-os building thing is frustrating.
Rob Pike [Mon, 9 Feb 2009 19:25:47 +0000 (11:25 -0800)]
typo. this split-os building thing is frustrating.

R=rsc
OCL=24681
CL=24681

16 years agoadd Readdir: returns an array of Dir structures
Rob Pike [Mon, 9 Feb 2009 19:24:35 +0000 (11:24 -0800)]
add Readdir: returns an array of Dir structures

R=rsc
DELTA=200  (176 added, 12 deleted, 12 changed)
OCL=24680
CL=24680

16 years agofix int64/int error - build broken
Rob Pike [Mon, 9 Feb 2009 18:20:15 +0000 (10:20 -0800)]
fix int64/int error - build broken

R=gri
OCL=24678
CL=24678

16 years agoadd error to catch 6g alignment bug.
Russ Cox [Sun, 8 Feb 2009 19:19:45 +0000 (11:19 -0800)]
add error to catch 6g alignment bug.
the fix appears to be to align the
out struct on an 8 boundary, but that
is a bit involved.

R=ken
OCL=24657
CL=24657

16 years agogc funarg return fix.
Russ Cox [Sun, 8 Feb 2009 19:01:52 +0000 (11:01 -0800)]
gc funarg return fix.
change type (to satisfy OAS) after nodarg:
nodarg uses offset from type too,
and must use correct offset.

R=ken
OCL=24656
CL=24656

16 years agoFirst pass at reading directories.
Rob Pike [Sun, 8 Feb 2009 18:18:50 +0000 (10:18 -0800)]
First pass at reading directories.
Syscall support.
Readdirnames returns array of strings of contents of directory.

R=rsc
DELTA=216  (201 added, 0 deleted, 15 changed)
OCL=24642
CL=24655

16 years agoa few small cleanups
Rob Pike [Sun, 8 Feb 2009 18:17:23 +0000 (10:17 -0800)]
a few small cleanups

R=rsc
DELTA=21  (2 added, 2 deleted, 17 changed)
OCL=24638
CL=24654

16 years agouse unsafe.Sizeof
Rob Pike [Sun, 8 Feb 2009 18:16:32 +0000 (10:16 -0800)]
use unsafe.Sizeof

R=rsc
DELTA=9  (3 added, 3 deleted, 3 changed)
OCL=24640
CL=24653

16 years agoupdate sysimport.c for unsafe.Offset and Sizeof
Rob Pike [Sat, 7 Feb 2009 22:48:32 +0000 (14:48 -0800)]
update sysimport.c for unsafe.Offset and Sizeof

R=ken
DELTA=2  (2 added, 0 deleted, 0 changed)
OCL=24643
CL=24643

16 years agochange array padding in structures
Ken Thompson [Sat, 7 Feb 2009 21:31:34 +0000 (13:31 -0800)]
change array padding in structures
to pad to size of element rather
than size of array.

R=r
OCL=24641
CL=24641

16 years agounsafe.Sizeof and unsafe.Offsetof
Ken Thompson [Sat, 7 Feb 2009 20:34:45 +0000 (12:34 -0800)]
unsafe.Sizeof and unsafe.Offsetof

R=r
OCL=24639
CL=24639

16 years agofix up syscall for darwin after StringToBytes change
Rob Pike [Sat, 7 Feb 2009 02:03:13 +0000 (18:03 -0800)]
fix up syscall for darwin after StringToBytes change

R=rsc
DELTA=30  (0 added, 18 deleted, 12 changed)
OCL=24628
CL=24628

16 years agoportable stat for os
Rob Pike [Sat, 7 Feb 2009 01:54:26 +0000 (17:54 -0800)]
portable stat for os
add name to os.FD
clean up some interfaces

R=rsc
DELTA=318  (231 added, 44 deleted, 43 changed)
OCL=24624
CL=24627

16 years agofstat used wrong system call, lstat used wrong type of name
Rob Pike [Sat, 7 Feb 2009 01:10:30 +0000 (17:10 -0800)]
fstat used wrong system call, lstat used wrong type of name

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

16 years ago- removed todo and restriction from spec (closures)
Robert Griesemer [Sat, 7 Feb 2009 01:01:10 +0000 (17:01 -0800)]
- removed todo and restriction from spec (closures)
- fixed typos, added a reminder for a todo

R=r
DELTA=23  (6 added, 4 deleted, 13 changed)
OCL=24611
CL=24615

16 years agobug: empty statement not properly recognized in conjunction w/ labels
Robert Griesemer [Sat, 7 Feb 2009 00:45:37 +0000 (16:45 -0800)]
bug: empty statement not properly recognized in conjunction w/ labels

R=r
DELTA=14  (14 added, 0 deleted, 0 changed)
OCL=24610
CL=24610

16 years agoRecognize gccgo error messages:
Ian Lance Taylor [Fri, 6 Feb 2009 23:57:02 +0000 (15:57 -0800)]
Recognize gccgo error messages:

func4.go:8:11: error: invalid operand for unary '&'
func4.go:9:8: error: invalid left hand side of assignment

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

16 years agosnapshot:
Robert Griesemer [Fri, 6 Feb 2009 23:26:30 +0000 (15:26 -0800)]
snapshot:
- first stab at a Go Documentation Server (gds)
- various fixes to make initial version of gds work

R=r
OCL=24588
CL=24588

16 years agopowser cleanup.
Rob Pike [Fri, 6 Feb 2009 23:03:14 +0000 (15:03 -0800)]
powser cleanup.
- don't need *struct
- don't need item/rat both
- closures make the inner slaves easier
- delete some old BUG comments

powser2 is left mostly alone, for variety.

R=rsc
DELTA=134  (2 added, 20 deleted, 112 changed)
OCL=24579
CL=24581

16 years agotgs's gc bug.
Russ Cox [Fri, 6 Feb 2009 22:41:21 +0000 (14:41 -0800)]
tgs's gc bug.

R=r
DELTA=10  (7 added, 0 deleted, 3 changed)
OCL=24577
CL=24577

16 years agoadd a trivial visitor method, just for fun
Rob Pike [Fri, 6 Feb 2009 22:32:09 +0000 (14:32 -0800)]
add a trivial visitor method, just for fun

R=gri
DELTA=31  (30 added, 1 deleted, 0 changed)
OCL=24568
CL=24575

16 years agoclosures - 6g support
Russ Cox [Fri, 6 Feb 2009 21:47:10 +0000 (13:47 -0800)]
closures - 6g support

R=ken
OCL=24501
CL=24566

16 years agoclosures - runtime and debugger support, test case
Russ Cox [Fri, 6 Feb 2009 21:46:56 +0000 (13:46 -0800)]
closures - runtime and debugger support, test case

R=r
DELTA=257  (250 added, 1 deleted, 6 changed)
OCL=24509
CL=24565

16 years ago- preparation for setting up types
Robert Griesemer [Fri, 6 Feb 2009 19:10:25 +0000 (11:10 -0800)]
- preparation for setting up types
  - moved Object, Type, Scope  out of AST into symboltable
  - moved universe into symboltable
  - removed dead code
- fixed dependency computation (pretty -d filename.go)
- lots of cleanups
- removed tocken channel connection between parser and scanner
  (was cute, but not really needed)

R=r
OCL=24545
CL=24545

16 years ago6c: byte* - byte* should be int64, not int32.
Russ Cox [Fri, 6 Feb 2009 03:09:04 +0000 (19:09 -0800)]
6c: byte* - byte* should be int64, not int32.

R=ken
OCL=24507
CL=24507

16 years agomaking go-spec conform with 6g:
Robert Griesemer [Fri, 6 Feb 2009 00:11:14 +0000 (16:11 -0800)]
making go-spec conform with 6g:
- equality of struct types requires equality of field names

DELTA=4  (0 added, 1 deleted, 3 changed)
OCL=24478
CL=24487

16 years agofurther pedagogy: a channel that satisfies the HTTP server interface
Rob Pike [Thu, 5 Feb 2009 23:56:31 +0000 (15:56 -0800)]
further pedagogy: a channel that satisfies the HTTP server interface

R=rsc
DELTA=18  (18 added, 0 deleted, 0 changed)
OCL=24482
CL=24484

16 years agobug064
Russ Cox [Thu, 5 Feb 2009 23:22:49 +0000 (15:22 -0800)]
bug064

make f(g()) work when g returns multiple
args with names different than f expects.

func swap(a, b int) (c, d int) {
return b, a
}

swap(swap(1,2))

R=ken
OCL=24474
CL=24476

16 years agotake advantage of methods on funcs
Russ Cox [Thu, 5 Feb 2009 23:09:08 +0000 (15:09 -0800)]
take advantage of methods on funcs

R=r
DELTA=14  (0 added, 13 deleted, 1 changed)
OCL=24458
CL=24470

16 years agodo not generate Init proto for sys and unsafe.
Russ Cox [Thu, 5 Feb 2009 22:49:53 +0000 (14:49 -0800)]
do not generate Init proto for sys and unsafe.

R=ken
OCL=24455
CL=24455

16 years ago- caseify parser functions (all but a few should not be exported)
Robert Griesemer [Thu, 5 Feb 2009 22:22:09 +0000 (14:22 -0800)]
- caseify parser functions (all but a few should not be exported)
- more elegant tracing code
- removed some dead code, cleanups

R=r
OCL=24452
CL=24452

16 years agoheuristic to stop pulling .6 in from .a
Russ Cox [Thu, 5 Feb 2009 21:58:43 +0000 (13:58 -0800)]
heuristic to stop pulling .6 in from .a
is not right if the .6 is only for data and
the init function.

instead of that, pick up everything and
let the dead code/data eliminator throw
away the parts that weren't useful.

R=r
DELTA=25  (0 added, 22 deleted, 3 changed)
OCL=24446
CL=24446

16 years agoallow methods on funcs.
Russ Cox [Thu, 5 Feb 2009 21:33:07 +0000 (13:33 -0800)]
allow methods on funcs.

R=ken
OCL=24442
CL=24442

16 years agofix build on thresher - missing constants
Russ Cox [Thu, 5 Feb 2009 21:00:12 +0000 (13:00 -0800)]
fix build on thresher - missing constants

TBR=r
OCL=24439
CL=24439

16 years agoRename function to avoid function redefinition error. Remove
Ian Lance Taylor [Thu, 5 Feb 2009 20:54:15 +0000 (12:54 -0800)]
Rename function to avoid function redefinition error.  Remove
.* from regexp since it confuses DejaGNU which runs gcc's
testsuite.

R=rsc
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=24435
CL=24438

16 years agosnapshot:
Robert Griesemer [Thu, 5 Feb 2009 19:05:02 +0000 (11:05 -0800)]
snapshot:
- ast statements now use interfaces
- deleted old (now unused) code

R=r
OCL=24422
CL=24422

16 years agotoday's snapshot: steps towards using interfaces for statements in ast
Robert Griesemer [Thu, 5 Feb 2009 02:28:41 +0000 (18:28 -0800)]
today's snapshot: steps towards using interfaces for statements in ast

R=r
OCL=24380
CL=24380

16 years agoa few tweaks triggered by tgs's comments
Rob Pike [Wed, 4 Feb 2009 23:13:07 +0000 (15:13 -0800)]
a few tweaks triggered by tgs's comments

DELTA=46  (25 added, 1 deleted, 20 changed)
OCL=24342
CL=24354

16 years agoclean up flags package a bit.
Rob Pike [Wed, 4 Feb 2009 19:46:39 +0000 (11:46 -0800)]
clean up flags package a bit.
fix a bug in Usage message - would print current value instead of default.

R=rsc
DELTA=53  (7 added, 4 deleted, 42 changed)
OCL=24323
CL=24323

16 years agofix interface not satisifed message:
Russ Cox [Wed, 4 Feb 2009 18:37:11 +0000 (10:37 -0800)]
fix interface not satisifed message:

x.go:13: T is not I - missing M()

NOT
x.go:13: T is not I - missing Mfunc()

R=ken
OCL=24316
CL=24316

16 years ago- converted expr representation of ast into a new representation
Robert Griesemer [Wed, 4 Feb 2009 01:44:01 +0000 (17:44 -0800)]
- converted expr representation of ast into a new representation
using interfaces properly => much cleaner code
- converted tracing code to use 'defer' statement
- next steps: convert rest of ast as well

R=r
OCL=24277
CL=24277

16 years agobugs cleanup, including deleting one near-identical duplicate bug
Rob Pike [Wed, 4 Feb 2009 00:59:26 +0000 (16:59 -0800)]
bugs cleanup, including deleting one near-identical duplicate bug

R=rsc
DELTA=52  (15 added, 37 deleted, 0 changed)
OCL=24274
CL=24274

16 years agofix build. missed this file
Russ Cox [Tue, 3 Feb 2009 23:58:13 +0000 (15:58 -0800)]
fix build.  missed this file

TBR=r
OCL=24269
CL=24269

16 years agolibmach:
Russ Cox [Tue, 3 Feb 2009 23:00:09 +0000 (15:00 -0800)]
libmach:
* heuristic to go farther during stack traces.
* significantly improved Linux thread handing.

acid:
* update to new libmach interface.

prof:
* use new libmach interface.
* multiple thread support (derived from Rob's copy).
* first steps toward pprof-like graphs:
  keep counters indexed by pc,callerpc pairs.

R=r
DELTA=909  (576 added, 123 deleted, 210 changed)
OCL=24240
CL=24259

16 years agobufio:
Russ Cox [Tue, 3 Feb 2009 22:16:22 +0000 (14:16 -0800)]
bufio:
* avoid large copies
* NewBufRead, NewBufWrite never fail
* add BufReadWrite

io:
* add io.Close

http, google/net/rpc:
* add, use http.Conn.Hijack

R=r
DELTA=416  (202 added, 123 deleted, 91 changed)
OCL=24153
CL=24238

16 years agominor tweaks
Russ Cox [Tue, 3 Feb 2009 02:59:20 +0000 (18:59 -0800)]
minor tweaks

R=r
DELTA=9  (2 added, 5 deleted, 2 changed)
OCL=24107
CL=24152

16 years agoflesh out http server.
Russ Cox [Tue, 3 Feb 2009 02:01:32 +0000 (18:01 -0800)]
flesh out http server.

convert to uppercase names.

R=r
DELTA=613  (460 added, 61 deleted, 92 changed)
OCL=24139
CL=24145

16 years ago6g return struct fix:
Russ Cox [Mon, 2 Feb 2009 21:41:38 +0000 (13:41 -0800)]
6g return struct fix:
make t->width of funarg struct be width of struct.

emit MOVSL for 4-byte copy.

R=ken
OCL=24108
CL=24111

16 years agomarginally better thread debugging on Linux.
Russ Cox [Mon, 2 Feb 2009 21:26:40 +0000 (13:26 -0800)]
marginally better thread debugging on Linux.

if you clone inside a traced pid, the child
is automatically attached and stopped,
apparently.

R=r
DELTA=63  (41 added, 12 deleted, 10 changed)
OCL=24096
CL=24106

16 years ago- added experimental flag '-def': will print (not parse!)
Robert Griesemer [Mon, 2 Feb 2009 19:51:07 +0000 (11:51 -0800)]
- added experimental flag '-def': will print (not parse!)
'def' instead of 'func', 'const', or 'type'

R=r
OCL=24092
CL=24094

16 years agoslightly better code for the frog fix
Rob Pike [Sun, 1 Feb 2009 00:44:52 +0000 (16:44 -0800)]
slightly better code for the frog fix

R=ken
OCL=24025
CL=24025

16 years agoComplain about control characters that are not white space.
Rob Pike [Sun, 1 Feb 2009 00:42:10 +0000 (16:42 -0800)]
Complain about control characters that are not white space.
Bitten by invisible chars too many times.

R=ken
OCL=24024
CL=24024

16 years agocan finally close this TODO - 6l was broken
Russ Cox [Sat, 31 Jan 2009 01:14:39 +0000 (17:14 -0800)]
can finally close this TODO - 6l was broken

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

16 years agokeep line number history even when
Russ Cox [Sat, 31 Jan 2009 01:10:10 +0000 (17:10 -0800)]
keep line number history even when
throwing away dead code at end of file.

also fix an uninitialized memory error
found by valgrind.

R=r
DELTA=7  (5 added, 2 deleted, 0 changed)
OCL=23991
CL=23994

16 years agoavoid memcpy(x, x),
Russ Cox [Sat, 31 Jan 2009 00:31:26 +0000 (16:31 -0800)]
avoid memcpy(x, x),
which valgrind complains about.

R=ken
OCL=23990
CL=23990

16 years ago- changed pretty parser to parse and print new function type syntax
Robert Griesemer [Fri, 30 Jan 2009 23:31:04 +0000 (15:31 -0800)]
- changed pretty parser to parse and print new function type syntax
- added more test cases
- fixed a bug in test script which prevented errors to show up...

R=r
OCL=23832
CL=23974

16 years agotwo uses of uninitialized memory,
Russ Cox [Fri, 30 Jan 2009 23:11:46 +0000 (15:11 -0800)]
two uses of uninitialized memory,
picked up by valgrind.
fixes test/escape.go on linux.

R=ken
OCL=23971
CL=23971

16 years agoneedless semicolons
Rob Pike [Fri, 30 Jan 2009 23:10:22 +0000 (15:10 -0800)]
needless semicolons

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

16 years agoprint format bug
Russ Cox [Fri, 30 Jan 2009 22:54:49 +0000 (14:54 -0800)]
print format bug

R=ken
OCL=23965
CL=23965

16 years agoTest balloon: Changed the spec to see the implications of changing the
Robert Griesemer [Fri, 30 Jan 2009 22:48:29 +0000 (14:48 -0800)]
Test balloon: Changed the spec to see the implications of changing the
syntax of function types and making them "reference types" like slice,
map, and chan. First step in Russ' proposal.

DELTA=111  (32 added, 15 deleted, 64 changed)
OCL=23669
CL=23964

16 years agoupdate compiler to new func rules
Russ Cox [Fri, 30 Jan 2009 22:39:42 +0000 (14:39 -0800)]
update compiler to new func rules

R=ken
OCL=23958
CL=23961

16 years agoupdate go code tree to new func rules.
Russ Cox [Fri, 30 Jan 2009 22:39:31 +0000 (14:39 -0800)]
update go code tree to new func rules.

R=r
DELTA=367  (111 added, 59 deleted, 197 changed)
OCL=23957
CL=23960

16 years agorename variable at rsc's request
Rob Pike [Fri, 30 Jan 2009 19:14:48 +0000 (11:14 -0800)]
rename variable at rsc's request

R=rsc
DELTA=4  (0 added, 0 deleted, 4 changed)
OCL=23896
CL=23928

16 years agoclean up server code in tutorial
Rob Pike [Fri, 30 Jan 2009 18:18:58 +0000 (10:18 -0800)]
clean up server code in tutorial

R=rsc
DELTA=15  (1 added, 0 deleted, 14 changed)
OCL=23889
CL=23889

16 years agoif take address of local, move to heap.
Russ Cox [Fri, 30 Jan 2009 01:38:58 +0000 (17:38 -0800)]
if take address of local, move to heap.
heuristic to not print bogus strings.
fix one error message format.

R=ken
OCL=23849
CL=23851

16 years ago- removed obsolete files from repository
Robert Griesemer [Fri, 30 Jan 2009 01:00:18 +0000 (17:00 -0800)]
- removed obsolete files from repository
(most of this has been integrated into pretty,
the rest has been archived).

R=r
OCL=23842
CL=23842

16 years ago- make test work with 6g
Robert Griesemer [Thu, 29 Jan 2009 23:16:22 +0000 (15:16 -0800)]
- make test work with 6g

R=r
OCL=23821
CL=23823

16 years agooptimizer bug w STOstring
Ken Thompson [Thu, 29 Jan 2009 23:13:36 +0000 (15:13 -0800)]
optimizer bug w STOstring

R=r
OCL=23820
CL=23820

16 years agoadd stack test
Russ Cox [Thu, 29 Jan 2009 00:58:48 +0000 (16:58 -0800)]
add stack test

R=r
DELTA=48  (48 added, 0 deleted, 0 changed)
OCL=23715
CL=23732

16 years agofix possible infinite recursion in eqtype.
Russ Cox [Thu, 29 Jan 2009 00:42:26 +0000 (16:42 -0800)]
fix possible infinite recursion in eqtype.

don't use intermediate register to move
32-or-fewer-bit immediate constants
into memory.

R=ken
OCL=23726
CL=23726