Ian Lance Taylor
2fb4edd3e1
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
2008-09-27 09:39:37 -07:00
Ken Thompson
9f3d600be6
export
...
syntax for inheritance
R=r
OCL=16028
CL=16028
2008-09-26 21:27:26 -07:00
Ken Thompson
fb86c39362
bug with array bounds
...
R=r
OCL=16021
CL=16023
2008-09-26 17:41:43 -07:00
Ken Thompson
8545700af8
export
...
R=r
OCL=16018
CL=16022
2008-09-26 17:41:23 -07:00
Robert Griesemer
566e3b2043
- added language with respect to init() restrictions
...
R=r
DELTA=10 (9 added, 0 deleted, 1 changed)
OCL=16016
CL=16016
2008-09-26 16:41:50 -07:00
Russ Cox
43c5e63c00
Darwin kqueue/kevent-based network FDs
...
R=r
OCL=15998
CL=16004
2008-09-26 14:46:28 -07:00
Russ Cox
5267db394c
add os.Pipe
...
R=r
OCL=15989
CL=16001
2008-09-26 14:31:17 -07:00
Russ Cox
185a309737
fix build: new net Makefile
...
TBR=r
OCL=15996
CL=15996
2008-09-26 14:18:34 -07:00
Russ Cox
6201a963f1
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
2008-09-26 14:11:26 -07:00
Russ Cox
2662aad7b7
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
2008-09-26 14:10:33 -07:00
Russ Cox
72154b042f
go/acid/go
...
R=r
DELTA=99 (95 added, 1 deleted, 3 changed)
OCL=15983
CL=15992
2008-09-26 14:10:26 -07:00
Robert Griesemer
133c68e9ac
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
2008-09-26 14:04:21 -07:00
Robert Griesemer
b9f8b9c43a
- 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
2008-09-26 13:38:38 -07:00
Russ Cox
d448d18cb4
test and fix non-blocking chan ops on buffered chans
...
R=ken
DELTA=68 (19 added, 0 deleted, 49 changed)
OCL=15966
CL=15969
2008-09-26 11:47:04 -07:00
Russ Cox
c3d841f5d4
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
2008-09-26 11:44:20 -07:00
Robert Griesemer
ac05579345
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
2008-09-26 11:15:14 -07:00
Russ Cox
2c52881a85
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
2008-09-26 10:25:13 -07:00
Russ Cox
a0e7937243
6ar: exit with error status if files cannot be opened.
...
R=r
DELTA=15 (8 added, 0 deleted, 7 changed)
OCL=15952
CL=15954
2008-09-26 10:13:57 -07:00
Ian Lance Taylor
6270e70b76
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
2008-09-25 20:31:03 -07:00
Ian Lance Taylor
f023b7a997
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
2008-09-25 17:36:37 -07:00
Robert Griesemer
3548350d3e
Snapshot.
...
Added support for function literals, composite literals.
Bug fixes.
R=r
OCL=15911
CL=15911
2008-09-25 17:20:39 -07:00
Russ Cox
d4edee3dd0
prototype nit
...
R=r
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=15906
CL=15909
2008-09-25 17:07:24 -07:00
Russ Cox
34bb7a0bb2
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
2008-09-25 17:07:06 -07:00
Russ Cox
eeeaf6b931
6g misparses negative constants in imports
...
R=r
DELTA=8 (8 added, 0 deleted, 0 changed)
OCL=15893
CL=15898
2008-09-25 16:32:39 -07:00
Robert Griesemer
b6429768c6
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
2008-09-25 15:45:19 -07:00
Robert Griesemer
8415280699
- 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
2008-09-25 15:14:26 -07:00
Ian Lance Taylor
b70d42f323
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
2008-09-25 15:08:52 -07:00
Robert Griesemer
c51195386e
snapshot: more pretty printer stuff
...
R=r
OCL=15863
CL=15863
2008-09-25 11:50:34 -07:00
Ian Lance Taylor
99ec031391
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
2008-09-25 10:51:23 -07:00
Robert Griesemer
2a19d7dc42
- 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
2008-09-24 22:01:52 -07:00
Ken Thompson
bcd07252e1
export
...
R=r
OCL=15805
CL=15805
2008-09-24 16:20:01 -07:00
Robert Griesemer
c5a29a6dd4
- more ast buidling and printing
...
- almost complete language reproduced
R=r
OCL=15801
CL=15801
2008-09-24 15:50:28 -07:00
Russ Cox
afd04fdb98
cleanup; sys.sleep can go.
...
R=r
OCL=15786
CL=15792
2008-09-24 15:28:03 -07:00
Russ Cox
42b7789a92
early HTTP library and trivial server
...
R=r
OCL=15777
CL=15791
2008-09-24 15:26:55 -07:00
Russ Cox
a61bb95497
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
2008-09-24 14:13:07 -07:00
Ken Thompson
5f0a5e7a13
more export
...
R=r
OCL=15771
CL=15771
2008-09-24 14:12:21 -07:00
Russ Cox
3f106f976a
make prof work on linux
...
R=r
DELTA=18 (11 added, 1 deleted, 6 changed)
OCL=15752
CL=15755
2008-09-24 11:07:21 -07:00
Rob Pike
c79dffd5ef
bug: updated wrong counter when combining values
...
R=rsc
OCL=15751
CL=15751
2008-09-24 10:35:59 -07:00
Russ Cox
5ff12f871f
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
2008-09-24 10:25:28 -07:00
Rob Pike
eea21f8b85
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
2008-09-23 18:45:44 -07:00
Robert Griesemer
83267dce11
- added initial formatting: indentation
...
- more AST nodes built and printed
R=r
OCL=15735
CL=15735
2008-09-23 18:34:17 -07:00
Robert Griesemer
09bed25621
- snapshot of pretty printer status
...
- parts of AST built and printed
- no formatting yet
R=r
OCL=15727
CL=15727
2008-09-23 16:40:12 -07:00
Rob Pike
7c48a39423
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
2008-09-23 15:08:39 -07:00
Ken Thompson
1101d406ec
more on export
...
R=r
OCL=15704
CL=15704
2008-09-23 14:16:41 -07:00
Ken Thompson
dc04d096f0
fixed export sort for methods
...
R=r
OCL=15699
CL=15699
2008-09-23 12:48:52 -07:00
Robert Griesemer
b390608636
- added gccgo makefile
...
R=r
OCL=15693
CL=15695
2008-09-23 11:17:44 -07:00
Russ Cox
5383e28ea0
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
2008-09-22 20:12:15 -07:00
Robert Griesemer
c13c03c261
- first cut at building and printing AST
...
R=r
OCL=15675
CL=15675
2008-09-22 18:26:12 -07:00
Rob Pike
4d12c0e170
add os.Getenv()
...
R=rsc
DELTA=51 (50 added, 0 deleted, 1 changed)
OCL=15665
CL=15667
2008-09-22 17:31:41 -07:00
Ken Thompson
4332e0a546
remove extraneous print
...
R=r
OCL=15666
CL=15666
2008-09-22 17:29:12 -07:00