]>
Cypherpunks repositories - gostls13.git/log
Robert Griesemer [Tue, 1 Sep 2009 00:30:55 +0000 (17:30 -0700)]
- use "package block" nomenclature for exported identifier section
- same capitalization for "Declarations and scope" section as for
other sections
DELTA=23 (2 added, 1 deleted, 20 changed)
OCL=34131
CL=34156
Rob Pike [Mon, 31 Aug 2009 23:48:56 +0000 (16:48 -0700)]
submitter's regret. rename Props to Properties
R=rsc
DELTA=9 (0 added, 0 deleted, 9 changed)
OCL=34148
CL=34151
Russ Cox [Mon, 31 Aug 2009 23:48:44 +0000 (16:48 -0700)]
elf file parser
R=austin
DELTA=448 (447 added, 0 deleted, 1 changed)
OCL=34139
CL=34150
Rob Pike [Mon, 31 Aug 2009 23:43:17 +0000 (16:43 -0700)]
add property tables
R=rsc
DELTA=1087 (1001 added, 78 deleted, 8 changed)
OCL=34137
CL=34147
Russ Cox [Mon, 31 Aug 2009 23:38:50 +0000 (16:38 -0700)]
convert C runtime to 32-bit runes;
rune now unsigned.
R=r
DELTA=10 (1 added, 0 deleted, 9 changed)
OCL=34140
CL=34146
Russ Cox [Mon, 31 Aug 2009 23:38:30 +0000 (16:38 -0700)]
fmt: add verbs:
%E - upper case %e
%G - upper case %g
%#v - Go syntax
R=r
DELTA=332 (238 added, 47 deleted, 47 changed)
OCL=34091
CL=34145
Russ Cox [Mon, 31 Aug 2009 23:34:43 +0000 (16:34 -0700)]
add SectionReader, ReaderAt.
R=r
DELTA=85 (85 added, 0 deleted, 0 changed)
OCL=34141
CL=34144
Russ Cox [Mon, 31 Aug 2009 23:10:16 +0000 (16:10 -0700)]
package debug/binary
R=austin
DELTA=320 (320 added, 0 deleted, 0 changed)
OCL=33983
CL=34143
Russ Cox [Mon, 31 Aug 2009 23:08:12 +0000 (16:08 -0700)]
translate C ld/elf.h into Go
R=austin
DELTA=1630 (1630 added, 0 deleted, 0 changed)
OCL=34001
CL=34142
David Symonds [Mon, 31 Aug 2009 21:43:27 +0000 (14:43 -0700)]
Consistency changes to container/* packages for iteration.
container/list:
- change Iter to go over the list values
container/ring:
- add Iter, drop Forward/Backward
container/vector:
- add channel direction constraints
R=rsc,gri
APPROVED=rsc
DELTA=86 (23 added, 40 deleted, 23 changed)
OCL=33935
CL=34132
Robert Griesemer [Mon, 31 Aug 2009 20:13:04 +0000 (13:13 -0700)]
simplified heuristic for associating const/var decls with types
(per suggestion from rsc)
R=rsc
DELTA=24 (3 added, 9 deleted, 12 changed)
OCL=34121
CL=34130
Rob Pike [Mon, 31 Aug 2009 20:01:25 +0000 (13:01 -0700)]
rearrange some constants. unicode package now defines MaxRune and ReplacementChar.
utf8 package imports unicode to get those definitions.
regenerate dependencies.
R=rsc
DELTA=41 (19 added, 3 deleted, 19 changed)
OCL=34123
CL=34129
Russ Cox [Mon, 31 Aug 2009 17:55:24 +0000 (10:55 -0700)]
use correct pc for printing fn+%#x in tracebacks
R=austin
DELTA=12 (2 added, 0 deleted, 10 changed)
OCL=34098
CL=34120
Robert Griesemer [Mon, 31 Aug 2009 17:47:34 +0000 (10:47 -0700)]
associate const and var declarations with a type where possible
R=rsc
DELTA=105 (87 added, 7 deleted, 11 changed)
OCL=34062
CL=34119
Rob Pike [Mon, 31 Aug 2009 02:46:35 +0000 (19:46 -0700)]
can't encode array or slice - catch in sendType rather than failing in Encode
R=rsc
DELTA=38 (33 added, 3 deleted, 2 changed)
OCL=34101
CL=34104
Russ Cox [Mon, 31 Aug 2009 02:21:48 +0000 (19:21 -0700)]
fix line numbers, again.
if first function in file was dead code, it was being
discarded along with the file name information for that file.
leave the functions in the master function list longer:
let xfol take the dead code out of the code list,
and let span skip the unreachable functions during output.
before
throw: sys·mapaccess1: key not in map
panic PC=0x2e7b20
throw+0x33 /Users/rsc/go/src/pkg/runtime/runtime.c:65
throw(0x5834f, 0x0)
sys·mapaccess1+0x73 /Users/rsc/go/src/pkg/runtime/hashmap.c:769
sys·mapaccess1(0x2b9bd0, 0x0)
gob·*Encoder·Encode+0x16b /Users/rsc/go/src/pkg/fmt/print.go:2926
gob·*Encoder·Encode(0x2bb440, 0x0, 0x558b0, 0x0, 0x2e4be0, ...)
main·walk+0x331 :1603
main·walk(0x33a480, 0x0)
main·walk+0x271 :1596
main·walk(0x300640, 0x0)
main·walk+0x271 :1596
main·walk(0x300520, 0x0)
main·walk+0x271 :1596
main·walk(0x300240, 0x0)
main·walk+0x271 :1596
main·walk(0x678f8, 0x0)
main·main+0x22 :1610
main·main()
after
throw: sys·mapaccess1: key not in map
panic PC=0x2e7b20
throw+0x33 /Users/rsc/go/src/pkg/runtime/runtime.c:65
throw(0x5834f, 0x0)
sys·mapaccess1+0x73 /Users/rsc/go/src/pkg/runtime/hashmap.c:769
sys·mapaccess1(0x2b9bd0, 0x0)
gob·*Encoder·Encode+0x16b /Users/rsc/go/src/pkg/gob/encoder.go:319
gob·*Encoder·Encode(0x2bb3c0, 0x0, 0x558b0, 0x0, 0x2e4be0, ...)
main·walk+0x331 /Users/rsc/dir.go:121
main·walk(0x2f6ab0, 0x0)
main·walk+0x271 /Users/rsc/dir.go:114
main·walk(0x301640, 0x0)
main·walk+0x271 /Users/rsc/dir.go:114
main·walk(0x301520, 0x0)
main·walk+0x271 /Users/rsc/dir.go:114
main·walk(0x301240, 0x0)
main·walk+0x271 /Users/rsc/dir.go:114
main·walk(0x678f8, 0x0)
main·main+0x22 /Users/rsc/dir.go:128
main·main()
mainstart+0xe /Users/rsc/go/src/pkg/runtime/amd64/asm.s:55
mainstart()
goexit /Users/rsc/go/src/pkg/runtime/proc.c:133
goexit()
R=r
DELTA=46 (20 added, 25 deleted, 1 changed)
OCL=34094
CL=34103
Russ Cox [Mon, 31 Aug 2009 02:21:32 +0000 (19:21 -0700)]
list untested packages instead of tested
R=r
DELTA=68 (12 added, 55 deleted, 1 changed)
OCL=34095
CL=34102
Russ Cox [Mon, 31 Aug 2009 01:47:48 +0000 (18:47 -0700)]
array index bug
x[i]
x not addressable, i >= UINF
double evaluated i
second eval killed live registers
manifested as gob instability
R=ken
OCL=34097
CL=34099
Rob Pike [Mon, 31 Aug 2009 01:17:52 +0000 (18:17 -0700)]
further simplification of the case fold calculation.
hard to beat at this point, i think.
R=rsc
DELTA=38 (8 added, 21 deleted, 9 changed)
OCL=34092
CL=34096
Ken Thompson [Sun, 30 Aug 2009 21:43:33 +0000 (14:43 -0700)]
cleanup getting ready for static init
R=rsc
OCL=34090
CL=34090
Rob Pike [Sun, 30 Aug 2009 21:02:42 +0000 (14:02 -0700)]
add the Upper/Lower sequence optimization.
tables shrink 900 lines.
mapping code gets a little slower
R=rsc
DELTA=1124 (105 added, 952 deleted, 67 changed)
OCL=34079
CL=34089
Ken Thompson [Sun, 30 Aug 2009 18:36:42 +0000 (11:36 -0700)]
removed debug print
R=r
OCL=34087
CL=34087
David Symonds [Sun, 30 Aug 2009 04:13:32 +0000 (21:13 -0700)]
Fix .alternates execution: it was skipping every second token.
R=r
APPROVED=r
DELTA=13 (11 added, 0 deleted, 2 changed)
OCL=34081
CL=34081
Ken Thompson [Sun, 30 Aug 2009 03:33:21 +0000 (20:33 -0700)]
sped up optimization by not optimizing
very large functions.
R=r
OCL=34080
CL=34080
Rob Pike [Sat, 29 Aug 2009 06:05:16 +0000 (23:05 -0700)]
first cut at case mapping tables and library.
next cut will do the optimization for alternating sequences.
R=rsc
DELTA=1658 (1620 added, 9 deleted, 29 changed)
OCL=34072
CL=34075
Austin Clements [Sat, 29 Aug 2009 01:25:56 +0000 (18:25 -0700)]
Split decls.go up, taking advantage of whole-package
compilation to put the definitions in reasonable places. No
code changes, just movement.
R=rsc
APPROVED=rsc
DELTA=479 (232 added, 247 deleted, 0 changed)
OCL=34067
CL=34069
Austin Clements [Sat, 29 Aug 2009 01:04:35 +0000 (18:04 -0700)]
Debugged processes, remote values, and remote type parser
R=rsc
APPROVED=rsc
DELTA=917 (917 added, 0 deleted, 0 changed)
OCL=34049
CL=34066
Austin Clements [Sat, 29 Aug 2009 01:04:18 +0000 (18:04 -0700)]
Debugger's remote runtime definitions.
R=rsc
APPROVED=rsc
DELTA=237 (237 added, 0 deleted, 0 changed)
OCL=33966
CL=34065
Austin Clements [Sat, 29 Aug 2009 01:03:03 +0000 (18:03 -0700)]
Implement cap, len, and make, as well as the general framework
for built-in functions and type conversions. Extract out
common operations on expression nodes for converting them to
ints and implicitly dereferencing arrays.
R=rsc
APPROVED=rsc
DELTA=442 (365 added, 50 deleted, 27 changed)
OCL=34064
CL=34064
Ken Thompson [Fri, 28 Aug 2009 22:44:24 +0000 (15:44 -0700)]
arraytoslice and some cleanup
R=rsc
OCL=34058
CL=34058
Austin Clements [Fri, 28 Aug 2009 21:39:12 +0000 (14:39 -0700)]
Fix named types being defined to named types. In general, the
code assumes that the definition of a named type is not a
named type, but some code paths could violate that.
R=rsc
APPROVED=rsc
DELTA=9 (5 added, 2 deleted, 2 changed)
OCL=34046
CL=34053
Ken Thompson [Fri, 28 Aug 2009 20:45:48 +0000 (13:45 -0700)]
sliceslice bug
R=rsc
OCL=34050
CL=34050
Ken Thompson [Fri, 28 Aug 2009 20:32:09 +0000 (13:32 -0700)]
bug in sliceslice
R=rsc
OCL=34047
CL=34047
Rob Pike [Fri, 28 Aug 2009 20:02:34 +0000 (13:02 -0700)]
print the value using (in effect) %v when Printf is given mismatched args for its format
Printf("%s", 2) gives %s(int=2)
R=rsc
DELTA=12 (10 added, 0 deleted, 2 changed)
OCL=34042
CL=34044
Austin Clements [Fri, 28 Aug 2009 19:45:30 +0000 (12:45 -0700)]
Give NamedTypes a public interface
R=rsc
APPROVED=rsc
DELTA=32 (14 added, 1 deleted, 17 changed)
OCL=34043
CL=34043
Ken Thompson [Fri, 28 Aug 2009 19:37:39 +0000 (12:37 -0700)]
sliceslice inline
R=rsc
OCL=34041
CL=34041
Rob Pike [Fri, 28 Aug 2009 18:57:38 +0000 (11:57 -0700)]
fix ", First" ", Last" ranges from UnicodeData.txt
R=rsc
DELTA=54 (38 added, 2 deleted, 14 changed)
OCL=34032
CL=34040
Ian Lance Taylor [Fri, 28 Aug 2009 18:44:46 +0000 (11:44 -0700)]
Run the tests for the testing package. Fix them so that they
work.
R=rsc
DELTA=16 (1 added, 1 deleted, 14 changed)
OCL=34012
CL=34038
Robert Griesemer [Fri, 28 Aug 2009 18:39:25 +0000 (11:39 -0700)]
- don't associate factory methods to basic types (which have no explicit declarations)
- be more robust in the presence of absent type declarations
R=rsc
DELTA=81 (63 added, 14 deleted, 4 changed)
OCL=34033
CL=34036
Robert Griesemer [Fri, 28 Aug 2009 18:28:05 +0000 (11:28 -0700)]
- exponentially back off auto-sync'ing instead disabling it in case of failure
R=rsc
DELTA=48 (35 added, 3 deleted, 10 changed)
OCL=34030
CL=34034
Austin Clements [Fri, 28 Aug 2009 17:39:57 +0000 (10:39 -0700)]
Implement runtime errors, divide-by-zero checking, nil pointer
checking, bounds checking, and map key checking.
R=rsc
APPROVED=rsc
DELTA=202 (108 added, 72 deleted, 22 changed)
OCL=33981
CL=34031
Robert Griesemer [Fri, 28 Aug 2009 16:11:01 +0000 (09:11 -0700)]
- collect consts and vars in one list
- handle absence of forward-decls correctly
(cannot assume a type was declared before it was used)
R=rsc
DELTA=112 (32 added, 38 deleted, 42 changed)
OCL=34008
CL=34027
Kai Backman [Fri, 28 Aug 2009 14:23:24 +0000 (07:23 -0700)]
64 bit lsh, sub, and/or/eor. some placeholder files in syscall and os.
R=rsc
APPROVED=rsc
DELTA=204 (139 added, 0 deleted, 65 changed)
OCL=34009
CL=34025
David Symonds [Fri, 28 Aug 2009 09:27:32 +0000 (02:27 -0700)]
Build fix: fix typo in sort pkg.
APPROVED=rsc
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=34016
CL=34022
Rob Pike [Fri, 28 Aug 2009 01:38:02 +0000 (18:38 -0700)]
improve generated code for godocability
R=rsc
DELTA=459 (168 added, 279 deleted, 12 changed)
OCL=34005
CL=34007
Russ Cox [Fri, 28 Aug 2009 01:36:45 +0000 (18:36 -0700)]
os.File.ReadAt/WriteAt
R=r
DELTA=84 (81 added, 0 deleted, 3 changed)
OCL=34006
CL=34006
Rob Pike [Fri, 28 Aug 2009 01:23:45 +0000 (18:23 -0700)]
add Sort methods for convenience types
R=gri
DELTA=9 (9 added, 0 deleted, 0 changed)
OCL=34000
CL=34003
Rob Pike [Fri, 28 Aug 2009 00:04:23 +0000 (17:04 -0700)]
add scripts tables to the unicode package
R=rsc
DELTA=1479 (1422 added, 1 deleted, 56 changed)
OCL=33993
CL=33997
Robert Griesemer [Thu, 27 Aug 2009 23:45:42 +0000 (16:45 -0700)]
doc fixes (no lang changes)
- added missing predeclared identifiers
- html-escaping of a few <<'s and >>'s
- added a few links (and removed the §'s)
R=r
DELTA=30 (0 added, 0 deleted, 30 changed)
OCL=33985
CL=33995
Robert Griesemer [Thu, 27 Aug 2009 23:44:17 +0000 (16:44 -0700)]
tweaks
R=r
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=33994
CL=33994
Ken Thompson [Thu, 27 Aug 2009 21:59:26 +0000 (14:59 -0700)]
bug in arrayslice
R=rsc
OCL=33987
CL=33987
Robert Griesemer [Thu, 27 Aug 2009 21:22:51 +0000 (14:22 -0700)]
- modified type switches (replacement for CL 32659)
- takes into account new scoping rules
DELTA=52 (21 added, 7 deleted, 24 changed)
OCL=33967
CL=33982
Ken Thompson [Thu, 27 Aug 2009 20:19:44 +0000 (13:19 -0700)]
inline slicearray
R=rsc
OCL=33974
CL=33974
Austin Clements [Thu, 27 Aug 2009 20:11:06 +0000 (13:11 -0700)]
Utilities to bridge native types and functions into
interpreter values. Also, print nil values properly.
R=rsc
APPROVED=rsc
DELTA=173 (173 added, 0 deleted, 0 changed)
OCL=33837
CL=33973
Robert Griesemer [Thu, 27 Aug 2009 18:25:16 +0000 (11:25 -0700)]
Cleanups:
- remove visitor pattern interface (not used)
- added non-exported "branding" methods to enforce
node hierarchy
R=rsc
DELTA=174 (13 added, 92 deleted, 69 changed)
OCL=33838
CL=33963
Austin Clements [Thu, 27 Aug 2009 18:24:13 +0000 (11:24 -0700)]
Debugger architecture interface and definitions for AMD64.
R=rsc
APPROVED=rsc
DELTA=114 (114 added, 0 deleted, 0 changed)
OCL=33957
CL=33962
Austin Clements [Thu, 27 Aug 2009 18:21:52 +0000 (11:21 -0700)]
Make the statement compiler not use the AST visitor.
In the process, I made error handling in the statement
compiler much saner. Instead of separately tracking various
error flags with weird relations, I just track if any error
messages have been produced.
R=rsc
APPROVED=rsc
DELTA=308 (98 added, 135 deleted, 75 changed)
OCL=33870
CL=33961
Russ Cox [Thu, 27 Aug 2009 18:20:15 +0000 (11:20 -0700)]
remove Line in bufio.ReadLine(Bytes|Slice|String)
also drop bool arg from ReadString
R=r
DELTA=45 (13 added, 1 deleted, 31 changed)
OCL=33923
CL=33960
Russ Cox [Thu, 27 Aug 2009 18:17:14 +0000 (11:17 -0700)]
add and use Make.cmd
R=r
DELTA=63 (23 added, 31 deleted, 9 changed)
OCL=33932
CL=33959
Russ Cox [Thu, 27 Aug 2009 18:16:34 +0000 (11:16 -0700)]
clean up ideal handling; reject attempts
to write type descriptors for ideal types
R=ken
OCL=33958
CL=33958
Rob Pike [Thu, 27 Aug 2009 16:58:43 +0000 (09:58 -0700)]
fix build. changing var to const, which it should be anyway,
implicitly works around 6g bug.
R=rsc
OCL=33953
CL=33953
Rob Pike [Thu, 27 Aug 2009 16:14:32 +0000 (09:14 -0700)]
unicode tables for all categories
maketables now has a --test option to verify the data.
R=rsc
DELTA=3087 (1982 added, 1001 deleted, 104 changed)
OCL=33947
CL=33950
Nigel Tao [Thu, 27 Aug 2009 04:51:03 +0000 (21:51 -0700)]
Introduce the image package.
R=rsc
APPROVED=r,rsc
DELTA=244 (244 added, 0 deleted, 0 changed)
OCL=33733
CL=33940
Ken Thompson [Thu, 27 Aug 2009 02:19:07 +0000 (19:19 -0700)]
bug slicing array - cap is huge
R=rsc
OCL=33936
CL=33936
David Symonds [Thu, 27 Aug 2009 01:30:13 +0000 (18:30 -0700)]
template: Support iterables for repeated fields.
R=r,rsc
APPROVED=rsc
DELTA=194 (97 added, 32 deleted, 65 changed)
OCL=33861
CL=33933
Rob Pike [Wed, 26 Aug 2009 23:53:07 +0000 (16:53 -0700)]
change IsDecimalDigit to IsDigit because Decimal is redundant
R=rsc
DELTA=792 (398 added, 383 deleted, 11 changed)
OCL=33919
CL=33921
Ian Lance Taylor [Wed, 26 Aug 2009 23:24:51 +0000 (16:24 -0700)]
Cascading errors lead to a compiler crash.
R=rsc
DELTA=18 (18 added, 0 deleted, 0 changed)
OCL=33914
CL=33917
Russ Cox [Wed, 26 Aug 2009 23:23:54 +0000 (16:23 -0700)]
add io.LimitReader.
use it to limit data read from http.Request Body
R=r
DELTA=32 (8 added, 6 deleted, 18 changed)
OCL=33899
CL=33916
Russ Cox [Wed, 26 Aug 2009 23:23:34 +0000 (16:23 -0700)]
fix bufio bugs involving readers that return os.EOF with
the last bit of data.
add a new iotest.DataErrReader for tests
R=r
DELTA=93 (41 added, 31 deleted, 21 changed)
OCL=33897
CL=33915
Russ Cox [Wed, 26 Aug 2009 23:19:59 +0000 (16:19 -0700)]
fix codec test bug - uint -> uint8
R=r
OCL=33913
CL=33913
Ian Lance Taylor [Wed, 26 Aug 2009 23:14:17 +0000 (16:14 -0700)]
Implement divWW_g in Go.
R=gri
DELTA=105 (77 added, 23 deleted, 5 changed)
OCL=33890
CL=33910
Rob Pike [Wed, 26 Aug 2009 23:01:31 +0000 (16:01 -0700)]
generate the unicode tables directly from web database
after this CL, two more to come:
1) add an exhaustive test, probably as a variant of maketables
2) add ToUpper, ToLower, ToTitle and associated tests
R=rsc
DELTA=1578 (1007 added, 559 deleted, 12 changed)
OCL=33902
CL=33907
Russ Cox [Wed, 26 Aug 2009 22:26:09 +0000 (15:26 -0700)]
recycle G structs
R=r
DELTA=1 (1 added, 0 deleted, 0 changed)
OCL=33887
CL=33904
Ian Lance Taylor [Wed, 26 Aug 2009 21:40:34 +0000 (14:40 -0700)]
Restore comment line accidentally dropped in CL 33097.
R=rsc
DELTA=1 (1 added, 0 deleted, 0 changed)
OCL=33891
CL=33891
Robert Griesemer [Wed, 26 Aug 2009 19:55:54 +0000 (12:55 -0700)]
cleanups before making larger changes
R=rsc
DELTA=113 (10 added, 30 deleted, 73 changed)
OCL=33877
CL=33882
Russ Cox [Wed, 26 Aug 2009 19:42:22 +0000 (12:42 -0700)]
finish ChanValue: Len and Cap.
R=r
DELTA=45 (45 added, 0 deleted, 0 changed)
OCL=33873
CL=33881
Russ Cox [Wed, 26 Aug 2009 17:47:18 +0000 (10:47 -0700)]
add Close() and Closed() to ChanValue
R=r
DELTA=60 (56 added, 3 deleted, 1 changed)
OCL=33868
CL=33872
Robert Griesemer [Wed, 26 Aug 2009 16:46:12 +0000 (09:46 -0700)]
added Newton-Raphson Division as an additional bignum testcase
R=rsc
DELTA=192 (192 added, 0 deleted, 0 changed)
OCL=33853
CL=33864
Austin Clements [Wed, 26 Aug 2009 00:57:40 +0000 (17:57 -0700)]
Make the expression compiler not use the AST visitor. The
statement compiler will be fixed in a later CL.
The input and output of the expression compiler are now
clearly distinguished. In the process, I made the individual
expression compilers operate on the compiled form of their
children instead of AST nodes. As a result, there are now
fewer places where I hand-craft intermediate expression nodes.
The diff looks scarier than it is, mostly because exprCompiler
has been split into the input and output types, resulting in
lots of little renames.
R=rsc
APPROVED=rsc
DELTA=774 (204 added, 199 deleted, 371 changed)
OCL=33851
CL=33851
Rob Pike [Tue, 25 Aug 2009 22:54:25 +0000 (15:54 -0700)]
rename runtime internals to have modern names (array->slice etc)
R=rsc
DELTA=444 (179 added, 177 deleted, 88 changed)
OCL=33847
CL=33849
Russ Cox [Tue, 25 Aug 2009 22:37:22 +0000 (15:37 -0700)]
checkpoint & test (pidigits) before trying to automate.
R=r
DELTA=616 (598 added, 11 deleted, 7 changed)
OCL=33846
CL=33848
Russ Cox [Tue, 25 Aug 2009 04:16:15 +0000 (21:16 -0700)]
cgocall bug fix.
better FFI demo: compute fibonacci numbers using FFI'ed libgmp.
R=r
DELTA=281 (255 added, 19 deleted, 7 changed)
OCL=33815
CL=33820
David Symonds [Tue, 25 Aug 2009 00:31:35 +0000 (17:31 -0700)]
Wrap kludge text in HTML comments so the text/html output will remain valid HTML.
Be more conservative: only mess with text/html and text/plain output.
R=rsc
APPROVED=rsc
DELTA=20 (12 added, 5 deleted, 3 changed)
OCL=33806
CL=33812
Russ Cox [Tue, 25 Aug 2009 00:30:00 +0000 (17:30 -0700)]
start of FFI support, and a demo.
R=r
DELTA=494 (492 added, 0 deleted, 2 changed)
OCL=33784
CL=33810
Russ Cox [Tue, 25 Aug 2009 00:27:55 +0000 (17:27 -0700)]
ffi -> dynld.
move out of export data into its own section
R=r
DELTA=222 (71 added, 99 deleted, 52 changed)
OCL=33801
CL=33808
Russ Cox [Tue, 25 Aug 2009 00:06:10 +0000 (17:06 -0700)]
bug132
R=ken
OCL=33792
CL=33803
Russ Cox [Tue, 25 Aug 2009 00:04:12 +0000 (17:04 -0700)]
change reflect test to avoid bug132
R=gri
DELTA=20 (17 added, 0 deleted, 3 changed)
OCL=33793
CL=33802
Russ Cox [Mon, 24 Aug 2009 23:15:21 +0000 (16:15 -0700)]
first attempt at real FFI support.
in a .6 file, an export line
//ffi T localfib remotefib remote.so
means the dynamic linker should initialize
localfib, always a pointer, to the address of
remotefib, either text (T) or data (D) after
loading remote.so.
the C compiler will generate an export section
when given the pragmas
#pragma package fib
#pragma ffi T localfib remotefib remote.so
needing #pragma package is a bit of a kludge
and hopefully could go away later.
this is just the 6 tool chain support.
other architectures will happen once 6 settles down.
code using this to do FFI is in a later CL.
R=r
DELTA=161 (141 added, 14 deleted, 6 changed)
OCL=33783
CL=33795
Rob Pike [Mon, 24 Aug 2009 23:12:59 +0000 (16:12 -0700)]
fix duplicated word
R=rsc
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=33788
CL=33791
Ian Lance Taylor [Mon, 24 Aug 2009 22:56:39 +0000 (15:56 -0700)]
Match gccgo error messages.
bug192.go:11:5: error: redefinition of ‘fmt’
bug192.go:9:8: note: previous definition of ‘fmt’ was here
R=r
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=33780
CL=33790
Robert Griesemer [Mon, 24 Aug 2009 22:45:51 +0000 (15:45 -0700)]
- fix for multiple fields at same depth error
R=rsc
DELTA=9 (5 added, 0 deleted, 4 changed)
OCL=33768
CL=33785
Russ Cox [Mon, 24 Aug 2009 22:20:37 +0000 (15:20 -0700)]
gc: handle iface == nil in back end
R=ken
OCL=33778
CL=33781
Kai Backman [Mon, 24 Aug 2009 20:57:04 +0000 (13:57 -0700)]
64bit literal RSH
R=rsc
APPROVED=rsc
DELTA=85 (35 added, 0 deleted, 50 changed)
OCL=33761
CL=33767
Austin Clements [Mon, 24 Aug 2009 20:48:16 +0000 (13:48 -0700)]
Make it only necessary to exit blocks, not scopes. Allow
variables to be given initial values in some cases, to make
building global scopes more convenient.
R=rsc
APPROVED=rsc
DELTA=29 (17 added, 0 deleted, 12 changed)
OCL=33760
CL=33766
Russ Cox [Mon, 24 Aug 2009 20:41:47 +0000 (13:41 -0700)]
bug197
R=ken
OCL=33765
CL=33765
Russ Cox [Mon, 24 Aug 2009 18:03:23 +0000 (11:03 -0700)]
avoid duplicate field names, so that bug132 can be fixed
also fix echo bug that just surfaced in mkerrors.sh
R=r
DELTA=67 (11 added, 19 deleted, 37 changed)
OCL=33743
CL=33757
Russ Cox [Mon, 24 Aug 2009 17:19:31 +0000 (10:19 -0700)]
linker work
* use //ffi comments in package import data
to generate relocation entries and library loads.
* call initffi in rt0.s if present
R=r
DELTA=117 (91 added, 3 deleted, 23 changed)
OCL=33739
CL=33750
Russ Cox [Mon, 24 Aug 2009 16:23:04 +0000 (09:23 -0700)]
bug189
R=ken
OCL=33745
CL=33745
Russ Cox [Mon, 24 Aug 2009 01:09:44 +0000 (18:09 -0700)]
half of bug193
R=ken
OCL=33730
CL=33730
Russ Cox [Mon, 24 Aug 2009 01:03:14 +0000 (18:03 -0700)]
linker work
* more elf constants from FreeBSD
* simple relocation demo
R=r
DELTA=410 (354 added, 49 deleted, 7 changed)
OCL=33689
CL=33729