summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-05-07test of struct with embedded interface.Russ Cox1-0/+78
also tests method calls on ptr to interface value. R=r DELTA=74 (74 added, 0 deleted, 0 changed) OCL=28419 CL=28424
2009-05-07if a struct s contains an anonymous interface valueRuss Cox5-9/+50
with method m, s.m() is ok and m now shows up in s's method set for interface runtime. see http://cl/28419-p2 for new test interface10.go. R=ken OCL=28420 CL=28423
2009-05-07next step for 6.out on Borg: fix and testRuss Cox4-2/+27
net code on IPv4-only machines. R=r DELTA=27 (25 added, 0 deleted, 2 changed) OCL=28404 CL=28411
2009-05-076g: error messagesRuss Cox2-5/+15
part 2; missing files R=ken OCL=28408 CL=28410
2009-05-076g: error messagesRuss Cox3-6/+66
replace "shape error across CALL" with more information. x.go:7: not enough arguments to CALL a int, b int int x.go:10: assignment count mismatch: 3 = 2 x.go:12: too many arguments to RETURN [no arguments expected] int, int, int also leave type alone after conversion failure, for later errors: bug049.go:6: cannot convert nil constant to string bug049.go:6: illegal types for operand: EQ string nil # this used to be blank R=ken OCL=28405 CL=28407
2009-05-066g: simplify trampoline by postponing load.Russ Cox1-22/+37
TEXT tramp MOVQ 8(SP), AX ADDQ $40, AX MOVQ AX, 8(SP) JMP oldfunc is now TEXT tramp ADDQ $40, 8(SP) JMP oldfunc and if s/40/0/, then it simplifies to TEXT tramp JMP oldfunc (the tramp is still needed to satisfy symbol references from other object files) R=ken OCL=28377 CL=28381
2009-05-06interface method testsRuss Cox2-0/+142
R=r DELTA=134 (134 added, 0 deleted, 0 changed) OCL=28373 CL=28380
2009-05-06fix a few type errors, make ErrorString a valueRuss Cox1-2/+2
will submit with fixed compiler R=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=28371 CL=28379
2009-05-066g: new interface rules (code got simpler!)Russ Cox5-178/+121
R=ken OCL=28374 CL=28378
2009-05-06semi-weekly snapshot:Robert Griesemer5-116/+180
- format-driven pretty printing now handles all of Go code - better error handling R=r OCL=28370 CL=28372
2009-05-06makefile fixesRuss Cox2-76/+41
R=r OCL=28369 CL=28369
2009-05-066g: generate string data as individual symbols,Russ Cox6-118/+142
so that 6l can discard strings used by dead code. also, for short strings, generate DUPOK global symbols so that references to, say, "%s: %s" in multiple files result in only a single symbol. R=ken OCL=28361 CL=28361
2009-05-06error handling had a bug in execute: the error channel was being shared.Rob Pike1-23/+33
fix that and clean up state handling a little. R=rsc DELTA=44 (18 added, 8 deleted, 18 changed) OCL=28359 CL=28359
2009-05-06added a distinguishing string to the error printsKen Thompson1-31/+58
R=r OCL=28321 CL=28357
2009-05-05add missing Makefile to repair buildRob Pike1-0/+45
TBR=gri OCL=28320 CL=28320
2009-05-05signs on div and modKen Thompson2-1/+197
R=r OCL=28319 CL=28319
2009-05-05new dir structure for lib/goRobert Griesemer14-102/+342
R=r DELTA=9298 (4760 added, 4536 deleted, 2 changed) OCL=28317 CL=28317
2009-05-056g bug: was dropping assignment of nil to globalsRuss Cox1-4/+7
R=ken OCL=28314 CL=28314
2009-05-05mv container/vector down one level for new rules.Rob Pike6-21/+5
simplify run.bash now that lib has make test that recurs. R=rsc DELTA=1179 (578 added, 596 deleted, 5 changed) OCL=28313 CL=28313
2009-05-05wrong type used for dynamic type testRobert Griesemer2-0/+44
R=r DELTA=40 (40 added, 0 deleted, 0 changed) OCL=28308 CL=28311
2009-05-05directory-per-package step 1: move files from lib/X.go to lib/X/X.goRob Pike41-82/+1037
no substantive changes except: - new Makefiles, all auto-generated - go/src/lib/Makefile has been extensively edited R=rsc OCL=28310 CL=28310
2009-05-056g tweaksRuss Cox5-17/+19
* byteastring is no longer used * do not generate ODCL, OAS for globals (wasn't generating any code but might save one or two init functions) * do not call self from Init function R=ken OCL=28309 CL=28309
2009-05-05bug117 is fixed in 6g; now an errchkRuss Cox2-7/+5
R=r DELTA=42 (20 added, 22 deleted, 0 changed) OCL=28295 CL=28295
2009-05-056l: eliminate dead code, not just the symbolsRuss Cox2-2/+22
editing the firstp list was ineffective, because follow rebuilds it from the textp list. the symbols for dead code were being dropped from the binary but the code was all still there. text for fmt.Printf("hello, world\n") drops from 143945 to 128650. R=r,ken DELTA=22 (20 added, 0 deleted, 2 changed) OCL=28255 CL=28290
2009-05-05better io.ByteBuffer implementation:Robert Griesemer2-59/+191
- more light-weight - better buffer management - added test cases R=r DELTA=227 (167 added, 35 deleted, 25 changed) OCL=28252 CL=28289
2009-05-05fmt: dead code and dataRuss Cox1-10/+0
R=r DELTA=10 (0 added, 10 deleted, 0 changed) OCL=28258 CL=28287
2009-05-05update convlit.go to current specRuss Cox2-16/+7
R=r DELTA=17 (2 added, 9 deleted, 6 changed) OCL=28286 CL=28286
2009-05-04string slicing is efficient so remove base and bounds arguments from ↵Rob Pike3-5/+6
RuneCountInString R=rsc DELTA=6 (1 added, 0 deleted, 5 changed) OCL=28242 CL=28256
2009-05-04more code optimizationKen Thompson2-3/+85
1. dont clear external and heap objects 2. propagate constant assignment R=r OCL=28254 CL=28254
2009-05-04Remake exvar package to be more Go-ish.David Symonds4-252/+208
It now exports a Var interface (anyone can export their own custom var types now), so users need to create and manage their own vars and mark them as exportable via the Publish function. They are exposed via /debug/vars. R=r,rsc APPROVED=r DELTA=605 (314 added, 186 deleted, 105 changed) OCL=28143 CL=28239
2009-05-04- remove wrong fixRobert Griesemer1-11/+1
(this corresponds to the currently running version of godoc) R=r DELTA=11 (0 added, 10 deleted, 1 changed) OCL=28238 CL=28238
2009-05-03more morestack fiddlingKen Thompson3-36/+123
R=r OCL=28204 CL=28204
2009-05-03more code fiddlingKen Thompson4-22/+54
R=r OCL=28201 CL=28201
2009-05-02Fix mismatched quote in a comment.David Symonds1-1/+1
R=gri APPROVED=gri DELTA=1 (0 added, 0 deleted, 1 changed) OCL=28184 CL=28192
2009-05-02Verify that a send on a sychronous channel waits until theIan Lance Taylor1-0/+22
value has been received. This failed with gccgo before today. R=ken,r DELTA=18 (18 added, 0 deleted, 0 changed) OCL=28185 CL=28190
2009-05-01weekly snapshot:Robert Griesemer4-265/+573
- template-driven ast printing now can successfully reproduce entire Go programs next steps: - fine-tuning of output - print interspersed comments - cleanup and testing against all Go programs - replace astprinter R=r OCL=28181 CL=28181
2009-05-01code optmizationKen Thompson1-0/+37
drip init function if it doesnt do anything R=r OCL=28180 CL=28180
2009-05-01code improvementKen Thompson2-35/+109
better calling of morestack R=r OCL=28179 CL=28179
2009-05-01clarifying ambiguity of evaluation orderRobert Griesemer1-12/+9
R=r DELTA=16 (0 added, 3 deleted, 13 changed) OCL=28133 CL=28178
2009-05-01Copied 8g/6g into 5g. Used sharp tools to coax a .5 file outKai Backman9-1/+4292
of 5g. 5l balks at the output and running 5g with -S shows the true extent of the disaster. Still, better than yesterday. Maybe. Tested on the canonical: package main func main() { } R=rsc APPROVED=rsc DELTA=4182 (4181 added, 0 deleted, 1 changed) OCL=27601 CL=28175
2009-04-30- incorporated feedback per rscRobert Griesemer2-89/+78
- fixed a bug and added corresponding test case R=rsc DELTA=114 (18 added, 29 deleted, 67 changed) OCL=28114 CL=28128
2009-04-30bug146: array/slice conversion before I left missed conversionsRuss Cox6-41/+17
R=ken OCL=28120 CL=28124
2009-04-30auto-detect whether to use IPv6 or IPv4 kernel interfaceRuss Cox1-3/+12
R=r DELTA=12 (9 added, 0 deleted, 3 changed) OCL=28096 CL=28118
2009-04-30better error messages, not that anyone ever sees themRuss Cox1-20/+28
R=r DELTA=30 (9 added, 1 deleted, 20 changed) OCL=28104 CL=28117
2009-04-30change 6l library directory flag to -L,Russ Cox4-34/+30
to match traditional c linkers. R=r DELTA=42 (8 added, 12 deleted, 22 changed) OCL=28101 CL=28115
2009-04-29don't print binary data. add TODO for better errors.Rob Pike1-1/+2
TBR=rsc DELTA=2 (1 added, 0 deleted, 1 changed) OCL=28066 CL=28070
2009-04-29rename variables for clarity.Rob Pike2-13/+48
add test for structure alignment/offset. R=gri DELTA=49 (35 added, 0 deleted, 14 changed) OCL=28068 CL=28068
2009-04-29Conversion from array to slices should work like assignment:Ian Lance Taylor2-0/+21
you should be able to convert a pointer to an array to a slice, you should not be able to convert an array to a slice. Currently 6g works the other way around. R=ken,rsc DELTA=17 (17 added, 0 deleted, 0 changed) OCL=28033 CL=28067
2009-04-29don't set CLONE_PTRACE -- it confuses straceRuss Cox1-1/+3
R=r DELTA=4 (3 added, 1 deleted, 0 changed) OCL=28063 CL=28065
2009-04-29if the process stops with SIGTRAP (breakpoint),Russ Cox1-2/+3
don't relay the signal when restarting it. R=r DELTA=1 (0 added, 0 deleted, 1 changed) OCL=28060 CL=28064