]>
Cypherpunks repositories - gostls13.git/log
Russ Cox [Sat, 4 Apr 2009 06:20:51 +0000 (23:20 -0700)]
fix both of anton's bugs:
* make([100]int) was being compiled to
make([]int), kind of.
* []this = [100]that was working for any this, that.
turned up a typo in pipe_test.go
R=ken
OCL=27081
CL=27081
Robert Griesemer [Fri, 3 Apr 2009 23:19:22 +0000 (16:19 -0700)]
Daily snapshot.
- godoc now supports the following url prefixes:
/doc/ for package documentation
/file/ for files (directories, html, and .go files)
/spec for the spec
/mem for the memory model
- formatting of comments has been fixed
- tons of minor cleanups (still more to do)
Still missing:
- pretty printing of source is not as pretty as it used to be
(still a relict from the massive AST cleanup which has't quite made it's way everywhere)
- documentation entries should be sorted
- comments in code is not printed or not properly printed
TBR=r
DELTA=416 (182 added, 100 deleted, 134 changed)
OCL=27078
CL=27078
Robert Griesemer [Fri, 3 Apr 2009 06:26:55 +0000 (23:26 -0700)]
change in negation
R=rsc
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=27061
CL=27061
Rob Pike [Fri, 3 Apr 2009 06:03:41 +0000 (23:03 -0700)]
an attempt at simpler yet more correct semicolon rules.
(i'd be happy to drop the paren one as well, reducing it to one case)
DELTA=4 (0 added, 3 deleted, 1 changed)
OCL=27058
CL=27060
Robert Griesemer [Fri, 3 Apr 2009 05:59:57 +0000 (22:59 -0700)]
require ";" separator after function literals
R=rsc
DELTA=1 (1 added, 0 deleted, 0 changed)
OCL=27057
CL=27059
Robert Griesemer [Fri, 3 Apr 2009 05:39:52 +0000 (22:39 -0700)]
- don't show methods of non-exported types
(even if the methods are exported)
R=rsc
OCL=27056
CL=27056
Robert Griesemer [Fri, 3 Apr 2009 05:24:52 +0000 (22:24 -0700)]
- renamed hasPostfix -> hasSuffix
- fixed printing of function literals (require separating ";")
R=rsc
OCL=27055
CL=27055
Robert Griesemer [Fri, 3 Apr 2009 04:59:37 +0000 (21:59 -0700)]
- moved functions before types in doc output (per rsc)
- use /src and /doc prefix in URL to distinguish output type (per rsc)
- fixed a bug in an internal string function
- ignore files ending in _test.go (consider them test files)
R=rsc
OCL=27054
CL=27054
Russ Cox [Fri, 3 Apr 2009 04:46:19 +0000 (21:46 -0700)]
special case check for this situation
; cat >http.go
package main
import "http" // intended the library, not this file
^D
; 6g http.go
; 6g http.go
http.go:4: export/package mismatch: init
;
new error:
http.6:7 http.go:3: cannot import package main
R=ken
OCL=27053
CL=27053
Russ Cox [Fri, 3 Apr 2009 04:38:11 +0000 (21:38 -0700)]
type n t;
was copying a bit too much about t into n,
like whether the signature was queued to be printed.
(bug reported by anton)
was also editing t, meaning you could do
type T int;
func (p int) Meth() { }
both fixed.
R=ken
OCL=27052
CL=27052
Russ Cox [Fri, 3 Apr 2009 01:32:57 +0000 (18:32 -0700)]
use _f007·filename for func literals.
this avoids problems people have run into with
multiple closures in the same package.
when preparing filename, only cut off .go, not .anything.
this fixes a bug tgs ran into with foo.pb.go and foo.go
in the same package.
also turn bad identifier chars from filename into
underscores: a-b.pb.go => a_b_pb
R=ken
OCL=27050
CL=27050
Robert Griesemer [Fri, 3 Apr 2009 01:25:18 +0000 (18:25 -0700)]
Daily snapshot:
first round of cleanups:
- removed extra .html templates (reduced to one)
- removed dependencies on various local files
- minor fixes throughout
Basic docserver is now operational: Automatically finds all
(multi-file) packages under a root and serves either file
or package documentation.
R=r
OCL=27049
CL=27049
Ken Thompson [Fri, 3 Apr 2009 01:06:43 +0000 (18:06 -0700)]
compiler falut for forgetting
the assignment on a type switch
R=r
OCL=27048
CL=27048
Russ Cox [Fri, 3 Apr 2009 00:59:09 +0000 (17:59 -0700)]
use separate lex buf for better errors:
package main
func main() { func(){}() + + }
x.go:2: syntax error near _f001
becomes
x.go:2: syntax error near func
R=ken
OCL=27047
CL=27047
Russ Cox [Fri, 3 Apr 2009 00:56:23 +0000 (17:56 -0700)]
turn gc of unused data/code back on in loaders.
turned it off while debugging 8 runtime problem,
checked in the change accidentally.
R=r
DELTA=4 (0 added, 0 deleted, 4 changed)
OCL=27040
CL=27046
Russ Cox [Thu, 2 Apr 2009 23:48:06 +0000 (16:48 -0700)]
implement some more 8g
package main
func main() {
println("hello,", 123);
}
R=ken
OCL=27043
CL=27043
Russ Cox [Thu, 2 Apr 2009 23:41:53 +0000 (16:41 -0700)]
clarification suggested by rob
R=r
DELTA=4 (4 added, 0 deleted, 0 changed)
OCL=26983
CL=27041
Robert Griesemer [Thu, 2 Apr 2009 22:58:58 +0000 (15:58 -0700)]
- adjustments for changed AST
- renamed gds -> godoc
- functionality to find and serve packages
(to get a list of packages provide dir path + "?p")
Next steps: cleanups, better formatting, fine-tuning of output
R=r
OCL=27037
CL=27039
Robert Griesemer [Thu, 2 Apr 2009 22:58:38 +0000 (15:58 -0700)]
- Ident node now takes a string Value instead of a []bytes
(this removes a lot of string() conversions down the road)
- a few minor adjustments
R=rsc
DELTA=11 (0 added, 0 deleted, 11 changed)
OCL=27029
CL=27038
Robert Griesemer [Thu, 2 Apr 2009 17:16:17 +0000 (10:16 -0700)]
Adjustements related to AST changes.
R=r
OCL=27026
CL=27028
Robert Griesemer [Thu, 2 Apr 2009 17:15:58 +0000 (10:15 -0700)]
Some AST tuning:
- have explicit XSpec nodes for declarations
- have a general GenDecl node instead of DeclList
R=rsc
DELTA=164 (52 added, 52 deleted, 60 changed)
OCL=27005
CL=27027
Daniel Nadasi [Thu, 2 Apr 2009 05:20:18 +0000 (22:20 -0700)]
Add a DeepEqual function to the reflect package
R=r,rsc
APPROVED=rsc
DELTA=167 (166 added, 0 deleted, 1 changed)
OCL=26982
CL=27017
Ken Thompson [Thu, 2 Apr 2009 04:28:59 +0000 (21:28 -0700)]
typeswitch - expression evaluated
twice instead of once.
R=r
OCL=27015
CL=27015
Rob Pike [Wed, 1 Apr 2009 23:34:25 +0000 (16:34 -0700)]
use range in vector iterator
R=rsc
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=27003
CL=27003
Robert Griesemer [Wed, 1 Apr 2009 22:00:22 +0000 (15:00 -0700)]
More gds functionality:
- package headers
- constants
- variables
- formatted comments
Next steps:
- sorted output
- collection of all files belonging to a package
- fine-tuning of output
R=r
OCL=26997
CL=26997
Russ Cox [Wed, 1 Apr 2009 10:32:44 +0000 (03:32 -0700)]
change smoketest from parser.go to astprinter.go,
the largest remaining source file in this directory.
TBR=gri
OCL=26984
CL=26984
Russ Cox [Wed, 1 Apr 2009 07:26:00 +0000 (00:26 -0700)]
fix runtime stack overflow bug that gri ran into:
160 - 75 was just barely not enough for deferproc + morestack.
added enum names and bumped to 256 - 128.
added explanation.
changed a few mal() (garbage-collected) to
malloc()/free() (manually collected).
R=ken
OCL=26981
CL=26981
David Symonds [Wed, 1 Apr 2009 05:35:55 +0000 (22:35 -0700)]
Bail out of gotest immediately if compiling fails.
R=rsc
APPROVED=rsc
DELTA=4 (2 added, 2 deleted, 0 changed)
OCL=26978
CL=26978
Robert Griesemer [Wed, 1 Apr 2009 01:46:21 +0000 (18:46 -0700)]
- also associate factory methods to a type in documentation
R=r
OCL=26974
CL=26976
Russ Cox [Wed, 1 Apr 2009 00:33:04 +0000 (17:33 -0700)]
test for and fix bug involving reflect v.Interface() and ==.
R=r
DELTA=156 (149 added, 2 deleted, 5 changed)
OCL=26973
CL=26973
Robert Griesemer [Tue, 31 Mar 2009 23:53:58 +0000 (16:53 -0700)]
daily snapshot:
- adjustments to match new ast/parser interface
- removed printer.go; functionality now in astprinter.go and docprinter.go
(more cleanups pending)
- enabled new doc printing in gds
(lots of fine tuning missing, but pieces falling into place; e.g. methods
associated with types. Consts, Vars, to come. Collection of all files
belonging to a package to come)
R=r
OCL=26970
CL=26972
Robert Griesemer [Tue, 31 Mar 2009 23:53:37 +0000 (16:53 -0700)]
1) Move parser.go into src/lib/go
- minor adjustments as suggested by rsc
2) Added parser_test fragment
3) Renamed some types in AST.go per rsc request
R=rsc
DELTA=2053 (2027 added, 0 deleted, 26 changed)
OCL=26963
CL=26971
Russ Cox [Tue, 31 Mar 2009 22:45:12 +0000 (15:45 -0700)]
more 386 runtime:
remove use of _subv in vlrt.c
darwin/386/signal.c
darwin/386/*
linux/386/* (forgotten before)
can run empty program on darwin/386 now.
R=r
DELTA=1140 (1021 added, 114 deleted, 5 changed)
OCL=26942
CL=26968
Russ Cox [Tue, 31 Mar 2009 22:44:43 +0000 (15:44 -0700)]
multiple bugs in bitfield handling
R=r
DELTA=6 (3 added, 0 deleted, 3 changed)
OCL=26944
CL=26967
Robert Griesemer [Tue, 31 Mar 2009 20:28:01 +0000 (13:28 -0700)]
- incorporation of suggestions by rsc
R=rsc
OCL=26959
CL=26959
Russ Cox [Tue, 31 Mar 2009 07:22:59 +0000 (00:22 -0700)]
minimal 8g. can compile
package main
func main() {
}
and not much else.
R=ken
OCL=26943
CL=26943
Russ Cox [Tue, 31 Mar 2009 07:20:07 +0000 (00:20 -0700)]
* move go-specific loader code
into gc directory, where it gets included as ../gc/ldbody
this is similar to the assemblers including ../cc/lexbody
and ../cc/macbody.
* hook go-specific loader code into 8l.
* make current 8.out.h and 6.out.h backward compatible
with plan 9's versions. i had added some constants in
the middle of enums and have now moved them to the end.
this keeps us from invalidating old .8 and .6 files.
not sure how much it really matters, but easy to do.
R=r
DELTA=1314 (667 added, 623 deleted, 24 changed)
OCL=26938
CL=26941
Russ Cox [Tue, 31 Mar 2009 07:19:38 +0000 (00:19 -0700)]
move tiny gsubr functions together at the top of the file.
delete unused mkenam file
R=ken
OCL=26940
CL=26940
Ian Lance Taylor [Tue, 31 Mar 2009 06:19:31 +0000 (23:19 -0700)]
Separate the alignment of a field from the alignment of the
type of the field. Use the field alignment to compute the
size of a structure.
This may help 8g but is mainly for gccgo. gccgo maintains the
standard C/C++ ABI for structure field alignment. For the
i386, this requires that a float64 field in a struct be
aligned on a 32-bit boundary, although for efficiency a
variable of type float64 or []float64 should be aligned on a
64-bit boundary.
I also removed the unused size field from structField.
R=r
DELTA=117 (75 added, 2 deleted, 40 changed)
OCL=26842
CL=26936
Russ Cox [Tue, 31 Mar 2009 05:26:00 +0000 (22:26 -0700)]
fix http://b/
1748082
package main
var f = func(a, b int) int { return a + b }
R=ken
OCL=26935
CL=26935
Russ Cox [Tue, 31 Mar 2009 04:39:10 +0000 (21:39 -0700)]
fix build (moved decl to go.h earlier
and changed vlong to int64).
R=ken
OCL=26934
CL=26934
Russ Cox [Tue, 31 Mar 2009 04:31:29 +0000 (21:31 -0700)]
move portable object routines (especially
signature generation) into gc.
R=ken
OCL=26933
CL=26933
Russ Cox [Tue, 31 Mar 2009 02:21:36 +0000 (19:21 -0700)]
closure bug: carry along outnamed flag.
R=ken
OCL=26930
CL=26930
Russ Cox [Tue, 31 Mar 2009 02:15:07 +0000 (19:15 -0700)]
move portable code generation (basic statements) to gc.
R=ken
OCL=26929
CL=26929
David Symonds [Tue, 31 Mar 2009 02:01:59 +0000 (19:01 -0700)]
log.Stderr should actually go to stderr.
R=r
APPROVED=r
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=26926
CL=26928
Russ Cox [Tue, 31 Mar 2009 00:52:21 +0000 (17:52 -0700)]
move some portable pieces of 6g/gsubr.c into gc/subr.c
int brcom(int);
int brrev(int);
void setmaxarg(Type*);
Sig* lsort(Sig*, int(*)(Sig*, Sig*));
int dotoffset(Node*, int*, Node**);
void stringpool(Node*);
void tempname(Node*, Type*);
R=ken
OCL=26922
CL=26922
Russ Cox [Tue, 31 Mar 2009 00:15:54 +0000 (17:15 -0700)]
delete dregs: inarggen, genpanic, regret
R=ken
OCL=26916
CL=26918
Robert Griesemer [Tue, 31 Mar 2009 00:13:11 +0000 (17:13 -0700)]
daily snapshot:
- separating printing of AST and documentation
- astprinter: will subsume ast printing functionality of printer
- docprinter: will subsume doc printing functionality of printer
also: more logic to collect all the documentation pertaining
to all files of a package
- parser: some cleanups, stricter syntax checks
- gds: hooks to test new doc printer (disabled)
R=r
OCL=26915
CL=26915
Russ Cox [Tue, 31 Mar 2009 00:09:28 +0000 (17:09 -0700)]
move alignment calculations into gc
R=ken
OCL=26914
CL=26914
Russ Cox [Tue, 31 Mar 2009 00:07:30 +0000 (17:07 -0700)]
don't crash on
unsafe.Alignof(struct{x float}{0}.x)
R=ken
OCL=26911
CL=26913
Russ Cox [Mon, 30 Mar 2009 23:13:11 +0000 (16:13 -0700)]
move bits.c from 6g to gc
R=ken
OCL=26909
CL=26909
Rob Pike [Mon, 30 Mar 2009 23:08:41 +0000 (16:08 -0700)]
fix last 3 references to 'type guards'
R=gri
DELTA=3 (0 added, 0 deleted, 3 changed)
OCL=26908
CL=26908
Russ Cox [Mon, 30 Mar 2009 07:28:08 +0000 (00:28 -0700)]
tests changed - throw calls panic directly now
instead of dereferencing nil, so no more SIGSEGVs.
R=r
DELTA=28 (0 added, 14 deleted, 14 changed)
OCL=26881
CL=26881
Russ Cox [Mon, 30 Mar 2009 07:21:25 +0000 (00:21 -0700)]
new tool godefs.
uses gcc to determine system header layouts and
emits simple C or Go. see comment in main.c.
R=r
DELTA=1069 (1067 added, 0 deleted, 2 changed)
OCL=26682
CL=26880
Russ Cox [Mon, 30 Mar 2009 07:12:56 +0000 (00:12 -0700)]
don't write cmp's output to the c file.
cope better with p4 not found.
R=r
DELTA=3 (0 added, 0 deleted, 3 changed)
OCL=26877
CL=26879
Russ Cox [Mon, 30 Mar 2009 07:01:07 +0000 (00:01 -0700)]
more 386 runtime - can run tiny c programs.
R=r
DELTA=1926 (1727 added, 168 deleted, 31 changed)
OCL=26876
CL=26878
Robert Griesemer [Sat, 28 Mar 2009 06:11:54 +0000 (23:11 -0700)]
- receiver syntax verification
- removed left-over panic() call
- fixed a couple of bugs
R=r
OCL=26856
CL=26856
Robert Griesemer [Sat, 28 Mar 2009 02:27:09 +0000 (19:27 -0700)]
Significant parser cleanup:
- commented public interface
- much better and very precise error messages
- much better tracing output
- many more checks (still permits more than just syntactically legal
programs, but much more is checked that can be checked w/o semantic information)
- updated with respect to updated AST
- general cleanup throughout
Parser almost ready for move into lib/go.
R=r
OCL=26853
CL=26855
Robert Griesemer [Sat, 28 Mar 2009 02:26:03 +0000 (19:26 -0700)]
- have explicit KeyValueExpr node instead of BinaryExpr ':' (as discussed)
- remove ':' token from operator precedence levels
R=rsc
DELTA=25 (13 added, 8 deleted, 4 changed)
OCL=26850
CL=26854
Ian Lance Taylor [Fri, 27 Mar 2009 20:43:50 +0000 (13:43 -0700)]
Verify that "byte" is an alias for "uint8".
R=r
DELTA=6 (6 added, 0 deleted, 0 changed)
OCL=26836
CL=26841
Robert Griesemer [Fri, 27 Mar 2009 20:43:28 +0000 (13:43 -0700)]
- minor tweak to composite literal production:
renamed PairExpr -> KeyValueExpr and PairExprList -> KeyValueList
(to match corresponding nodes in AST per rsc' suggestion)
- added a couple of TODOs
R=r,rsc
DELTA=10 (2 added, 0 deleted, 8 changed)
OCL=26837
CL=26840
Robert Griesemer [Fri, 27 Mar 2009 16:49:11 +0000 (09:49 -0700)]
integrate feedback from rsc
R=rsc
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=26810
CL=26834
Ian Lance Taylor [Fri, 27 Mar 2009 05:20:27 +0000 (22:20 -0700)]
Add a few tests which weren't being run.
R=r
DELTA=4 (4 added, 0 deleted, 0 changed)
OCL=26797
CL=26814
Robert Griesemer [Fri, 27 Mar 2009 05:16:06 +0000 (22:16 -0700)]
- adjustments to match slightly changed scanner interface
- more comments on parser, various cleanups
TBR=r
OCL=26813
CL=26813
Robert Griesemer [Fri, 27 Mar 2009 05:13:49 +0000 (22:13 -0700)]
minor tweaks:
- permit scanner to run w/o error handler
- provide an error counter
R=iant
DELTA=43 (25 added, 0 deleted, 18 changed)
OCL=26804
CL=26812
Rob Pike [Fri, 27 Mar 2009 05:04:34 +0000 (22:04 -0700)]
rename redefined symbols
R=iant
DELTA=4 (0 added, 0 deleted, 4 changed)
OCL=26802
CL=26811
Robert Griesemer [Fri, 27 Mar 2009 00:51:44 +0000 (17:51 -0700)]
move AST into src/lib/go
R=r
DELTA=1509 (756 added, 751 deleted, 2 changed)
OCL=26799
CL=26801
Robert Griesemer [Fri, 27 Mar 2009 00:40:51 +0000 (17:40 -0700)]
fix scanner initialization, add test
R=r
DELTA=27 (25 added, 0 deleted, 2 changed)
OCL=26798
CL=26798
Robert Griesemer [Thu, 26 Mar 2009 23:10:07 +0000 (16:10 -0700)]
- adjustments to match new token/scanner/ast
R=r
OCL=26794
CL=26794
Robert Griesemer [Thu, 26 Mar 2009 23:08:44 +0000 (16:08 -0700)]
- renamed scanner.Location to token.Position
- by moving Position into token, scanner dependencies
are removed from several files
- clearer field names in token.Position, now possible to
have a Pos() accessor w/o naming conflicts
- added Pos() accessor
- use anonymous token.Position field in AST nodes
R=r
DELTA=244 (28 added, 55 deleted, 161 changed)
OCL=26786
CL=26793
Robert Griesemer [Thu, 26 Mar 2009 23:05:30 +0000 (16:05 -0700)]
EncodeRuneToString
R=rsc
DELTA=22 (22 added, 0 deleted, 0 changed)
OCL=26779
CL=26792
Robert Griesemer [Thu, 26 Mar 2009 17:53:14 +0000 (10:53 -0700)]
- introduce explicit Token type
- convert some functions into methods
- corresponding changes in pretty
R=r
DELTA=57 (3 added, 0 deleted, 54 changed)
OCL=26764
CL=26777
Kai Backman [Wed, 25 Mar 2009 23:31:38 +0000 (16:31 -0700)]
This is really two changes in one but given interdependencies
and expected review latency I needed to combine the CLs.
1. Made the 5* toolpath build using the go build
system. Hooked the subdirectories to clean.bash but added a
separate make5.bash for now. Minor massage to make the code
more similar to the current structure of 6c/6a/6l.
2. Change all references from long to int32 in line with
similar change for the other toolchains.
The end result is that 5c, 5a and 5l can now be compiled and
the executables start up properly. Haven't thrown any input at
them yet.
R=rsc
APPROVED=rsc
DELTA=1052 (392 added, 328 deleted, 332 changed)
OCL=26757
CL=26761
Robert Griesemer [Wed, 25 Mar 2009 20:58:44 +0000 (13:58 -0700)]
use FunctionType in FunctionLit production
R=r
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=26738
CL=26753
Robert Griesemer [Wed, 25 Mar 2009 19:45:06 +0000 (12:45 -0700)]
adjustments matching updated ast
R=r
OCL=26746
CL=26746
Robert Griesemer [Wed, 25 Mar 2009 19:44:18 +0000 (12:44 -0700)]
AST for Go programs
R=rsc,r
DELTA=309 (67 added, 51 deleted, 191 changed)
OCL=26611
CL=26745
Rob Pike [Wed, 25 Mar 2009 02:16:42 +0000 (19:16 -0700)]
add some words (written by rsc) about the state of typed constants.
DELTA=31 (31 added, 0 deleted, 0 changed)
OCL=26709
CL=26716
Russ Cox [Wed, 25 Mar 2009 01:04:50 +0000 (18:04 -0700)]
add .8 support to libmach_amd64 [sic].
add code to handle 32-bit Mach-O and ELF binaries.
R=r
DELTA=452 (365 added, 29 deleted, 58 changed)
OCL=26696
CL=26712
Russ Cox [Wed, 25 Mar 2009 01:04:19 +0000 (18:04 -0700)]
make 8a, 8c build again.
add 8a 8c 8l to the build to keep us honest.
R=r
DELTA=33 (28 added, 0 deleted, 5 changed)
OCL=26694
CL=26711
Russ Cox [Wed, 25 Mar 2009 01:02:24 +0000 (18:02 -0700)]
drop rt0 object from 8l (already dropped from 6l).
remove debugging print.
R=r
DELTA=8 (0 added, 8 deleted, 0 changed)
OCL=26695
CL=26710
Rob Pike [Wed, 25 Mar 2009 00:45:53 +0000 (17:45 -0700)]
change notation: s/Stat/Stmt/ in grammatical productions
DELTA=26 (0 added, 0 deleted, 26 changed)
OCL=26703
CL=26705
Rob Pike [Wed, 25 Mar 2009 00:40:47 +0000 (17:40 -0700)]
delete incorrect, dreg example of select on type
R=gri,rsc
DELTA=48 (28 added, 11 deleted, 9 changed)
OCL=26630
CL=26701
Ken Thompson [Tue, 24 Mar 2009 23:47:33 +0000 (16:47 -0700)]
golden
R=r
OCL=26699
CL=26699
Ken Thompson [Tue, 24 Mar 2009 23:40:38 +0000 (16:40 -0700)]
^ type(const) now inverts "enough" bits
^ signed(const) becomes illegal
^ unsigned(const) becomes legal
R=r
OCL=26697
CL=26697
Russ Cox [Tue, 24 Mar 2009 23:04:25 +0000 (16:04 -0700)]
fix build:
install runtime lib in correct location.
fix one bad type definition in defs.h.
clear out $GOROOT/lib in clean.bash.
TBR=r
OCL=26691
CL=26691
Russ Cox [Tue, 24 Mar 2009 22:11:56 +0000 (15:11 -0700)]
split heapmap, which is specific to 64-bit pointer addresses,
out of malloc proper.
TBR=r
OCL=26689
CL=26689
Russ Cox [Tue, 24 Mar 2009 22:04:18 +0000 (15:04 -0700)]
convert Linux to auto-generated defs.h
TBR=r
OCL=26686
CL=26688
Russ Cox [Tue, 24 Mar 2009 20:51:48 +0000 (13:51 -0700)]
convert darwin to use godefs-generated defs.h.
this change is much smaller if you ignore
the machine-generated defs.h.
TBR=r
OCL=26684
CL=26684
Russ Cox [Tue, 24 Mar 2009 20:17:10 +0000 (13:17 -0700)]
split rt1.c into signal.c and thread.c.
move out of arch-specific directory: only os-specific.
rm sys_types.h (unused).
TBR=r
OCL=26681
CL=26681
Russ Cox [Tue, 24 Mar 2009 20:06:51 +0000 (13:06 -0700)]
move darwin specific code into runtime/darwin/
move darwin-amd64 specific code into runtime/darwin/amd64/
repeat for linux.
move rt0 into runtime.a instead of keeping a separate .6 file.
6l seems to have no problem with that.
TBR=r
OCL=26680
CL=26680
Russ Cox [Tue, 24 Mar 2009 19:12:57 +0000 (12:12 -0700)]
throw away most of the compat.h compatibility layer
in favor of the lib9 compatibility layer. no need for two.
now that mycreate is gone, .6 files are 0644 not 0755.
TBR=r
OCL=26679
CL=26679
Russ Cox [Tue, 24 Mar 2009 18:49:22 +0000 (11:49 -0700)]
move amd64-specific (but os-independent) pieces of runtime
into amd64/ directory.
split rt2_amd64.c into closure.c and traceback.c.
TBR=r
OCL=26678
CL=26678
Russ Cox [Tue, 24 Mar 2009 01:50:35 +0000 (18:50 -0700)]
add test for close/closed, fix a few implementation bugs.
R=ken
OCL=26664
CL=26664
Russ Cox [Tue, 24 Mar 2009 01:32:37 +0000 (18:32 -0700)]
allow range on nil maps
R=ken
OCL=26663
CL=26663
Rob Pike [Tue, 24 Mar 2009 00:46:59 +0000 (17:46 -0700)]
iterator for vector
R=rsc
DELTA=35 (35 added, 0 deleted, 0 changed)
OCL=26662
CL=26662
Rob Pike [Mon, 23 Mar 2009 04:53:40 +0000 (21:53 -0700)]
change file name so it can be copied without name change to a more public place.
R=rsc
DELTA=1090 (545 added, 545 deleted, 0 changed)
OCL=26629
CL=26629
Rob Pike [Mon, 23 Mar 2009 04:02:17 +0000 (21:02 -0700)]
bug141 is fixed
R=ken
DELTA=56 (26 added, 30 deleted, 0 changed)
OCL=26628
CL=26628
Ken Thompson [Mon, 23 Mar 2009 03:54:21 +0000 (20:54 -0700)]
rewrote switch
fixed bug 141
R=r
OCL=26627
CL=26627
Rob Pike [Sat, 21 Mar 2009 00:41:25 +0000 (17:41 -0700)]
add simple text about & and *.
clean up html: PLEASE RUN TIDY WHEN YOU EDIT THIS DOCUMENT
deferring method value update until we decide what happens.
R=gri
DELTA=50 (38 added, 4 deleted, 8 changed)
OCL=26609
CL=26612
Robert Griesemer [Sat, 21 Mar 2009 00:18:48 +0000 (17:18 -0700)]
- completed AST cleanup
- implemented support for type switches
R=r
OCL=26608
CL=26608