]> Cypherpunks repositories - gostls13.git/log
gostls13.git
16 years agoremove ( ) around mismatch type prints,
Russ Cox [Tue, 30 Sep 2008 22:38:41 +0000 (15:38 -0700)]
remove ( ) around mismatch type prints,
so that they don't look like functions.

R=ken
OCL=16244
CL=16244

16 years agopretty types; use 6g -t to disable
Russ Cox [Tue, 30 Sep 2008 22:35:40 +0000 (15:35 -0700)]
pretty types; use 6g -t to disable

R=ken
OCL=16240
CL=16242

16 years agotests of new func arg code
Russ Cox [Tue, 30 Sep 2008 21:08:43 +0000 (14:08 -0700)]
tests of new func arg code

R=r
DELTA=41  (41 added, 0 deleted, 0 changed)
OCL=16212
CL=16223

16 years agoi can import "net" in package net
Russ Cox [Tue, 30 Sep 2008 21:03:13 +0000 (14:03 -0700)]
i can import "net" in package net
and still have a variable named "net"

R=r
DELTA=18  (0 added, 0 deleted, 18 changed)
OCL=16220
CL=16222

16 years agofor loops in hashmap.
Russ Cox [Tue, 30 Sep 2008 21:02:53 +0000 (14:02 -0700)]
for loops in hashmap.
a few missing FLUSH.

R=ken
OCL=16221
CL=16221

16 years agocleanup export
Russ Cox [Tue, 30 Sep 2008 20:52:44 +0000 (13:52 -0700)]
cleanup export

R=ken
OCL=16219
CL=16219

16 years agofix export bug for /usr/r/rpc
Russ Cox [Tue, 30 Sep 2008 20:49:31 +0000 (13:49 -0700)]
fix export bug for /usr/r/rpc

R=ken
OCL=16218
CL=16218

16 years agoupdate golden for new error messages
Rob Pike [Tue, 30 Sep 2008 20:07:38 +0000 (13:07 -0700)]
update golden for new error messages

R=rsc
OCL=16213
CL=16213

16 years ago- exceptional conditions during expression evaluation are undefined
Robert Griesemer [Tue, 30 Sep 2008 20:02:50 +0000 (13:02 -0700)]
- exceptional conditions during expression evaluation are undefined
- "nil" for interfaces, comparison against "nil"

R=r
DELTA=38  (24 added, 5 deleted, 9 changed)
OCL=16207
CL=16211

16 years agofix up arg list parsing to handle any names:
Russ Cox [Tue, 30 Sep 2008 19:53:11 +0000 (12:53 -0700)]
fix up arg list parsing to handle any names:

type t1 int;
type t2 int;
type t3 int;
func f1(t1, t2, t3);
func f2(t1, t2, t3 bool);
func f3(t1, t2, x t3);
func f4(*t2, x t3); // error: cannot mix
func f5(t1, *t3);
func (x *t1) f6(y *[]t2) (t1, *t3);
func f7() (int, *string);
func f8(t1, *t2, x t3); // error: cannot mix
func f9() (x int, *string);
func f10(*t2, t3);

R=ken
OCL=16202
CL=16210

16 years ago104, 107, 108: they are known to fail, so mark them appropriately.
Rob Pike [Tue, 30 Sep 2008 19:31:47 +0000 (12:31 -0700)]
104, 107, 108: they are known to fail, so mark them appropriately.
update golden
add the "goroutines" test

R=iant
DELTA=74  (36 added, 23 deleted, 15 changed)
OCL=16194
CL=16206

16 years ago- type of array literals is always fixed array
Robert Griesemer [Tue, 30 Sep 2008 17:57:59 +0000 (10:57 -0700)]
- type of array literals is always fixed array
- changed terminology from "embedded type" to "anonymous field"

R=r
DELTA=38  (7 added, 2 deleted, 29 changed)
OCL=16193
CL=16196

16 years ago- corrections and more on interface types
Robert Griesemer [Tue, 30 Sep 2008 03:37:46 +0000 (20:37 -0700)]
- corrections and more on interface types

R=r
DELTA=35  (12 added, 13 deleted, 10 changed)
OCL=16162
CL=16164

16 years agominor bugs
Ken Thompson [Tue, 30 Sep 2008 03:33:51 +0000 (20:33 -0700)]
minor bugs

R=r
OCL=16163
CL=16163

16 years agofix some typos, mostly
Rob Pike [Tue, 30 Sep 2008 03:06:48 +0000 (20:06 -0700)]
fix some typos, mostly

R=gri
OCL=16161
CL=16161

16 years agoSome initial language towards embedded types and methods for all types.
Robert Griesemer [Tue, 30 Sep 2008 01:41:30 +0000 (18:41 -0700)]
Some initial language towards embedded types and methods for all types.
More to come.

R=r
DELTA=74  (47 added, 8 deleted, 19 changed)
OCL=16156
CL=16159

16 years agoTest that floating point constants resolve to type "float".
Ian Lance Taylor [Tue, 30 Sep 2008 01:17:42 +0000 (18:17 -0700)]
Test that floating point constants resolve to type "float".
Currently 6g seems to resolve them to type "double".

R=ken,r
DELTA=30  (30 added, 0 deleted, 0 changed)
OCL=16132
CL=16152

16 years agoUse unsigned int in itoa to avoid relying on the behaviour of
Ian Lance Taylor [Mon, 29 Sep 2008 20:40:23 +0000 (13:40 -0700)]
Use unsigned int in itoa to avoid relying on the behaviour of
signed integer overflow when negating the most negative
integer.

R=rsc
DELTA=11  (0 added, 7 deleted, 4 changed)
OCL=16105
CL=16120

16 years ago* implement Linux epoll for polling i/o
Russ Cox [Mon, 29 Sep 2008 20:37:00 +0000 (13:37 -0700)]
* implement Linux epoll for polling i/o
* isolate OS-specific polling goop in Pollster type
* move generic poll loop out of fd_darwin.go into fd.go

R=r
DELTA=782  (448 added, 281 deleted, 53 changed)
OCL=16108
CL=16119

16 years agodelete unused files
Russ Cox [Mon, 29 Sep 2008 20:16:28 +0000 (13:16 -0700)]
delete unused files

R=r
DELTA=494  (0 added, 494 deleted, 0 changed)
OCL=16109
CL=16115

16 years agomake bugs not fail
Russ Cox [Mon, 29 Sep 2008 20:16:22 +0000 (13:16 -0700)]
make bugs not fail

R=r
DELTA=6  (0 added, 0 deleted, 6 changed)
OCL=16110
CL=16114

16 years ago- added language about string literal concatenation
Robert Griesemer [Mon, 29 Sep 2008 19:09:00 +0000 (12:09 -0700)]
- added language about string literal concatenation
- added "..." to list of delimiters (slightly re-arranged that table)
- rename of 2 productions for more consistent naming

R=r
DELTA=20  (7 added, 1 deleted, 12 changed)
OCL=16101
CL=16103

16 years agoStoring an out of range constant into a variable should
Ian Lance Taylor [Mon, 29 Sep 2008 18:03:21 +0000 (11:03 -0700)]
Storing an out of range constant into a variable should
ideally cause the compiler to give an error.  Right now 6g
warns about large shifts but does not give an error.  This CL
removes the out of range shift from shift.go, so that it will
work with gccgo, and adds a test case in bugs/ to be fixed at
a later date.

R=ken,r
DELTA=23  (9 added, 14 deleted, 0 changed)
OCL=16085
CL=16088

16 years agotoward methods on any type
Ken Thompson [Mon, 29 Sep 2008 03:22:31 +0000 (20:22 -0700)]
toward methods on any type

R=r
OCL=16068
CL=16068

16 years agobug in simul assignment
Ken Thompson [Sun, 28 Sep 2008 00:46:40 +0000 (17:46 -0700)]
bug in simul assignment

R=r
OCL=16053
CL=16053

16 years ago- allow for embeded types in fields, and parameter lists w/o parameter names
Robert Griesemer [Sun, 28 Sep 2008 00:42:18 +0000 (17:42 -0700)]
- allow for embeded types in fields, and parameter lists w/o parameter names
- temporary work-around for 6g bug

R=r
OCL=16052
CL=16052

16 years ago- added TODO
Robert Griesemer [Sat, 27 Sep 2008 21:51:31 +0000 (14:51 -0700)]
- added TODO
- changed FieldDecl production in preparation for inlined types

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

16 years agochange print(float) from 5 to 7 sig digits
Ken Thompson [Sat, 27 Sep 2008 20:33:50 +0000 (13:33 -0700)]
change print(float) from 5 to 7 sig digits

R=r
OCL=16045
CL=16045

16 years agobug in argument passing
Ken Thompson [Sat, 27 Sep 2008 20:32:38 +0000 (13:32 -0700)]
bug in argument passing

R=r
OCL=16044
CL=16044

16 years agoCorrect zoneinfo version number: it's not 2, it's '2'.
Ian Lance Taylor [Sat, 27 Sep 2008 16:39:37 +0000 (09:39 -0700)]
Correct zoneinfo version number: it's not 2, it's '2'.

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

16 years agoexport
Ken Thompson [Sat, 27 Sep 2008 04:27:26 +0000 (21:27 -0700)]
export
syntax for inheritance

R=r
OCL=16028
CL=16028

16 years agobug with array bounds
Ken Thompson [Sat, 27 Sep 2008 00:41:43 +0000 (17:41 -0700)]
bug with array bounds

R=r
OCL=16021
CL=16023

16 years agoexport
Ken Thompson [Sat, 27 Sep 2008 00:41:23 +0000 (17:41 -0700)]
export

R=r
OCL=16018
CL=16022

16 years ago- added language with respect to init() restrictions
Robert Griesemer [Fri, 26 Sep 2008 23:41:50 +0000 (16:41 -0700)]
- added language with respect to init() restrictions

R=r
DELTA=10  (9 added, 0 deleted, 1 changed)
OCL=16016
CL=16016

16 years agoDarwin kqueue/kevent-based network FDs
Russ Cox [Fri, 26 Sep 2008 21:46:28 +0000 (14:46 -0700)]
Darwin kqueue/kevent-based network FDs

R=r
OCL=15998
CL=16004

16 years agoadd os.Pipe
Russ Cox [Fri, 26 Sep 2008 21:31:17 +0000 (14:31 -0700)]
add os.Pipe

R=r
OCL=15989
CL=16001

16 years agofix build: new net Makefile
Russ Cox [Fri, 26 Sep 2008 21:18:34 +0000 (14:18 -0700)]
fix build: new net Makefile

TBR=r
OCL=15996
CL=15996

16 years agomove src/syscall to src/lib/syscall.
Russ Cox [Fri, 26 Sep 2008 21:11:26 +0000 (14:11 -0700)]
move src/syscall to src/lib/syscall.
enforce rule: all kernel data structures and constants
go in syscall module.
move things that should be in syscall out of net.
make net a single package.

R=r
OCL=15985
CL=15994

16 years agolibmach_amd64: refresh darwin thread list each time we get asked.
Russ Cox [Fri, 26 Sep 2008 21:10:33 +0000 (14:10 -0700)]
libmach_amd64: refresh darwin thread list each time we get asked.

R=r
DELTA=1  (1 added, 0 deleted, 0 changed)
OCL=15982
CL=15993

16 years agogo/acid/go
Russ Cox [Fri, 26 Sep 2008 21:10:26 +0000 (14:10 -0700)]
go/acid/go

R=r
DELTA=99  (95 added, 1 deleted, 3 changed)
OCL=15983
CL=15992

16 years agoSimplification of Conversions section:
Robert Griesemer [Fri, 26 Sep 2008 21:04:21 +0000 (14:04 -0700)]
Simplification of Conversions section:
- leave only basic type conversions in that section
- we have a section of composite literals which covers those
- we have a section prepared (but not written) on type guards
- the built-in function "convert" doesn't need to be exposed
  as it is redundant

R=r
DELTA=101  (6 added, 77 deleted, 18 changed)
OCL=15986
CL=15991

16 years ago- fixed Go statement syntax (only notational change)
Robert Griesemer [Fri, 26 Sep 2008 20:38:38 +0000 (13:38 -0700)]
- fixed Go statement syntax (only notational change)
- simplified Assignment syntax (only notational change)
- added TODOs
- made old text invisible by moving it into HTML comment

R=r
DELTA=107  (4 added, 95 deleted, 8 changed)
OCL=15972
CL=15987

16 years agotest and fix non-blocking chan ops on buffered chans
Russ Cox [Fri, 26 Sep 2008 18:47:04 +0000 (11:47 -0700)]
test and fix non-blocking chan ops on buffered chans

R=ken
DELTA=68  (19 added, 0 deleted, 49 changed)
OCL=15966
CL=15969

16 years agohandle negative numeric constants in import.
Russ Cox [Fri, 26 Sep 2008 18:44:20 +0000 (11:44 -0700)]
handle negative numeric constants in import.
(fixes bugs/bug106)

package bug0
export const A = -1

package bug1
import "bug0"

R=ken
DELTA=21  (19 added, 0 deleted, 2 changed)
OCL=15901
CL=15968

16 years ago1) Fixed spec w/ respect to result types.
Robert Griesemer [Fri, 26 Sep 2008 18:15:14 +0000 (11:15 -0700)]
1) Fixed spec w/ respect to result types.
2) Added proposal for making "if" statements consistent with the
   other control structures.

R=r
DELTA=59  (32 added, 6 deleted, 21 changed)
OCL=15583
CL=15964

16 years agofix ELF bugs found by iant
Russ Cox [Fri, 26 Sep 2008 17:25:13 +0000 (10:25 -0700)]
fix ELF bugs found by iant
- .text begins at INITTEXT, not 0
   and does not include HEADR
- .shstrtab, .gosymtab, .gopclntab have alignment 1
- .gosymtab, .gopclntab have type SHT_PROGBITS

R=r
DELTA=9  (0 added, 0 deleted, 9 changed)
OCL=15953
CL=15956

16 years ago6ar: exit with error status if files cannot be opened.
Russ Cox [Fri, 26 Sep 2008 17:13:57 +0000 (10:13 -0700)]
6ar: exit with error status if files cannot be opened.

R=r
DELTA=15  (8 added, 0 deleted, 7 changed)
OCL=15952
CL=15954

16 years agoAdd test case for 6g bug: result variable does not hide the
Ian Lance Taylor [Fri, 26 Sep 2008 03:31:03 +0000 (20:31 -0700)]
Add test case for 6g bug: result variable does not hide the
package name in the scope.

R=r
DELTA=12  (12 added, 0 deleted, 0 changed)
OCL=15913
CL=15926

16 years agoChange the name of the result variable so that it does not
Ian Lance Taylor [Fri, 26 Sep 2008 00:36:37 +0000 (17:36 -0700)]
Change the name of the result variable so that it does not
hide the package "ip".

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

16 years agoSnapshot.
Robert Griesemer [Fri, 26 Sep 2008 00:20:39 +0000 (17:20 -0700)]
Snapshot.
Added support for function literals, composite literals.
Bug fixes.

R=r
OCL=15911
CL=15911

16 years agoprototype nit
Russ Cox [Fri, 26 Sep 2008 00:07:24 +0000 (17:07 -0700)]
prototype nit

R=r
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=15906
CL=15909

16 years agogobuild -m: replace value of $GOARCH and $GOOS
Russ Cox [Fri, 26 Sep 2008 00:07:06 +0000 (17:07 -0700)]
gobuild -m: replace value of $GOARCH and $GOOS
in Makefile with $(GOARCH) and $(GOOS)

R=r
DELTA=40  (38 added, 0 deleted, 2 changed)
OCL=15905
CL=15908

16 years ago6g misparses negative constants in imports
Russ Cox [Thu, 25 Sep 2008 23:32:39 +0000 (16:32 -0700)]
6g misparses negative constants in imports

R=r
DELTA=8  (8 added, 0 deleted, 0 changed)
OCL=15893
CL=15898

16 years agobug: package identifier not visible
Robert Griesemer [Thu, 25 Sep 2008 22:45:19 +0000 (15:45 -0700)]
bug: package identifier not visible
(should be in the scope chain like any other identifier)

R=r
DELTA=16  (16 added, 0 deleted, 0 changed)
OCL=15884
CL=15884

16 years ago- more missing constructs added
Robert Griesemer [Thu, 25 Sep 2008 22:14:26 +0000 (15:14 -0700)]
- more missing constructs added
- removed excessive ";"'s
- no ()'s around expressions where not needed
- parser.go now reproduced and parseable again

R=r
OCL=15881
CL=15881

16 years ago6g currently accepts setting a string value to an integer
Ian Lance Taylor [Thu, 25 Sep 2008 22:08:52 +0000 (15:08 -0700)]
6g currently accepts setting a string value to an integer
constant without an explicit conversion.  I think that is a
bug.  This adds a test case for it.

Also, change errchk to include the string BUG in error
messages, so that failures are included in the count reported
by the run shell script.

R=r,ken
DELTA=11  (7 added, 0 deleted, 4 changed)
OCL=15857
CL=15880

16 years agosnapshot: more pretty printer stuff
Robert Griesemer [Thu, 25 Sep 2008 18:50:34 +0000 (11:50 -0700)]
snapshot: more pretty printer stuff

R=r
OCL=15863
CL=15863

16 years agoTo get an empty string, return an empty string, not 0.
Ian Lance Taylor [Thu, 25 Sep 2008 17:51:23 +0000 (10:51 -0700)]
To get an empty string, return an empty string, not 0.

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

16 years ago- added names to result signatures to make it compile with gccgo
Robert Griesemer [Thu, 25 Sep 2008 05:01:52 +0000 (22:01 -0700)]
- added names to result signatures to make it compile with gccgo
- adjusted the makefile to explicitly compile flag.go and fmt.go for gccgo

R=r
OCL=15822
CL=15822

16 years agoexport
Ken Thompson [Wed, 24 Sep 2008 23:20:01 +0000 (16:20 -0700)]
export

R=r
OCL=15805
CL=15805

16 years ago- more ast buidling and printing
Robert Griesemer [Wed, 24 Sep 2008 22:50:28 +0000 (15:50 -0700)]
- more ast buidling and printing
- almost complete language reproduced

R=r
OCL=15801
CL=15801

16 years agocleanup; sys.sleep can go.
Russ Cox [Wed, 24 Sep 2008 22:28:03 +0000 (15:28 -0700)]
cleanup; sys.sleep can go.

R=r
OCL=15786
CL=15792

16 years agoearly HTTP library and trivial server
Russ Cox [Wed, 24 Sep 2008 22:26:55 +0000 (15:26 -0700)]
early HTTP library and trivial server

R=r
OCL=15777
CL=15791

16 years agoget rid of per-G Note, avoids per-G kernel semaphore on Mac.
Russ Cox [Wed, 24 Sep 2008 21:13:07 +0000 (14:13 -0700)]
get rid of per-G Note, avoids per-G kernel semaphore on Mac.

2.14u 19.82s 22.17r   6.out 100000 # old
1.87u 0.43s 2.31r   6.out 100000 # new

R=r
OCL=15762
CL=15772

16 years agomore export
Ken Thompson [Wed, 24 Sep 2008 21:12:21 +0000 (14:12 -0700)]
more export

R=r
OCL=15771
CL=15771

16 years agomake prof work on linux
Russ Cox [Wed, 24 Sep 2008 18:07:21 +0000 (11:07 -0700)]
make prof work on linux

R=r
DELTA=18  (11 added, 1 deleted, 6 changed)
OCL=15752
CL=15755

16 years agobug: updated wrong counter when combining values
Rob Pike [Wed, 24 Sep 2008 17:35:59 +0000 (10:35 -0700)]
bug: updated wrong counter when combining values

R=rsc
OCL=15751
CL=15751

16 years agoonly use mach kernel semaphores for actual contention.
Russ Cox [Wed, 24 Sep 2008 17:25:28 +0000 (10:25 -0700)]
only use mach kernel semaphores for actual contention.
running rob's powser p.go:

3.21u 2.58s 5.80r   6.out # old
1.48u 0.05s 1.54r   6.out # new

R=r
OCL=15748
CL=15750

16 years agorudimentary real-time profiler.
Rob Pike [Wed, 24 Sep 2008 01:45:44 +0000 (18:45 -0700)]
rudimentary real-time profiler.
tested on mac only.
output like this:
tubenose=% sudo go/src/cmd/prof/6prof -p 71839 -c  -d 10
63.93% mach_semaphore_signal
 4.64% sys·chansend1
 3.93% chanrecv
 2.86% semrelease
 1.43% cas
 1.43% sendchan
 1.07% xadd
 0.71% main·f
 0.71% scheduler
 0.71% sys·gosched
 0.71% dequeue
 ...

R=rsc
DELTA=361  (361 added, 0 deleted, 0 changed)
OCL=15731
CL=15736

16 years ago- added initial formatting: indentation
Robert Griesemer [Wed, 24 Sep 2008 01:34:17 +0000 (18:34 -0700)]
- added initial formatting: indentation
- more AST nodes built and printed

R=r
OCL=15735
CL=15735

16 years ago- snapshot of pretty printer status
Robert Griesemer [Tue, 23 Sep 2008 23:40:12 +0000 (16:40 -0700)]
- snapshot of pretty printer status
- parts of AST built and printed
- no formatting yet

R=r
OCL=15727
CL=15727

16 years agobetter debuggers:
Rob Pike [Tue, 23 Sep 2008 22:08:39 +0000 (15:08 -0700)]
better debuggers:
- follow through segmented stacks
- a couple of fixes to db

R=rsc
DELTA=72  (62 added, 0 deleted, 10 changed)
OCL=15713
CL=15717

16 years agomore on export
Ken Thompson [Tue, 23 Sep 2008 21:16:41 +0000 (14:16 -0700)]
more on export

R=r
OCL=15704
CL=15704

16 years agofixed export sort for methods
Ken Thompson [Tue, 23 Sep 2008 19:48:52 +0000 (12:48 -0700)]
fixed export sort for methods

R=r
OCL=15699
CL=15699

16 years ago- added gccgo makefile
Robert Griesemer [Tue, 23 Sep 2008 18:17:44 +0000 (11:17 -0700)]
- added gccgo makefile

R=r
OCL=15693
CL=15695

16 years agochange string([]byte) to pass array, rather than &a[0],
Russ Cox [Tue, 23 Sep 2008 03:12:15 +0000 (20:12 -0700)]
change string([]byte) to pass array, rather than &a[0],
to string convert.  if the byte array has length 0,
the computation of &a[0] throws an index bounds error.

for fixed size arrays, this ends up invoking arrays2d
unnecessarily, but it works.

R=ken
DELTA=304  (44 added, 28 deleted, 232 changed)
OCL=15674
CL=15678

16 years ago- first cut at building and printing AST
Robert Griesemer [Tue, 23 Sep 2008 01:26:12 +0000 (18:26 -0700)]
- first cut at building and printing AST

R=r
OCL=15675
CL=15675

16 years agoadd os.Getenv()
Rob Pike [Tue, 23 Sep 2008 00:31:41 +0000 (17:31 -0700)]
add os.Getenv()

R=rsc
DELTA=51  (50 added, 0 deleted, 1 changed)
OCL=15665
CL=15667

16 years agoremove extraneous print
Ken Thompson [Tue, 23 Sep 2008 00:29:12 +0000 (17:29 -0700)]
remove extraneous print

R=r
OCL=15666
CL=15666

16 years agovectors bug
Ken Thompson [Mon, 22 Sep 2008 23:58:30 +0000 (16:58 -0700)]
vectors bug

R=r
OCL=15664
CL=15664

16 years agoimplement zoneinfo reader
Russ Cox [Mon, 22 Sep 2008 23:41:14 +0000 (16:41 -0700)]
implement zoneinfo reader

R=r
DELTA=348  (338 added, 0 deleted, 10 changed)
OCL=15648
CL=15660

16 years agoadd "once" package
Russ Cox [Mon, 22 Sep 2008 23:26:57 +0000 (16:26 -0700)]
add "once" package

R=r
DELTA=79  (79 added, 0 deleted, 0 changed)
OCL=15656
CL=15656

16 years agore-fix bug067, update golden.out
Russ Cox [Mon, 22 Sep 2008 23:16:22 +0000 (16:16 -0700)]
re-fix bug067, update golden.out

R=r
DELTA=9  (4 added, 3 deleted, 2 changed)
OCL=15655
CL=15655

16 years agoimplement spec: when main.main returns, the program exits
Russ Cox [Mon, 22 Sep 2008 20:47:59 +0000 (13:47 -0700)]
implement spec: when main.main returns, the program exits

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

16 years agotest cleanup
Russ Cox [Mon, 22 Sep 2008 20:47:53 +0000 (13:47 -0700)]
test cleanup
- do not print tracebacks if $GOTRACEBACK=0
- set GOTRACEBACK=0 during tests
- filter out pc numbers in errors

R=r
DELTA=70  (22 added, 30 deleted, 18 changed)
OCL=15618
CL=15642

16 years agotime bug: darwin, linux return microseconds not nanoseconds
Russ Cox [Mon, 22 Sep 2008 20:46:57 +0000 (13:46 -0700)]
time bug: darwin, linux return microseconds not nanoseconds

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

16 years agocompiler changes:
Russ Cox [Mon, 22 Sep 2008 19:45:01 +0000 (12:45 -0700)]
compiler changes:
export.c:
- only expose explicitly exported types to importer
- fix behind your back
go.h:
- add deep() prototype (fixes 64-bit linux crash on time.go)
go.y:
- add a new syntax error case
walk.c:
- allow a,b = f() where f is func ptr (fixes bug088)

R=ken
OCL=15617
CL=15630

16 years agonow method/interface code
Ken Thompson [Mon, 22 Sep 2008 19:16:19 +0000 (12:16 -0700)]
now method/interface code

R=r
OCL=15627
CL=15627

16 years agoCorrect two web links, add missing semicolon after &lt.
Ian Lance Taylor [Mon, 22 Sep 2008 18:29:40 +0000 (11:29 -0700)]
Correct two web links, add missing semicolon after &lt.

R=r
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=15619
CL=15624

16 years agobetter yacc rule in Makefile
Russ Cox [Mon, 22 Sep 2008 17:56:54 +0000 (10:56 -0700)]
better yacc rule in Makefile

if y.tab.c is older than y.tab.h, make
interprets doing nothing as a failure,
because y.tab.c hasn't been updated.
so update it.

R=r
DELTA=4  (0 added, 0 deleted, 4 changed)
OCL=15615
CL=15622

16 years agoanother async select bug
Ken Thompson [Sun, 21 Sep 2008 02:56:40 +0000 (19:56 -0700)]
another async select bug

R=r
OCL=15599
CL=15599

16 years agofix some tests
Rob Pike [Sat, 20 Sep 2008 22:16:48 +0000 (15:16 -0700)]
fix some tests

R=ken
OCL=15598
CL=15598

16 years agobug103 - but the fix caused other
Ken Thompson [Sat, 20 Sep 2008 21:59:15 +0000 (14:59 -0700)]
bug103 - but the fix caused other
things to break. hopefully all fixed
now.

R=r
OCL=15597
CL=15597

16 years agochannel test
Ken Thompson [Sat, 20 Sep 2008 03:52:59 +0000 (20:52 -0700)]
channel test

R=r
OCL=15587
CL=15587

16 years agofix bugs in asynch select
Ken Thompson [Sat, 20 Sep 2008 03:43:30 +0000 (20:43 -0700)]
fix bugs in asynch select

R=r
OCL=15586
CL=15586

16 years ago- heuristics for parsing composite literals in some cases
Robert Griesemer [Sat, 20 Sep 2008 01:06:53 +0000 (18:06 -0700)]
- heuristics for parsing composite literals in some cases
- fixed result parsing of function types

R=r
OCL=15585
CL=15585

16 years agoUpdated spec:
Robert Griesemer [Fri, 19 Sep 2008 22:49:55 +0000 (15:49 -0700)]
Updated spec:
- clarified constants and constant expressions
- clarified type of array composite literals (fixed vs open arrays)
- clarified type of map composite literals (need to use '&' to get
  a map pointer)
- added proposal for "if-else" (TBD)
- added TODO w/ respect to "x, ok = <-ch" (and for arrays)

R=r
DELTA=51  (35 added, 0 deleted, 16 changed)
OCL=15573
CL=15575

16 years agoexport an os.Error constructor
Russ Cox [Fri, 19 Sep 2008 22:23:16 +0000 (15:23 -0700)]
export an os.Error constructor

R=r
DELTA=20  (6 added, 7 deleted, 7 changed)
OCL=15569
CL=15571

16 years agoCheck for specific error messages in the testsuite. This
Ian Lance Taylor [Fri, 19 Sep 2008 21:39:49 +0000 (14:39 -0700)]
Check for specific error messages in the testsuite.  This
permits testing that the compiler emits error messages for
specific lines that match egrep regexps.  The desired error
messages are expressed using comments of the form
// ERROR "regexp"

R=r
DELTA=90  (73 added, 8 deleted, 9 changed)
OCL=15513
CL=15566

16 years agomore nuanced handling of usage message to allow user control.
Rob Pike [Fri, 19 Sep 2008 19:52:00 +0000 (12:52 -0700)]
more nuanced handling of usage message to allow user control.
also print argv(0) in default message

R=gri
DELTA=37  (21 added, 9 deleted, 7 changed)
OCL=15540
CL=15554