]> Cypherpunks repositories - gostls13.git/log
gostls13.git
15 years agobug190.
Russ Cox [Tue, 20 Oct 2009 01:47:37 +0000 (18:47 -0700)]
bug190.

also eliminate float80 dregs

R=ken
OCL=35894
CL=35896

15 years agoduplicate of bug190
Russ Cox [Tue, 20 Oct 2009 01:46:46 +0000 (18:46 -0700)]
duplicate of bug190

R=gri
DELTA=16  (0 added, 16 deleted, 0 changed)
OCL=35892
CL=35895

15 years agosupport one-line functions
Robert Griesemer [Mon, 19 Oct 2009 20:57:51 +0000 (13:57 -0700)]
support one-line functions

R=rsc
DELTA=207  (160 added, 42 deleted, 5 changed)
OCL=35854
CL=35887

15 years ago- method names in method sets/interfaces must be all different
Robert Griesemer [Mon, 19 Oct 2009 20:13:59 +0000 (13:13 -0700)]
- method names in method sets/interfaces must be all different
- specify evaluation order of floating-point expressions as
  discussed
- specify floating point conversion rounding as discussed
- slightly reformatted section on conversions to make it
  more readable (hopefully)
- fixed production for interpreted_string_lit - components
  were not properly tagged before because of """ instead of `"`

R=go-dev
DELTA=83  (41 added, 11 deleted, 31 changed)
OCL=35864
CL=35885

15 years agofunction literals
Kai Backman [Mon, 19 Oct 2009 19:44:08 +0000 (12:44 -0700)]
function literals

go/test: passes 86% (297/343)

R=rsc
APPROVED=rsc
DELTA=14  (10 added, 1 deleted, 3 changed)
OCL=35881
CL=35884

15 years agotest and fix http redirect handling
Russ Cox [Mon, 19 Oct 2009 19:10:14 +0000 (12:10 -0700)]
test and fix http redirect handling

BUG=2197242
R=r
DELTA=16  (16 added, 0 deleted, 0 changed)
OCL=35878
CL=35882

15 years agofiddling while rome burns: explain why tests are commented out
Rob Pike [Mon, 19 Oct 2009 18:54:59 +0000 (11:54 -0700)]
fiddling while rome burns: explain why tests are commented out

R=rsc
DELTA=2  (2 added, 0 deleted, 0 changed)
OCL=35874
CL=35880

15 years agoAdd an RSA-OAEP implementation.
Adam Langley [Mon, 19 Oct 2009 18:52:44 +0000 (11:52 -0700)]
Add an RSA-OAEP implementation.

R=rsc
APPROVED=rsc
DELTA=734  (734 added, 0 deleted, 0 changed)
OCL=35738
CL=35879

15 years agodirectory tree walk w/ visitor per rsc's suggestion
Robert Griesemer [Mon, 19 Oct 2009 18:48:04 +0000 (11:48 -0700)]
directory tree walk w/ visitor per rsc's suggestion

R=rsc,r
DELTA=193  (191 added, 0 deleted, 2 changed)
OCL=35849
CL=35877

15 years agobug 211: duplicate interface methods not caught by 6g
Rob Pike [Mon, 19 Oct 2009 18:47:42 +0000 (11:47 -0700)]
bug 211: duplicate interface methods not caught by 6g

R=gri
DELTA=17  (17 added, 0 deleted, 0 changed)
OCL=35852
CL=35876

15 years agoaddress leftover post-submit comments about embedding
Rob Pike [Mon, 19 Oct 2009 17:34:00 +0000 (10:34 -0700)]
address leftover post-submit comments about embedding

R=rsc
DELTA=11  (9 added, 0 deleted, 2 changed)
OCL=35872
CL=35872

15 years agomore embedding. enough for now?
Rob Pike [Fri, 16 Oct 2009 23:16:02 +0000 (16:16 -0700)]
more embedding. enough for now?

R=rsc
DELTA=51  (48 added, 0 deleted, 3 changed)
OCL=35846
CL=35853

15 years agobug210
Robert Griesemer [Fri, 16 Oct 2009 20:31:35 +0000 (13:31 -0700)]
bug210

R=rsc
DELTA=20  (20 added, 0 deleted, 0 changed)
OCL=35847
CL=35847

15 years agofix arm build, add 64 bit cgen_asop
Kai Backman [Fri, 16 Oct 2009 19:02:14 +0000 (12:02 -0700)]
fix arm build, add 64 bit cgen_asop

R=rsc
APPROVED=rsc
DELTA=21  (21 added, 0 deleted, 0 changed)
OCL=35845
CL=35845

15 years agofix pre-submit editing typo; text is garbled.
Rob Pike [Fri, 16 Oct 2009 18:23:45 +0000 (11:23 -0700)]
fix pre-submit editing typo; text is garbled.

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=35841
CL=35841

15 years agoembedding part 1.
Rob Pike [Fri, 16 Oct 2009 18:13:40 +0000 (11:13 -0700)]
embedding part 1.

R=rsc
DELTA=128  (104 added, 0 deleted, 24 changed)
OCL=35835
CL=35839

15 years agofix linux build:
Russ Cox [Fri, 16 Oct 2009 06:57:04 +0000 (23:57 -0700)]
fix linux build:
i renamed sys to runtime but didn't remember this file.
(and the darwin build doesn't use it.)

TBR=r
OCL=35826
CL=35826

15 years agorename sys functions to runtime,
Russ Cox [Fri, 16 Oct 2009 06:10:49 +0000 (23:10 -0700)]
rename sys functions to runtime,
because they are in package runtime.

another step to enforcing package boundaries.

R=r
DELTA=732  (114 added, 93 deleted, 525 changed)
OCL=35811
CL=35824

15 years agomove math out of runtime.
Russ Cox [Fri, 16 Oct 2009 06:09:22 +0000 (23:09 -0700)]
move math out of runtime.

a step toward enforcing package boundaries,
necessary to eliminate global package name space.

R=r
DELTA=581  (310 added, 271 deleted, 0 changed)
OCL=35805
CL=35823

15 years agomore description
Russ Cox [Fri, 16 Oct 2009 06:08:46 +0000 (23:08 -0700)]
more description

R=r
DELTA=4  (2 added, 0 deleted, 2 changed)
OCL=35809
CL=35822

15 years agoimproved handling of expression lists
Robert Griesemer [Fri, 16 Oct 2009 05:52:11 +0000 (22:52 -0700)]
improved handling of expression lists

R=rsc
DELTA=189  (118 added, 9 deleted, 62 changed)
OCL=35816
CL=35821

15 years agofix minor typo in float conversions
Kai Backman [Fri, 16 Oct 2009 05:30:57 +0000 (22:30 -0700)]
fix minor typo in float conversions

R=rsc
APPROVED=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=35820
CL=35820

15 years agoTrivial documentation fix for func ListenAndServe().
Stephen Ma [Fri, 16 Oct 2009 05:18:14 +0000 (22:18 -0700)]
Trivial documentation fix for func ListenAndServe().

R=go-dev
APPROVED=gri
DELTA=1  (1 added, 0 deleted, 0 changed)
OCL=35817
CL=35819

15 years agofix OINDEX address generation, leftover misunderstanding about
Kai Backman [Fri, 16 Oct 2009 05:16:31 +0000 (22:16 -0700)]
fix OINDEX address generation, leftover misunderstanding about
how scale works on amd64/386

go/test: passes 85% (294/342)

R=rsc
APPROVED=rsc
DELTA=27  (26 added, 1 deleted, 0 changed)
OCL=35815
CL=35818

15 years agofix arm build
Kai Backman [Fri, 16 Oct 2009 04:27:09 +0000 (21:27 -0700)]
fix arm build

R=rsc
APPROVED=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=35812
CL=35814

15 years agotest/64bit.go passes but doesn't generate properly yet.
Kai Backman [Fri, 16 Oct 2009 02:41:51 +0000 (19:41 -0700)]
test/64bit.go passes but doesn't generate properly yet.

R=rsc
APPROVED=rsc
DELTA=235  (98 added, 38 deleted, 99 changed)
OCL=35789
CL=35813

15 years agoupdate Make.deps
Robert Griesemer [Fri, 16 Oct 2009 00:54:57 +0000 (17:54 -0700)]
update Make.deps

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=35808
CL=35808

15 years agopublish semacquire and semrelease for use by sync.
Russ Cox [Fri, 16 Oct 2009 00:46:53 +0000 (17:46 -0700)]
publish semacquire and semrelease for use by sync.

more enforcing package boundaries

R=r
DELTA=46  (13 added, 15 deleted, 18 changed)
OCL=35806
CL=35806

15 years agomore explanatory text
Russ Cox [Thu, 15 Oct 2009 23:51:53 +0000 (16:51 -0700)]
more explanatory text

R=r
DELTA=11  (8 added, 0 deleted, 3 changed)
OCL=35797
CL=35804

15 years ago- implemented utility functions for directory reading/traversal
Robert Griesemer [Thu, 15 Oct 2009 23:34:05 +0000 (16:34 -0700)]
- implemented utility functions for directory reading/traversal
- added tests

R=rsc
DELTA=62  (61 added, 1 deleted, 0 changed)
OCL=35788
CL=35802

15 years ago386 shift bug; wasn't zero-extending 16- and 8-bit counts
Russ Cox [Thu, 15 Oct 2009 23:32:45 +0000 (16:32 -0700)]
386 shift bug; wasn't zero-extending 16- and 8-bit counts
+test

R=ken
OCL=35801
CL=35801

15 years agodo not migrate x to the heap because of *&x.
Russ Cox [Thu, 15 Oct 2009 23:03:01 +0000 (16:03 -0700)]
do not migrate x to the heap because of *&x.

R=ken
OCL=35799
CL=35799

15 years agoImplement error handling on process monitor exit. Now, before
Austin Clements [Thu, 15 Oct 2009 19:59:59 +0000 (12:59 -0700)]
Implement error handling on process monitor exit.  Now, before
sending any message to the monitor, the sender must check a
"ready" channel.  Before exiting, the monitor records its exit
error and closes this channel, ensuring that all later reads
from the ready channel will immediately return false.

Inspired by
http://chplib.wordpress.com/2009/09/30/poison-concurrent-termination/

R=rsc
APPROVED=rsc
DELTA=47  (27 added, 11 deleted, 9 changed)
OCL=35782
CL=35784

15 years agoclose file after use
Robert Griesemer [Thu, 15 Oct 2009 19:04:13 +0000 (12:04 -0700)]
close file after use

R=rsc
DELTA=1  (1 added, 0 deleted, 0 changed)
OCL=35778
CL=35780

15 years agoDefine the new Rand and Source types to allow creating
Dave Bort [Thu, 15 Oct 2009 18:46:37 +0000 (11:46 -0700)]
Define the new Rand and Source types to allow creating
isolated sources of random values.

Add normal and exponential distributions.

Add some tests for the normal and exponential distributions.

R=rsc
APPROVED=rsc
DELTA=1005  (904 added, 80 deleted, 21 changed)
OCL=35501
CL=35779

15 years agoadd exp/eval to pkg list
Russ Cox [Thu, 15 Oct 2009 18:05:23 +0000 (11:05 -0700)]
add exp/eval to pkg list
update Make.deps.

fixes build

TBR=r
OCL=35777
CL=35777

15 years agonacl demos
Russ Cox [Thu, 15 Oct 2009 18:04:33 +0000 (11:04 -0700)]
nacl demos

R=r
DELTA=9147  (9147 added, 0 deleted, 0 changed)
OCL=35734
CL=35776

15 years agoexplain exp
Russ Cox [Thu, 15 Oct 2009 18:02:18 +0000 (11:02 -0700)]
explain exp

R=r
DELTA=3  (3 added, 0 deleted, 0 changed)
OCL=35732
CL=35775

15 years ago- bug fix: must not insert indentation tabs into multi-line strings in RawFormat
Robert Griesemer [Thu, 15 Oct 2009 17:41:07 +0000 (10:41 -0700)]
- bug fix: must not insert indentation tabs into multi-line strings in RawFormat
  (always write tabwriter.Escape chars so formatting is driven correctly; but strip
  them again in the end if no tabwriter is used)
- added testcase for RawFormat printing

R=rsc
DELTA=227  (198 added, 6 deleted, 23 changed)
OCL=35772
CL=35774

15 years agobug fix: do not modify (string) literals in any way even if they
Robert Griesemer [Thu, 15 Oct 2009 16:29:31 +0000 (09:29 -0700)]
bug fix: do not modify (string) literals in any way even if they
contain tabs or line breaks

R=rsc
DELTA=57  (19 added, 12 deleted, 26 changed)
OCL=35749
CL=35770

15 years agopermit escaped text segments which pass through tabwriter
Robert Griesemer [Thu, 15 Oct 2009 16:28:52 +0000 (09:28 -0700)]
permit escaped text segments which pass through tabwriter
undisturbed and uninterpreted

R=rsc
DELTA=141  (82 added, 23 deleted, 36 changed)
OCL=35747
CL=35769

15 years agoWork-around for factory function heuristic failure:
Robert Griesemer [Thu, 15 Oct 2009 16:24:19 +0000 (09:24 -0700)]
Work-around for factory function heuristic failure:
only associate a couple of functions as factories
for os.Error.

Replaces CL 35628 (abandoned).

R=rsc
DELTA=35  (26 added, 0 deleted, 9 changed)
OCL=35754
CL=35768

15 years agotypo
Rob Pike [Thu, 15 Oct 2009 07:27:40 +0000 (00:27 -0700)]
typo

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=35743
CL=35762

15 years agoforgot to update the body when i changed the receiver type.
Rob Pike [Thu, 15 Oct 2009 07:27:26 +0000 (00:27 -0700)]
forgot to update the body when i changed the receiver type.

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=35759
CL=35761

15 years agointerfaces and methods.
Rob Pike [Thu, 15 Oct 2009 06:03:08 +0000 (23:03 -0700)]
interfaces and methods.

R=rsc
DELTA=160  (143 added, 5 deleted, 12 changed)
OCL=35748
CL=35758

15 years agocas
Kai Backman [Thu, 15 Oct 2009 04:47:28 +0000 (21:47 -0700)]
cas

R=rsc
APPROVED=rsc
DELTA=31  (1 added, 8 deleted, 22 changed)
OCL=35752
CL=35757

15 years agoLDREX and STREX
Kai Backman [Thu, 15 Oct 2009 04:47:08 +0000 (21:47 -0700)]
LDREX and STREX

R=rsc
APPROVED=rsc
DELTA=30  (30 added, 0 deleted, 0 changed)
OCL=35751
CL=35756

15 years agodisable ken/complit for arm
Kai Backman [Thu, 15 Oct 2009 04:46:50 +0000 (21:46 -0700)]
disable ken/complit for arm

R=rsc
APPROVED=rsc
DELTA=1  (0 added, 1 deleted, 0 changed)
OCL=35753
CL=35755

15 years agofix build:
Russ Cox [Thu, 15 Oct 2009 01:29:33 +0000 (18:29 -0700)]
fix build:
avoid infinite loop when cd fails.

TBR=r
OCL=35750
CL=35750

15 years agomove austin/eval and austin/ogle to exp/eval and exp/ogle
Russ Cox [Thu, 15 Oct 2009 01:10:43 +0000 (18:10 -0700)]
move austin/eval and austin/ogle to exp/eval and exp/ogle

R=r
OCL=35736
CL=35746

15 years agoforgot to update Makefile in last CL
Russ Cox [Thu, 15 Oct 2009 01:10:00 +0000 (18:10 -0700)]
forgot to update Makefile in last CL

R=gri
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=35737
CL=35745

15 years agodelete one cgo playpen
Russ Cox [Thu, 15 Oct 2009 01:08:10 +0000 (18:08 -0700)]
delete one cgo playpen

R=r
DELTA=111  (0 added, 111 deleted, 0 changed)
OCL=35739
CL=35744

15 years agoadd CONTRIBUTORS file to record those
Russ Cox [Thu, 15 Oct 2009 00:17:42 +0000 (17:17 -0700)]
add CONTRIBUTORS file to record those
whose code can be accepted into the repository.

R=r
DELTA=44  (44 added, 0 deleted, 0 changed)
OCL=35729
CL=35742

15 years agomove native client to exp/nacl.
Russ Cox [Thu, 15 Oct 2009 00:16:21 +0000 (17:16 -0700)]
move native client to exp/nacl.

R=r
DELTA=3706  (1857 added, 1849 deleted, 0 changed)
OCL=35731
CL=35741

15 years agomove draw to exp
Russ Cox [Thu, 15 Oct 2009 00:15:56 +0000 (17:15 -0700)]
move draw to exp

R=r
DELTA=942  (471 added, 471 deleted, 0 changed)
OCL=35733
CL=35740

15 years agomove datafmt into exp
Russ Cox [Wed, 14 Oct 2009 23:55:05 +0000 (16:55 -0700)]
move datafmt into exp

R=gri
DELTA=3006  (1503 added, 1503 deleted, 0 changed)
OCL=35730
CL=35735

15 years agoAdjust for open source release.
Ian Lance Taylor [Wed, 14 Oct 2009 22:49:20 +0000 (15:49 -0700)]
Adjust for open source release.

R=go-dev
DELTA=111  (19 added, 38 deleted, 54 changed)
OCL=35722
CL=35728

15 years agoexcise some internal references.
Russ Cox [Wed, 14 Oct 2009 20:02:05 +0000 (13:02 -0700)]
excise some internal references.

R=r
DELTA=209  (65 added, 114 deleted, 30 changed)
OCL=35718
CL=35721

15 years agoadd an entry in the lang faq about reference types.
Rob Pike [Wed, 14 Oct 2009 18:53:55 +0000 (11:53 -0700)]
add an entry in the lang faq about reference types.
remove a mention of sawzall in the tutorial.

R=rsc
DELTA=36  (14 added, 4 deleted, 18 changed)
OCL=35717
CL=35719

15 years agoMinor fixes and additions to the GMP wrapping.
Adam Langley [Wed, 14 Oct 2009 17:56:19 +0000 (10:56 -0700)]
Minor fixes and additions to the GMP wrapping.

R=rsc
APPROVED=rsc
DELTA=12  (11 added, 0 deleted, 1 changed)
OCL=35715
CL=35715

15 years agotoss crypto/block Digest in favor of hash.Hash
Russ Cox [Wed, 14 Oct 2009 16:33:15 +0000 (09:33 -0700)]
toss crypto/block Digest in favor of hash.Hash

R=r
DELTA=30  (8 added, 15 deleted, 7 changed)
OCL=35677
CL=35713

15 years agowrite stack traces and panics to stderr
Rob Pike [Wed, 14 Oct 2009 05:48:03 +0000 (22:48 -0700)]
write stack traces and panics to stderr

R=rsc
DELTA=31  (5 added, 3 deleted, 23 changed)
OCL=35700
CL=35700

15 years agobye-bye to old makehtml.
Rob Pike [Wed, 14 Oct 2009 05:10:16 +0000 (22:10 -0700)]
bye-bye to old makehtml.
go can do the job just fine.

R=rsc
DELTA=290  (209 added, 13 deleted, 68 changed)
OCL=35699
CL=35699

15 years agofix links in tutorial
Rob Pike [Wed, 14 Oct 2009 01:01:24 +0000 (18:01 -0700)]
fix links in tutorial

R=rsc
DELTA=30  (0 added, 22 deleted, 8 changed)
OCL=35694
CL=35697

15 years agoclean up the mess that copyright notices make
Rob Pike [Wed, 14 Oct 2009 00:17:30 +0000 (17:17 -0700)]
clean up the mess that copyright notices make

R=rsc
DELTA=555  (92 added, 38 deleted, 425 changed)
OCL=35691
CL=35693

15 years agoDocumentation for png.Decode and png.Encode.
Nigel Tao [Wed, 14 Oct 2009 00:14:49 +0000 (17:14 -0700)]
Documentation for png.Decode and png.Encode.

R=r,rsc
APPROVED=r
DELTA=7  (5 added, 0 deleted, 2 changed)
OCL=35651
CL=35692

15 years agodelete silly TODO
Rob Pike [Tue, 13 Oct 2009 22:55:44 +0000 (15:55 -0700)]
delete silly TODO

R=rsc
DELTA=1  (0 added, 1 deleted, 0 changed)
OCL=35685
CL=35687

15 years agoAdd ASN.1 parser.
Adam Langley [Tue, 13 Oct 2009 21:37:48 +0000 (14:37 -0700)]
Add ASN.1 parser.

R=rsc
APPROVED=rsc
DELTA=1459  (1459 added, 0 deleted, 0 changed)
OCL=35389
CL=35681

15 years agosome stuff about interfaces. not enough yet.
Rob Pike [Tue, 13 Oct 2009 21:32:21 +0000 (14:32 -0700)]
some stuff about interfaces. not enough yet.

R=rsc
DELTA=209  (129 added, 24 deleted, 56 changed)
OCL=35675
CL=35680

15 years agoalign the tutorial with the renaming of SortInterface.
Rob Pike [Tue, 13 Oct 2009 20:05:42 +0000 (13:05 -0700)]
align the tutorial with the renaming of SortInterface.
fix a bug in makehtml - was deleting the output!

R=rsc
DELTA=11  (2 added, 0 deleted, 9 changed)
OCL=35672
CL=35674

15 years agoreduce stutter: sort.SortInterface -> sort.Interface.
Rob Pike [Tue, 13 Oct 2009 20:05:16 +0000 (13:05 -0700)]
reduce stutter: sort.SortInterface -> sort.Interface.
ditto for heap.HeapInterface

R=gri,rsc
DELTA=31  (0 added, 1 deleted, 30 changed)
OCL=35665
CL=35673

15 years agorename the source directory for gopack from ar to gopack.
Rob Pike [Tue, 13 Oct 2009 19:37:28 +0000 (12:37 -0700)]
rename the source directory for gopack from ar to gopack.
remove the references to 6ar

R=rsc
DELTA=3547  (1770 added, 1775 deleted, 2 changed)
OCL=35669
CL=35671

15 years agoAutomated g4 rollback of changelist 35383.
Rob Pike [Tue, 13 Oct 2009 19:37:04 +0000 (12:37 -0700)]
Automated g4 rollback of changelist 35383.

*** Reason for rollback ***

roll back the changes to the tutorial programs (only) since they
break the automated processing used to create the tutorial.

*** Original change description ***

apply gofmt to the LGTM-marked files from 34501
that have not changed since I applied gofmt.

R=rsc
DELTA=139  (0 added, 44 deleted, 95 changed)
OCL=35670
CL=35670

15 years agonew logo
Rob Pike [Tue, 13 Oct 2009 05:58:32 +0000 (22:58 -0700)]
new logo

R=rsc
DELTA=3  (1 added, 1 deleted, 1 changed)
OCL=35652
CL=35652

15 years agotype switches
Rob Pike [Tue, 13 Oct 2009 04:18:23 +0000 (21:18 -0700)]
type switches
errors

R=rsc
DELTA=150  (74 added, 34 deleted, 42 changed)
OCL=35647
CL=35650

15 years agobug fix: convert \v's into \t's if there's no tabwriter
Robert Griesemer [Tue, 13 Oct 2009 02:08:17 +0000 (19:08 -0700)]
bug fix: convert \v's into \t's if there's no tabwriter

R=rsc
DELTA=15  (12 added, 2 deleted, 1 changed)
OCL=35641
CL=35645

15 years ago- improved comment intersperse heuristic:
Robert Griesemer [Tue, 13 Oct 2009 00:10:50 +0000 (17:10 -0700)]
- improved comment intersperse heuristic:
  comments should now be indented properly in corner cases
  (at the end of statement lists, for instance)

- changed import decl. formatting as suggested by Russ (no "global"
  indentation of imports if there are renames present)

- better field list handling

- better documentation

R=rsc
DELTA=534  (324 added, 35 deleted, 175 changed)
OCL=35557
CL=35630

15 years agoReview and update. No major changes, lots of minor tweaks.
Ian Lance Taylor [Mon, 12 Oct 2009 22:43:13 +0000 (15:43 -0700)]
Review and update.  No major changes, lots of minor tweaks.

R=go-dev
DELTA=176  (39 added, 9 deleted, 128 changed)
OCL=35612
CL=35623

15 years agoprinting and maps
Rob Pike [Mon, 12 Oct 2009 21:51:12 +0000 (14:51 -0700)]
printing and maps

R=rsc,gri
DELTA=228  (223 added, 1 deleted, 4 changed)
OCL=35617
CL=35619

15 years agochanged 5c 64 bit word ordering to little endian so it matches
Kai Backman [Mon, 12 Oct 2009 20:35:28 +0000 (13:35 -0700)]
changed 5c 64 bit word ordering to little endian so it matches
5g. fixes to 64 bit code gen. added (finally) function to do
shifts properly.

go/test: passes 83% (287/342)

R=rsc
APPROVED=rsc
DELTA=156  (50 added, 53 deleted, 53 changed)
OCL=35589
CL=35616

15 years agosort errors by line number
Russ Cox [Mon, 12 Oct 2009 18:03:48 +0000 (11:03 -0700)]
sort errors by line number

turn off testdclstack and "not used" errors
when there are syntax errors.

BUG=2181825
R=ken
OCL=35606
CL=35608

15 years agostack overflow debugging and fix.
Russ Cox [Mon, 12 Oct 2009 17:26:38 +0000 (10:26 -0700)]
stack overflow debugging and fix.

  * in 6l, -K already meant check for stack underflow.
    add -KK to mean double-check stack overflows
    even in nosplit functions.

  * comment out print locks; they deadlock too easily
     but are still useful to put back for special occasions.

  * let runcgo assembly switch to scheduler stack
    without involving scheduler directly.  because runcgo
    gets called from matchmg, it is too hard to keep it
    from being called on other stacks.

R=r
DELTA=94  (65 added, 18 deleted, 11 changed)
OCL=35591
CL=35604

15 years agonew builtin.c.boot from arm.
Russ Cox [Mon, 12 Oct 2009 17:12:37 +0000 (10:12 -0700)]
new builtin.c.boot from arm.
node printing fixes.
silence incorrect redeclaration error.

R=ken
OCL=35602
CL=35602

15 years agofix comment on strings.LastIndex.
Russ Cox [Mon, 12 Oct 2009 17:09:35 +0000 (10:09 -0700)]
fix comment on strings.LastIndex.
add bytes.LastIndex.
add strings.Reader.

R=r
DELTA=59  (56 added, 0 deleted, 3 changed)
OCL=35585
CL=35601

15 years agointroduce non-strict mode in xml parser,
Russ Cox [Mon, 12 Oct 2009 06:51:46 +0000 (23:51 -0700)]
introduce non-strict mode in xml parser,
good enough to parse some html.

in reader, add "comment" tag to collect
comment text.

do not allocate during Unmarshal unless pointer is nil.

R=r
DELTA=441  (416 added, 1 deleted, 24 changed)
OCL=35586
CL=35594

15 years agocorrect a design flaw: Atoi etc should not guess the base.
Russ Cox [Mon, 12 Oct 2009 06:46:11 +0000 (23:46 -0700)]
correct a design flaw: Atoi etc should not guess the base.
leave that for Btoi with base == 0.

R=r
DELTA=146  (101 added, 29 deleted, 16 changed)
OCL=35584
CL=35593

15 years agofix build
Russ Cox [Mon, 12 Oct 2009 06:38:44 +0000 (23:38 -0700)]
fix build

TBR=r
OCL=35592
CL=35592

15 years ago64bit and float code generation. fmt compiles but
Kai Backman [Mon, 12 Oct 2009 03:01:11 +0000 (20:01 -0700)]
64bit and float code generation. fmt compiles but
reflect is broken so fmt doesn't work.

go/test: passes 83% (285/342)

R=rsc
APPROVED=rsc
DELTA=415  (240 added, 29 deleted, 146 changed)
OCL=35576
CL=35588

15 years agoPNG encoder now filters.
Nigel Tao [Mon, 12 Oct 2009 02:36:29 +0000 (19:36 -0700)]
PNG encoder now filters.

R=r,rsc
APPROVED=r
DELTA=122  (102 added, 0 deleted, 20 changed)
OCL=35573
CL=35587

15 years agobetter code for allocation through indirection
Rob Pike [Mon, 12 Oct 2009 01:07:47 +0000 (18:07 -0700)]
better code for allocation through indirection

R=rsc
DELTA=11  (3 added, 5 deleted, 3 changed)
OCL=35583
CL=35583

15 years agofix bugs in gob.
Rob Pike [Mon, 12 Oct 2009 00:37:22 +0000 (17:37 -0700)]
fix bugs in gob.
1) didn't handle attempts to encode non-structs properly.
2) if there were multiple indirections involving allocation, didn't allocate the
intermediate cells.
tests added.

R=rsc
DELTA=82  (65 added, 5 deleted, 12 changed)
OCL=35582
CL=35582

15 years agointerpreter checkpoint.
Russ Cox [Sun, 11 Oct 2009 09:35:53 +0000 (02:35 -0700)]
interpreter checkpoint.
  * generate different versions of binary operators
    for each size of int and float, so that proper
    truncating happens after each operation to
    simulate the various sized ops.
  * add slice expressions
  * publish World.CompileStmtList, CompileDeclList, CompileExpr
  * handle type-less expressions in CompileExpr

R=austin
DELTA=1459  (1327 added, 11 deleted, 121 changed)
OCL=34382
CL=35581

15 years agofix float <-> int64 conversions
Kai Backman [Sun, 11 Oct 2009 05:06:26 +0000 (22:06 -0700)]
fix float <-> int64 conversions

R=rsc
APPROVED=rsc
DELTA=25  (25 added, 0 deleted, 0 changed)
OCL=35566
CL=35574

15 years agochange Title to ToTitle for consistency. (the doc comment was already right)
Rob Pike [Sun, 11 Oct 2009 01:56:13 +0000 (18:56 -0700)]
change Title to ToTitle for consistency. (the doc comment was already right)

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=35572
CL=35572

15 years agoreallocate library, libraryobj: 50 isn't nearly enough
Rob Pike [Sat, 10 Oct 2009 19:29:06 +0000 (12:29 -0700)]
reallocate library, libraryobj: 50 isn't nearly enough

R=rsc
DELTA=7  (2 added, 0 deleted, 5 changed)
OCL=35569
CL=35569

15 years agoIn the PNG reader inner loop, collapse the two ReadFull calls into one.
Nigel Tao [Sat, 10 Oct 2009 05:44:40 +0000 (22:44 -0700)]
In the PNG reader inner loop, collapse the two ReadFull calls into one.

R=rsc,r
APPROVED=rsc
DELTA=29  (2 added, 4 deleted, 23 changed)
OCL=35460
CL=35565

15 years agoacid bug fix.
Russ Cox [Fri, 9 Oct 2009 23:45:20 +0000 (16:45 -0700)]
acid bug fix.
lock printf output to avoid interlacing debug prints.

R=r
DELTA=10  (7 added, 0 deleted, 3 changed)
OCL=35539
CL=35561

15 years agohandle compiler crash better:
Russ Cox [Fri, 9 Oct 2009 23:44:40 +0000 (16:44 -0700)]
handle compiler crash better:
need to use exec to avoid seeing
shell output about the crash.

R=iant
DELTA=2  (1 added, 0 deleted, 1 changed)
OCL=35542
CL=35560

15 years agobug209
Russ Cox [Fri, 9 Oct 2009 23:01:32 +0000 (16:01 -0700)]
bug209

R=ken
OCL=35546
CL=35546

15 years agochange date format in logs - was missing slash between month and day
Rob Pike [Fri, 9 Oct 2009 22:44:57 +0000 (15:44 -0700)]
change date format in logs - was missing slash between month and day

R=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=35526
CL=35540