]>
Cypherpunks repositories - gostls13.git/log
Rob Pike [Wed, 13 Aug 2008 19:15:24 +0000 (12:15 -0700)]
add test for constants
add bug in constant evaluation (erroneously allowing assignment of float to int)
update golden
R=gri
OCL=14153
CL=14153
Ken Thompson [Wed, 13 Aug 2008 02:13:09 +0000 (19:13 -0700)]
put i2s, s2i and i2i in convert
R=r
OCL=14143
CL=14143
Rob Pike [Wed, 13 Aug 2008 00:07:33 +0000 (17:07 -0700)]
update bugs
exploit the compiler now supporting i2s and i2i and clean up some code
fix up some panics and prints
R=gri
OCL=14141
CL=14141
Ken Thompson [Tue, 12 Aug 2008 23:36:18 +0000 (16:36 -0700)]
i2s and i2i
R=r
OCL=14140
CL=14140
Rob Pike [Tue, 12 Aug 2008 23:11:55 +0000 (16:11 -0700)]
update tests
R=gri
OCL=14137
CL=14137
Ken Thompson [Tue, 12 Aug 2008 21:28:58 +0000 (14:28 -0700)]
resolve go.y edits
R=r
OCL=14132
CL=14132
Ken Thompson [Tue, 12 Aug 2008 21:04:03 +0000 (14:04 -0700)]
fixed bugs in const/case
R=r
DELTA=138 (75 added, 12 deleted, 51 changed)
OCL=14129
CL=14131
Rob Pike [Tue, 12 Aug 2008 20:21:49 +0000 (13:21 -0700)]
fix one syntax error in declaration.
reformat the bullet list about strings
R=gri
OCL=14128
CL=14128
Rob Pike [Tue, 12 Aug 2008 18:38:34 +0000 (11:38 -0700)]
use tabs for indentation consistently
R=gri
OCL=14125
CL=14125
Rob Pike [Tue, 12 Aug 2008 18:20:34 +0000 (11:20 -0700)]
New words regarding constants
R=gri,ken
DELTA=64 (42 added, 3 deleted, 19 changed)
OCL=14116
CL=14124
Rob Pike [Tue, 12 Aug 2008 05:07:49 +0000 (22:07 -0700)]
fix bug depot:
1) fix print statements, panic statements (parentheses required)
2) len is now allowed as a var name (bug053)
R=gri
OCL=14106
CL=14106
Rob Pike [Tue, 12 Aug 2008 04:37:46 +0000 (21:37 -0700)]
fix two print statements
R=gri
OCL=14105
CL=14105
Rob Pike [Tue, 12 Aug 2008 04:29:11 +0000 (21:29 -0700)]
fix a typo in the comments
R=ken
OCL=14104
CL=14104
Robert Griesemer [Tue, 12 Aug 2008 04:20:42 +0000 (21:20 -0700)]
- changed go-in-go parser to require ()'s for panic and print
- adjusted much of the existing go code
- missing: tests
R=r
DELTA=229 (1 added, 17 deleted, 211 changed)
OCL=14103
CL=14103
Robert Griesemer [Tue, 12 Aug 2008 03:40:37 +0000 (20:40 -0700)]
- allow reserved words as field and method names
R=r
OCL=14102
CL=14102
Ken Thompson [Tue, 12 Aug 2008 02:17:28 +0000 (19:17 -0700)]
print() and field names
R=r
DELTA=86 (61 added, 3 deleted, 22 changed)
OCL=14099
CL=14099
Robert Griesemer [Tue, 12 Aug 2008 01:44:41 +0000 (18:44 -0700)]
- experiments with forward-declaring types of non-imported packages
- adjusted switch syntax (no repeated case: case: anymore)
- enabled some constant expressions that work now
R=r
OCL=14098
CL=14098
Robert Griesemer [Tue, 12 Aug 2008 01:09:31 +0000 (18:09 -0700)]
- removed fall-through for case: case: in switch statements
- added ()'s to all print calls in examples
- augmented rule about use of identifiers
R=r
DELTA=11 (0 added, 1 deleted, 10 changed)
OCL=14097
CL=14097
Rob Pike [Mon, 11 Aug 2008 22:04:54 +0000 (15:04 -0700)]
- fix signedness bug in sys.Inf()
- add NaN, Inf printing to fmt
- fix a couple of bugs in fmt
- add a test for fmt
R=ken
OCL=14092
CL=14092
Ken Thompson [Mon, 11 Aug 2008 20:53:50 +0000 (13:53 -0700)]
floating <= and >= compare
R=r
DELTA=8 (0 added, 0 deleted, 8 changed)
OCL=14091
CL=14091
Rob Pike [Mon, 11 Aug 2008 20:32:13 +0000 (13:32 -0700)]
add test for maps.
R=gri
OCL=14090
CL=14090
Ken Thompson [Mon, 11 Aug 2008 20:22:04 +0000 (13:22 -0700)]
export large constants
R=r
DELTA=37 (31 added, 4 deleted, 2 changed)
OCL=14089
CL=14089
Rob Pike [Mon, 11 Aug 2008 20:08:16 +0000 (13:08 -0700)]
code in bug was wrong; correct and improve. works now.
R=gri
OCL=14088
CL=14088
Robert Griesemer [Mon, 11 Aug 2008 18:40:19 +0000 (11:40 -0700)]
- added test case for compiler bug re: exported
variables of function pointer type
R=r
OCL=14086
CL=14086
Rob Pike [Mon, 11 Aug 2008 17:10:48 +0000 (10:10 -0700)]
update tests.
fixedbugs/bug012.go is broken again but i left it where it is, with
the golden file not reflecting the breakage so it will be noticed
R=ken,gri
OCL=14073
CL=14073
Robert Griesemer [Mon, 11 Aug 2008 16:45:40 +0000 (09:45 -0700)]
- more steps towards automatic recursive compilation of dependencies
- make forward declarations of types match 6g
- better factoring
R=r
OCL=14059
CL=14059
Ken Thompson [Sun, 10 Aug 2008 23:49:01 +0000 (16:49 -0700)]
fixed op=, ++ and -- on maps (bug060)
R=r
DELTA=22 (21 added, 0 deleted, 1 changed)
OCL=14049
CL=14049
Ken Thompson [Sun, 10 Aug 2008 22:09:09 +0000 (15:09 -0700)]
allow name-type or pointer-to-named-type as method name (bug046)
R=r
DELTA=17 (11 added, 3 deleted, 3 changed)
OCL=14048
CL=14048
Ken Thompson [Sun, 10 Aug 2008 21:35:02 +0000 (14:35 -0700)]
fixed unary ^ opcode (bug082)
R=r
DELTA=11 (10 added, 1 deleted, 0 changed)
OCL=14047
CL=14047
Ken Thompson [Sun, 10 Aug 2008 00:33:35 +0000 (17:33 -0700)]
adding and deleting files
R=r
DELTA=1685 (920 added, 765 deleted, 0 changed)
OCL=14030
CL=14030
Ken Thompson [Sun, 10 Aug 2008 00:29:26 +0000 (17:29 -0700)]
mp fixed arith
R=r
DELTA=149 (80 added, 62 deleted, 7 changed)
OCL=14029
CL=14029
Rob Pike [Sat, 9 Aug 2008 21:50:29 +0000 (14:50 -0700)]
fix minor bug uncovered by new constant evaluator
R=gri
OCL=14025
CL=14025
Ken Thompson [Sat, 9 Aug 2008 00:15:46 +0000 (17:15 -0700)]
forgot a file
R=r
DELTA=427 (427 added, 0 deleted, 0 changed)
OCL=14017
CL=14017
Ken Thompson [Sat, 9 Aug 2008 00:13:31 +0000 (17:13 -0700)]
mp constants
R=r
DELTA=381 (142 added, 26 deleted, 213 changed)
OCL=14011
CL=14016
Robert Griesemer [Fri, 8 Aug 2008 23:12:34 +0000 (16:12 -0700)]
- removed misleading comment in bug041.go
- removed bug042.go - not a bug according to updated spec
R=r
DELTA=43 (5 added, 36 deleted, 2 changed)
OCL=14008
CL=14010
Rob Pike [Fri, 8 Aug 2008 17:57:23 +0000 (10:57 -0700)]
fix a couple of tests that had shell errors
clean up the golden file a bit to have less meaningless content and be more robust to spurious diffs.
now there is output only for tests that produce output or failure.
R=gri
OCL=14005
CL=14005
Russ Cox [Fri, 8 Aug 2008 11:25:20 +0000 (04:25 -0700)]
Change generated acid to indent nested structures properly.
Before the change:
acid: M(m0)
g0
00008dd0
morearg
00000000
cret
00000000
curg
2aaaaaaab000
lastg
00000000
Gobuf sched {
SP
ffffe5e0
PC
7fff00001ba1
}
...
acid:
After the change:
acid: M(m0)
g0 (G)
00008dd0
morearg
00000000
cret
00000000
curg (G)
2aaaaaaab000
lastg (G)
00000000
Gobuf sched {
SP
ffffe5e0
PC
00001ba1
}
...
acid:
R=ken
DELTA=27 (14 added, 2 deleted, 11 changed)
OCL=13802
CL=13998
Robert Griesemer [Fri, 8 Aug 2008 02:32:22 +0000 (19:32 -0700)]
first primitive cut at resolving missing imports automatically:
if an import file is missing, the corresponding source
is compiled automatically, if found
R=r
OCL=13990
CL=13990
Robert Griesemer [Fri, 8 Aug 2008 00:56:12 +0000 (17:56 -0700)]
bug: cannot take len() of a constant string
R=r
OCL=13989
CL=13989
Rob Pike [Fri, 8 Aug 2008 00:36:50 +0000 (17:36 -0700)]
include syscall in default build
fix an issue with autolib names by compiling to target location
print a bit more when compiling
R=gri
OCL=13988
CL=13988
Robert Griesemer [Fri, 8 Aug 2008 00:15:10 +0000 (17:15 -0700)]
revert specification of pointer types to current implementation
(do not allow explicit type forward declarations) and more clearly
specify resolution
R=r
DELTA=30 (9 added, 7 deleted, 14 changed)
OCL=13967
CL=13987
Rob Pike [Thu, 7 Aug 2008 20:27:58 +0000 (13:27 -0700)]
fix erroneous code in bugs; reported by iant.
also rob1.go runs, so fix its status.
R=gri,iant
OCL=13957
CL=13957
Robert Griesemer [Thu, 7 Aug 2008 01:57:37 +0000 (18:57 -0700)]
- implement scanner token stream via channel
- change test_scanner to scan using both methods
- add -pscan flag to Go front-end to choose between conventional
synchronous or parallel asynchronous scanning
R=r
OCL=13937
CL=13937
Robert Griesemer [Thu, 7 Aug 2008 00:26:46 +0000 (17:26 -0700)]
snapshot of today's changes - more semantic tests
R=r
OCL=13932
CL=13932
Robert Griesemer [Wed, 6 Aug 2008 17:02:18 +0000 (10:02 -0700)]
returning from a function that specified a result should cause a run-time
failure if no return is actually executed
R=r
OCL=13915
CL=13915
Robert Griesemer [Wed, 6 Aug 2008 01:52:37 +0000 (18:52 -0700)]
- added more semantic checks - more to come
- distinguish float/int literals syntactically
- fixed a tracing bug
R=r
OCL=13906
CL=13906
Robert Griesemer [Tue, 5 Aug 2008 23:09:49 +0000 (16:09 -0700)]
bug: package name not visible
R=r
OCL=13898
CL=13898
Robert Griesemer [Tue, 5 Aug 2008 22:20:58 +0000 (15:20 -0700)]
- fixed another export bug
- more self-verification code
R=r
OCL=13894
CL=13894
Russ Cox [Tue, 5 Aug 2008 21:21:42 +0000 (14:21 -0700)]
kill trailing white space.
(apparently my first attempt didn't work.)
R=r
OCL=13888
CL=13888
Russ Cox [Tue, 5 Aug 2008 21:18:47 +0000 (14:18 -0700)]
* comment, clean up scheduler
* rewrite lock implementation to be correct
(tip: never assume that an algorithm you found
in a linux man page is correct.)
* delete unneeded void* arg from clone fn
* replace Rendez with Note
* comment mal better
* use 6c -w, fix warnings
* mark all assembly functions 7
R=r
DELTA=828 (338 added, 221 deleted, 269 changed)
OCL=13884
CL=13886
Rob Pike [Tue, 5 Aug 2008 18:14:35 +0000 (11:14 -0700)]
allow pointers as keys in maps, treating them the same as ints - ptr eq not value equality
R=ken,gri
OCL=13879
CL=13879
Rob Pike [Tue, 5 Aug 2008 15:20:34 +0000 (08:20 -0700)]
workaround for compiler bug: len(a) is zero
TBR=iant
OCL=13873
CL=13873
Russ Cox [Tue, 5 Aug 2008 00:26:24 +0000 (17:26 -0700)]
fix go build
these files were missing from the acid change
(include/mach_amd64.h in particular)
R=r
OCL=13858
CL=13858
Russ Cox [Tue, 5 Aug 2008 00:24:25 +0000 (17:24 -0700)]
acid. works only on Linux for now
R=r
DELTA=7031 (6906 added, 113 deleted, 12 changed)
OCL=13847
CL=13852
Robert Griesemer [Tue, 5 Aug 2008 00:17:59 +0000 (17:17 -0700)]
- switched most of existing Go code to new export syntax
- adjusted lang doc
R=r
DELTA=192 (26 added, 65 deleted, 101 changed)
OCL=13844
CL=13848
Russ Cox [Mon, 4 Aug 2008 23:43:49 +0000 (16:43 -0700)]
first cut at multithreading. works on Linux.
* kick off new os procs (machs) as needed
* add sys·sleep for testing
* add Lock, Rendez
* properly lock mal, sys·newproc, scheduler
* linux syscall arg #4 is in R10, not CX
* chans are not multithread-safe yet
* multithreading disabled by default;
set $gomaxprocs=2 (or 1000) to turn it on
This should build on OS X but may not.
Rob and I will fix soon after submitting.
TBR=r
OCL=13784
CL=13842
Rob Pike [Mon, 4 Aug 2008 23:29:22 +0000 (16:29 -0700)]
fix bug - need to read final message in daisy chain to avoid hang
R=rsc
OCL=13840
CL=13840
Robert Griesemer [Mon, 4 Aug 2008 22:37:47 +0000 (15:37 -0700)]
- switch to new export syntax
- deprecate old syntax in this front-end (use -6g for compatibility)
R=r
OCL=13831
CL=13833
Rob Pike [Mon, 4 Aug 2008 21:23:51 +0000 (14:23 -0700)]
use new export syntax to avoid repetition
R=gri
OCL=13819
CL=13819
Robert Griesemer [Mon, 4 Aug 2008 20:27:05 +0000 (13:27 -0700)]
- import/export cleanup: added comments, removed dead code, re-org structure
R=r
OCL=13816
CL=13816
Ken Thompson [Mon, 4 Aug 2008 20:18:59 +0000 (13:18 -0700)]
export external functions
R=r
DELTA=16 (10 added, 4 deleted, 2 changed)
OCL=13815
CL=13815
Robert Griesemer [Mon, 4 Aug 2008 17:19:36 +0000 (10:19 -0700)]
- more import/export stuff
- use new export syntax
R=r
OCL=13807
CL=13807
Robert Griesemer [Mon, 4 Aug 2008 16:47:52 +0000 (09:47 -0700)]
- adjust Make.conf to use cc instead of cc64 for now
TBR=rsc
OCL=13804
CL=13804
Russ Cox [Mon, 4 Aug 2008 06:06:00 +0000 (23:06 -0700)]
add nm
R=r
DELTA=339 (339 added, 0 deleted, 0 changed)
OCL=13786
CL=13794
Russ Cox [Mon, 4 Aug 2008 06:03:31 +0000 (23:03 -0700)]
Use a single Make.conf for setting CC, etc.
This makes it easy to build with other flags
(like -ggdb) or other compilers (like cc64).
R=r
DELTA=45 (6 added, 22 deleted, 17 changed)
OCL=13790
CL=13793
Ken Thompson [Mon, 4 Aug 2008 01:47:02 +0000 (18:47 -0700)]
add 'export' adjectives to external
var, const and type declarations.
R=r
DELTA=49 (12 added, 28 deleted, 9 changed)
OCL=13791
CL=13791
Russ Cox [Mon, 4 Aug 2008 00:25:15 +0000 (17:25 -0700)]
make 6a, 6c, 6g, 6l, libmach_amd64 build on 64-bit gcc.
these guys really really want long to be 32-bits,
so ,s/long/int32/ (and then manual fixup).
still passes all tests.
(i started out looking for just those longs that
needed to be int32 instead, and it was just too hard
to track them down one by one.)
the longs were rare enough that i don't think
it will cause integration problems.
R=ken
OCL=13787
CL=13789
Ken Thompson [Sun, 3 Aug 2008 20:31:06 +0000 (13:31 -0700)]
6c delete .6 file on error
R=r
DELTA=1 (1 added, 0 deleted, 0 changed)
OCL=13785
CL=13785
Russ Cox [Sun, 3 Aug 2008 07:34:05 +0000 (00:34 -0700)]
Remove doubled #else
R=r
DELTA=4 (2 added, 2 deleted, 0 changed)
OCL=13775
CL=13779
Russ Cox [Sun, 3 Aug 2008 05:34:04 +0000 (22:34 -0700)]
slightly gratuitous reorg of scheduler code
* rename select (very loaded word) nextgoroutine
* separate out "enter scheduler" (sys·gosched)
from the scheduler itself (scheduler)
R=r
APPROVED=r
DELTA=36 (17 added, 15 deleted, 4 changed)
OCL=13772
CL=13774
Rob Pike [Sat, 2 Aug 2008 22:52:36 +0000 (15:52 -0700)]
go method bug is fixed.
R=gri
OCL=13766
CL=13766
Ken Thompson [Sat, 2 Aug 2008 22:31:21 +0000 (15:31 -0700)]
go method
R=r
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=13765
CL=13765
Rob Pike [Fri, 1 Aug 2008 23:23:16 +0000 (16:23 -0700)]
new bug: go on a method is wrong
R=gri
OCL=13741
CL=13741
Robert Griesemer [Fri, 1 Aug 2008 22:22:41 +0000 (15:22 -0700)]
bug: non-exported type is accessible in client
R=r
OCL=13736
CL=13738
Robert Griesemer [Fri, 1 Aug 2008 21:50:18 +0000 (14:50 -0700)]
- simplified handling of primary types (types w/ names which must
be canonicalized upon import)
- missed some exports
R=r
OCL=13733
CL=13733
Robert Griesemer [Fri, 1 Aug 2008 20:33:31 +0000 (13:33 -0700)]
more import/export stuff:
- no need to import/export predeclared types
- fix for receiver types
- cleanups
- added tests to Makefile
R=r
OCL=13728
CL=13730
Robert Griesemer [Fri, 1 Aug 2008 19:14:15 +0000 (12:14 -0700)]
- added import/export test cases
R=r
OCL=13723
CL=13723
Robert Griesemer [Thu, 31 Jul 2008 22:35:25 +0000 (15:35 -0700)]
fixed bug in FixExt routine
R=r
OCL=13695
CL=13695
Robert Griesemer [Thu, 31 Jul 2008 20:35:30 +0000 (13:35 -0700)]
- backward link from objs to containing scope
(first step towards cleaner package handling)
- check that map, function, and channel vars are pointers
R=r
OCL=13690
CL=13690
Robert Griesemer [Thu, 31 Jul 2008 17:47:10 +0000 (10:47 -0700)]
- fixed a bug w/ exports (wrong package info)
- keep track of type alias (type T1 T0) so we can print the proper type name
R=r
OCL=13688
CL=13688
Robert Griesemer [Thu, 31 Jul 2008 04:51:25 +0000 (21:51 -0700)]
- added missing file
R=r
OCL=13681
CL=13681
Robert Griesemer [Thu, 31 Jul 2008 04:26:15 +0000 (21:26 -0700)]
- fixed import bug (import "...")
- better debugging support
- removed dead code
R=r
OCL=13680
CL=13680
Robert Griesemer [Thu, 31 Jul 2008 00:36:03 +0000 (17:36 -0700)]
various fixes:
- missing return in import code
- proper propagation of flags to various components
- better error message when source position is missing
- cleanups
R=r
OCL=13676
CL=13676
Robert Griesemer [Wed, 30 Jul 2008 23:09:29 +0000 (16:09 -0700)]
- filed 2 bugs: unary ^ not implemented, compiler crash with illegal const decl
R=r
OCL=13666
CL=13666
Rob Pike [Wed, 30 Jul 2008 21:23:53 +0000 (14:23 -0700)]
- mark syscall support routines as non-stack-generating
- add unlink, creat
- add constants for open
- fix some comments
R=gri
OCL=13654
CL=13656
Robert Griesemer [Wed, 30 Jul 2008 20:01:28 +0000 (13:01 -0700)]
- addded interface pretty printer
R=r
OCL=13646
CL=13646
Robert Griesemer [Wed, 30 Jul 2008 17:14:39 +0000 (10:14 -0700)]
- bug in function invocation
R=r
OCL=13640
CL=13640
Robert Griesemer [Wed, 30 Jul 2008 02:02:49 +0000 (19:02 -0700)]
- import and export code, bug fixes
- almost back to where I was in C++, but now all in Go
R=r
OCL=13627
CL=13627
Rob Pike [Tue, 29 Jul 2008 22:17:27 +0000 (15:17 -0700)]
fix a comment
fix a register name
R=gri
OCL=13548
CL=13548
Rob Pike [Tue, 29 Jul 2008 22:06:21 +0000 (15:06 -0700)]
fixes for linux system call linkage
R=gri
OCL=13547
CL=13547
Rob Pike [Tue, 29 Jul 2008 21:44:48 +0000 (14:44 -0700)]
rewrite system call interface to use less assembler.
R=gri
OCL=13546
CL=13546
Rob Pike [Tue, 29 Jul 2008 20:16:42 +0000 (13:16 -0700)]
fix type error caused by recent change
R=gri
OCL=13545
CL=13545
Robert Griesemer [Tue, 29 Jul 2008 19:03:06 +0000 (12:03 -0700)]
- handling of pointer forward decls
- some comments added to bug cases
- added notes
R=r
OCL=13543
CL=13543
Rob Pike [Mon, 28 Jul 2008 23:08:38 +0000 (16:08 -0700)]
update tests
R=gri
OCL=13526
CL=13526
Ken Thompson [Mon, 28 Jul 2008 20:54:58 +0000 (13:54 -0700)]
len now takes an expression
R=r
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=13523
CL=13523
Rob Pike [Mon, 28 Jul 2008 20:07:58 +0000 (13:07 -0700)]
add lstat
clean up some code
fix comments
add paramter names to interface
R=ken
OCL=13521
CL=13521
Robert Griesemer [Mon, 28 Jul 2008 19:08:06 +0000 (12:08 -0700)]
- parameters must be named
R=r
OCL=13520
CL=13520
Rob Pike [Mon, 28 Jul 2008 19:03:56 +0000 (12:03 -0700)]
use real select
R=ken
OCL=13519
CL=13519
Rob Pike [Mon, 28 Jul 2008 18:29:41 +0000 (11:29 -0700)]
print tracebacks for all goroutines, not just the crashing one
R=ken
OCL=13518
CL=13518
Rob Pike [Mon, 28 Jul 2008 17:22:49 +0000 (10:22 -0700)]
update tests
R=gri
OCL=13516
CL=13516