]> Cypherpunks repositories - gostls13.git/log
gostls13.git
15 years agosymbol bugs.
Russ Cox [Fri, 21 Aug 2009 00:33:28 +0000 (17:33 -0700)]
symbol bugs.
do not emit unreachable data symbols.

R=austin
DELTA=103  (71 added, 4 deleted, 28 changed)
OCL=33325
CL=33622

15 years agoFFI step 2: can ask for libc.so.6.
Russ Cox [Thu, 20 Aug 2009 23:09:38 +0000 (16:09 -0700)]
FFI step 2: can ask for libc.so.6.

introduced explicit "data" symbol instead of etext
to mark beginning of data, so that using larger
alignment (i.e. 4MB like GNU loader) doesn't
confuse garbage collector.

split dodata into dodata and dobss in preparation
for putting the dynamic data + headers in the data
segment instead of stuffed at the beginning of the binary.

R=r
DELTA=52  (37 added, 3 deleted, 12 changed)
OCL=33610
CL=33618

15 years agoadd #include for time and ctime
Russ Cox [Thu, 20 Aug 2009 23:06:06 +0000 (16:06 -0700)]
add #include for time and ctime

R=r
DELTA=1  (1 added, 0 deleted, 0 changed)
OCL=33615
CL=33617

15 years agoFix inflate.go's decompressing of a fixed Huffman block that has
Nigel Tao [Thu, 20 Aug 2009 23:03:34 +0000 (16:03 -0700)]
Fix inflate.go's decompressing of a fixed Huffman block that has
length-distance pairs.

The new test data was generated by "gzip shesells.txt", which is
presumably what you (rsc) did before, for the other test cases in
gunzip_test.go.

R=rsc
APPROVED=rsc
DELTA=21  (17 added, 2 deleted, 2 changed)
OCL=33582
CL=33616

15 years agonames
Rob Pike [Thu, 20 Aug 2009 22:39:41 +0000 (15:39 -0700)]
names

R=rsc
DELTA=96  (25 added, 5 deleted, 66 changed)
OCL=33607
CL=33612

15 years agolen and cap on chans
Russ Cox [Thu, 20 Aug 2009 18:12:04 +0000 (11:12 -0700)]
len and cap on chans

R=ken
OCL=33599
CL=33599

15 years agointroduce meaningful section names, so that
Russ Cox [Thu, 20 Aug 2009 18:11:03 +0000 (11:11 -0700)]
introduce meaningful section names, so that

go_spec.html#Return_statements

can be used to link to spec sections.  passes hlint.
renamed final section to simply "Implementation differences"
to shorten the name, but otherwise no non-formatting changes

R=gri
DELTA=230  (10 added, 0 deleted, 220 changed)
OCL=33598
CL=33598

15 years agoclean up multifile package section.
Russ Cox [Thu, 20 Aug 2009 17:47:40 +0000 (10:47 -0700)]
clean up multifile package section.
remove ASCII digit comment that isn't true.

R=gri
DELTA=41  (1 added, 25 deleted, 15 changed)
OCL=33594
CL=33596

15 years agosimplifications.
Russ Cox [Thu, 20 Aug 2009 17:22:52 +0000 (10:22 -0700)]
simplifications.

mark multifile section with TODO only
because that is a bigger change.

R=gri
DELTA=45  (9 added, 22 deleted, 14 changed)
OCL=33565
CL=33593

15 years agonaming cleanup.
Russ Cox [Thu, 20 Aug 2009 17:18:48 +0000 (10:18 -0700)]
naming cleanup.

gzip.GzipInflater -> gzip.Inflater
gzip.NewGzipInflater -> gzip.NewInflater
zlib.NewZlibInflater -> zlib.NewInflater

io.ByteReader deleted in favor of bytes.Buffer
io.NewByteReader -> bytes.NewBuffer

R=r
DELTA=52  (3 added, 0 deleted, 49 changed)
OCL=33589
CL=33592

15 years agoexclude _test from godoc as well as _obj.
Russ Cox [Thu, 20 Aug 2009 16:49:05 +0000 (09:49 -0700)]
exclude _test from godoc as well as _obj.

R=gri
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=33586
CL=33590

15 years agomore work on adding in pieces. fixed my bad assumptions about
Kai Backman [Thu, 20 Aug 2009 03:17:09 +0000 (20:17 -0700)]
more work on adding in pieces. fixed my bad assumptions about
signed and unsigned integer conversions.

R=rsc
APPROVED=rsc
DELTA=398  (40 added, 230 deleted, 128 changed)
OCL=33546
CL=33569

15 years agochange from using /tmp to local directory
Kai Backman [Thu, 20 Aug 2009 02:19:57 +0000 (19:19 -0700)]
change from using /tmp to local directory

R=rsc
APPROVED=rsc
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=33534
CL=33567

15 years agoadd bug to capture double declaration of name in file and package block
Rob Pike [Thu, 20 Aug 2009 00:37:23 +0000 (17:37 -0700)]
add bug to capture double declaration of name in file and package block

R=rsc
DELTA=12  (12 added, 0 deleted, 0 changed)
OCL=33554
CL=33563

15 years agoproduce diagnostic for
Russ Cox [Thu, 20 Aug 2009 00:27:08 +0000 (17:27 -0700)]
produce diagnostic for

import "fmt"
var fmt = 1

R=ken
OCL=33556
CL=33561

15 years agonew scope rules
Robert Griesemer [Wed, 19 Aug 2009 23:44:04 +0000 (16:44 -0700)]
new scope rules

DELTA=137  (50 added, 24 deleted, 63 changed)
OCL=33476
CL=33553

15 years agosection about comments
Rob Pike [Wed, 19 Aug 2009 23:39:25 +0000 (16:39 -0700)]
section about comments

R=rsc
DELTA=125  (13 added, 62 deleted, 50 changed)
OCL=33545
CL=33550

15 years agotry to do better line number reporting
Russ Cox [Wed, 19 Aug 2009 22:18:08 +0000 (15:18 -0700)]
try to do better line number reporting
in the presence of yacc lookahead.
better but still not perfect

R=ken
OCL=33541
CL=33541

15 years agoWith the changes to support automatic forward declarations of
Ian Lance Taylor [Wed, 19 Aug 2009 21:40:48 +0000 (14:40 -0700)]
With the changes to support automatic forward declarations of
type names, gccgo no longer reports redefinition errors for
:=, because it no longer knows at parse time whether the type
has changed.  Adjust this test to not match "redefinition",
and to instead match gccgo's current output.

declbad.go:19:3: error: variables redeclared but no variable is new
declbad.go:34:3: error: variables redeclared but no variable is new
declbad.go:39:3: error: variables redeclared but no variable is new
declbad.go:44:3: error: variables redeclared but no variable is new
declbad.go:49:3: error: variables redeclared but no variable is new
declbad.go:24:3: error: incompatible types in assignment
declbad.go:29:3: error: incompatible types in assignment
declbad.go:39:3: error: incompatible types in assignment

R=rsc
DELTA=10  (0 added, 0 deleted, 10 changed)
OCL=33537
CL=33539

15 years agogenembedtramp for arm
Kai Backman [Wed, 19 Aug 2009 20:57:11 +0000 (13:57 -0700)]
genembedtramp for arm

R=rsc
APPROVED=rsc
DELTA=104  (0 added, 33 deleted, 71 changed)
OCL=33531
CL=33535

15 years agostart of a rewrite with a different tone
Rob Pike [Wed, 19 Aug 2009 20:24:24 +0000 (13:24 -0700)]
start of a rewrite with a different tone

R=rsc
DELTA=131  (61 added, 6 deleted, 64 changed)
OCL=33488
CL=33532

15 years agofix import dot bug
Russ Cox [Wed, 19 Aug 2009 18:32:46 +0000 (11:32 -0700)]
fix import dot bug

R=ken
OCL=33526
CL=33528

15 years agotemporarily fix linux-arm by building less
Kai Backman [Wed, 19 Aug 2009 18:31:27 +0000 (11:31 -0700)]
temporarily fix linux-arm by building less

R=rsc
APPROVED=rsc
DELTA=2  (1 added, 0 deleted, 1 changed)
OCL=33518
CL=33527

15 years agofix spelling that is correct but bothers me anyway
Rob Pike [Wed, 19 Aug 2009 17:07:31 +0000 (10:07 -0700)]
fix spelling that is correct but bothers me anyway

R=rsc
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=33496
CL=33519

15 years agoELF reader and Go symbol table and PC/line table decoder.
Austin Clements [Wed, 19 Aug 2009 17:05:11 +0000 (10:05 -0700)]
ELF reader and Go symbol table and PC/line table decoder.

R=rsc
APPROVED=rsc
DELTA=1425  (1425 added, 0 deleted, 0 changed)
OCL=33432
CL=33517

15 years agopkg/sort compiling and some progress on syscall. mostly
Kai Backman [Wed, 19 Aug 2009 02:20:33 +0000 (19:20 -0700)]
pkg/sort compiling and some progress on syscall. mostly
re-enabling and massaging code.

R=rsc
APPROVED=rsc
DELTA=2496  (1880 added, 330 deleted, 286 changed)
OCL=33487
CL=33504

15 years agocontainer/list: Add InsertBefore and InsertAfter methods.
David Symonds [Wed, 19 Aug 2009 00:49:44 +0000 (17:49 -0700)]
container/list: Add InsertBefore and InsertAfter methods.

R=rsc
APPROVED=rsc
DELTA=84  (68 added, 4 deleted, 12 changed)
OCL=33493
CL=33499

15 years agoAdd a standard Seeker interface.
Austin Clements [Wed, 19 Aug 2009 00:47:03 +0000 (17:47 -0700)]
Add a standard Seeker interface.

R=rsc
APPROVED=rsc
DELTA=35  (30 added, 4 deleted, 1 changed)
OCL=33491
CL=33498

15 years agodelete obsolete file of notes
Rob Pike [Tue, 18 Aug 2009 23:19:07 +0000 (16:19 -0700)]
delete obsolete file of notes

R=rsc
DELTA=263  (0 added, 263 deleted, 0 changed)
OCL=33466
CL=33485

15 years ago- fix performance bug (makeN always allocated a new vector)
Robert Griesemer [Tue, 18 Aug 2009 18:48:47 +0000 (11:48 -0700)]
- fix performance bug (makeN always allocated a new vector)
- removed defs.go (moved declarations into arith.go where they belong)

R=r
DELTA=40  (16 added, 20 deleted, 4 changed)
OCL=33464
CL=33464

15 years agofix 386 build:
Robert Griesemer [Tue, 18 Aug 2009 17:41:26 +0000 (10:41 -0700)]
fix 386 build:
- implememted empty stubs for 386 assembly routines
- removed assembly code operating on single words (except for one)
- adjusted tests

R=rsc
DELTA=126  (46 added, 67 deleted, 13 changed)
OCL=33461
CL=33461

15 years ago- implemented Multiplication
Robert Griesemer [Tue, 18 Aug 2009 17:06:15 +0000 (10:06 -0700)]
- implemented Multiplication
- changed Cmp to return -1, 0, +1
- added corresponding test cases

R=rsc
DELTA=173  (136 added, 3 deleted, 34 changed)
OCL=33431
CL=33459

15 years agosimple arm continuous build target. will expand with time.
Kai Backman [Tue, 18 Aug 2009 14:17:34 +0000 (07:17 -0700)]
simple arm continuous build target. will expand with time.

R=rsc
APPROVED=rsc
DELTA=61  (61 added, 0 deleted, 0 changed)
OCL=33438
CL=33454

15 years agoslashed warnings
Kai Backman [Tue, 18 Aug 2009 14:16:10 +0000 (07:16 -0700)]
slashed warnings

R=rsc
APPROVED=rsc
DELTA=35  (2 added, 1 deleted, 32 changed)
OCL=33436
CL=33453

15 years agofix runtime and compile regression
Kai Backman [Tue, 18 Aug 2009 14:14:25 +0000 (07:14 -0700)]
fix runtime and compile regression

R=rsc
APPROVED=rsc
DELTA=6  (0 added, 0 deleted, 6 changed)
OCL=33434
CL=33452

15 years agoRemoving dead tests from chan.c
Bill Neubauer [Tue, 18 Aug 2009 05:21:48 +0000 (22:21 -0700)]
Removing dead tests from chan.c
Since pres != nil was already checked and the routine sets *pres to false
and returns, the subsequent tests are unneeded.

R=rsc
APPROVED=rsc
DELTA=4  (0 added, 4 deleted, 0 changed)
OCL=33439
CL=33441

15 years agoZLIB reader for go.
Nigel Tao [Tue, 18 Aug 2009 05:03:13 +0000 (22:03 -0700)]
ZLIB reader for go.

R=rsc
APPROVED=rsc
DELTA=204  (204 added, 0 deleted, 0 changed)
OCL=33437
CL=33440

15 years agoTest that a type can refer to itself recursively as long as it
Ian Lance Taylor [Tue, 18 Aug 2009 02:23:17 +0000 (19:23 -0700)]
Test that a type can refer to itself recursively as long as it
does so in ways that permit its size to be known.

R=rsc
DELTA=35  (35 added, 0 deleted, 0 changed)
OCL=33427
CL=33433

15 years agoMatch gccgo error messages.
Ian Lance Taylor [Tue, 18 Aug 2009 00:40:52 +0000 (17:40 -0700)]
Match gccgo error messages.

bug165.go:13:6: error: invalid recursive type 'S'

This is a different line from the 6g error message, which is
"invalid map key type".  I accomodated both compilers by
merging the line.

bug188.go:13:2: error: unexpected reference to package

I made the error message less specific, which I think is fine
here.

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

15 years agofix build (Makefile comment convention)
Rob Pike [Mon, 17 Aug 2009 22:38:24 +0000 (15:38 -0700)]
fix build    (Makefile comment convention)

R=rsc
OCL=33418
CL=33418

15 years ago- updated Makefile, Make.deps
Robert Griesemer [Mon, 17 Aug 2009 22:20:51 +0000 (15:20 -0700)]
- updated Makefile, Make.deps

R=rsc,r
DELTA=5  (3 added, 0 deleted, 2 changed)
OCL=33413
CL=33417

15 years agoinline lib9.h
Rob Pike [Mon, 17 Aug 2009 22:14:59 +0000 (15:14 -0700)]
inline lib9.h

R=rsc
DELTA=41  (20 added, 2 deleted, 19 changed)
OCL=33412
CL=33415

15 years agodelete old, c-output compiler. won't be open-sourced anyway
Rob Pike [Mon, 17 Aug 2009 21:45:19 +0000 (14:45 -0700)]
delete old, c-output compiler. won't be open-sourced anyway

R=rsc
OCL=33407
CL=33409

15 years agofix a couple of scripts
Rob Pike [Mon, 17 Aug 2009 21:16:25 +0000 (14:16 -0700)]
fix a couple of scripts

R=rsc
DELTA=6  (4 added, 2 deleted, 0 changed)
OCL=33400
CL=33400

15 years agofix up some irregular indentation
Rob Pike [Mon, 17 Aug 2009 20:30:22 +0000 (13:30 -0700)]
fix up some irregular indentation

R=rsc
OCL=33382
CL=33391

15 years agoThere should not be a prohibition against embedding an
Ian Lance Taylor [Mon, 17 Aug 2009 18:40:57 +0000 (11:40 -0700)]
There should not be a prohibition against embedding an
interface type in a struct.  It is meaningful and the
compilers support it.

R=gri
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=33378
CL=33384

15 years agoImplement slice types
Austin Clements [Mon, 17 Aug 2009 18:29:12 +0000 (11:29 -0700)]
Implement slice types

R=rsc
APPROVED=rsc
DELTA=286  (217 added, 42 deleted, 27 changed)
OCL=33319
CL=33383

15 years ago- rename files to match the data types they implement, adusted Makefile
Robert Griesemer [Mon, 17 Aug 2009 17:01:26 +0000 (10:01 -0700)]
- rename files to match the data types they implement, adusted Makefile
- no other changes

R=r
DELTA=1248  (623 added, 623 deleted, 2 changed)
OCL=33371
CL=33371

15 years agosnapshot:
Robert Griesemer [Sat, 15 Aug 2009 18:43:54 +0000 (11:43 -0700)]
snapshot:
- renamed Z -> Int
- made Int ops methods on *Int
- "install" assembly routines dynamically
- replace mulVW functions with mulAddVWW
  of equivalent performance but symmetric functionality
  to divWVW
- implemented scanN

status:
- need mulNN (trivial)
- need division/modulo after which the set of
  elementary operations is complete
- to/from string conversion working

R=rsc
DELTA=320  (124 added, 50 deleted, 146 changed)
OCL=33308
CL=33341

15 years agoruntime gc bug.
Russ Cox [Sat, 15 Aug 2009 03:33:20 +0000 (20:33 -0700)]
runtime gc bug.
semacquire might move to another m.

R=r
DELTA=5  (2 added, 2 deleted, 1 changed)
OCL=33317
CL=33326

15 years ago- remove language on forward decls
Robert Griesemer [Sat, 15 Aug 2009 00:41:52 +0000 (17:41 -0700)]
- remove language on forward decls
- remove language on (in-)complete types

DELTA=95  (8 added, 62 deleted, 25 changed)
OCL=33310
CL=33322

15 years ago6g bug: struct initializers must provide all field values unless the fields are named
Robert Griesemer [Fri, 14 Aug 2009 22:13:32 +0000 (15:13 -0700)]
6g bug: struct initializers must provide all field values unless the fields are named

R=rsc,r
DELTA=16  (16 added, 0 deleted, 0 changed)
OCL=33292
CL=33303

15 years agoremove compat stuff
Rob Pike [Fri, 14 Aug 2009 21:55:22 +0000 (14:55 -0700)]
remove compat stuff

R=rsc
DELTA=70  (16 added, 52 deleted, 2 changed)
OCL=33295
CL=33299

15 years agoZero thread structure so we don't continue with a bogus
Austin Clements [Fri, 14 Aug 2009 21:47:44 +0000 (14:47 -0700)]
Zero thread structure so we don't continue with a bogus
signal.

R=rsc
APPROVED=rsc
DELTA=1  (1 added, 0 deleted, 0 changed)
OCL=33249
CL=33296

15 years agoFix build
Austin Clements [Fri, 14 Aug 2009 21:41:50 +0000 (14:41 -0700)]
Fix build

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

15 years agoMake the runtime correctly decode the symbol table history
Austin Clements [Fri, 14 Aug 2009 21:36:49 +0000 (14:36 -0700)]
Make the runtime correctly decode the symbol table history
stacks produced by whole-package compilation.

Fix some off-by-ones in PC/line table parsing.  Hopefully.

R=rsc
APPROVED=rsc
DELTA=42  (24 added, 6 deleted, 12 changed)
OCL=33250
CL=33293

15 years agono debug symbols for internal-only method types.
Russ Cox [Fri, 14 Aug 2009 20:07:53 +0000 (13:07 -0700)]
no debug symbols for internal-only method types.
now 15% overhead instead of 30% in binaries.

R=ken
OCL=33235
CL=33288

15 years agoFirst cut at a more realistic multi-precision package:
Robert Griesemer [Fri, 14 Aug 2009 18:53:27 +0000 (11:53 -0700)]
First cut at a more realistic multi-precision package:
- implemented low-level operations on word vectors
- implemented corresponding amd64 assembly routines for word vector operations
- implemented first set of operations on unsigned integers
- implemented first set of operations on signed integers
- implemented systematic test cases  for each data type

R=rsc
DELTA=1330  (1330 added, 0 deleted, 0 changed)
OCL=33132
CL=33285

15 years agoAccount for CALL instructions before looking up the function
Austin Clements [Fri, 14 Aug 2009 18:09:53 +0000 (11:09 -0700)]
Account for CALL instructions before looking up the function
at PC, to deal with functions that end with a CALL
instruction.  Special case known call-by-return functions.

R=rsc
APPROVED=rsc
DELTA=12  (6 added, 6 deleted, 0 changed)
OCL=33255
CL=33279

15 years agorename libmach_amd64 libmach
Rob Pike [Fri, 14 Aug 2009 17:46:04 +0000 (10:46 -0700)]
rename libmach_amd64 libmach

R=rsc
OCL=33273
CL=33276

15 years ago- do not accept forward-declarations for structs and interfaces anymore
Robert Griesemer [Fri, 14 Aug 2009 16:39:14 +0000 (09:39 -0700)]
- do not accept forward-declarations for structs and interfaces anymore

R=r
DELTA=49  (0 added, 14 deleted, 35 changed)
OCL=33272
CL=33272

15 years agoadd exits
Rob Pike [Fri, 14 Aug 2009 01:22:44 +0000 (18:22 -0700)]
add exits

R=rsc
DELTA=2339  (19 added, 2303 deleted, 17 changed)
OCL=33239
CL=33253

15 years agoDon't try to account for CALL instruction in 0th frame.
Austin Clements [Fri, 14 Aug 2009 01:10:38 +0000 (18:10 -0700)]
Don't try to account for CALL instruction in 0th frame.

R=rsc
APPROVED=rsc
DELTA=9  (4 added, 3 deleted, 2 changed)
OCL=33238
CL=33251

15 years agodebugging symbols for 8g.
Russ Cox [Thu, 13 Aug 2009 22:45:58 +0000 (15:45 -0700)]
debugging symbols for 8g.
backtraces don't work,
but they didn't work when i started either.

R=ken
OCL=33230
CL=33230

15 years agofix typo
Kai Backman [Thu, 13 Aug 2009 22:14:41 +0000 (15:14 -0700)]
fix typo

R=rsc
APPROVED=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=33209
CL=33227

15 years ago6g/6l: add go type information to symbol table.
Russ Cox [Thu, 13 Aug 2009 21:41:42 +0000 (14:41 -0700)]
6g/6l: add go type information to symbol table.
  archive size +70%
  binary size +30%

old

wreck.mtv=; ls -l /Users/rsc/bin/{godoc,gofmt}
-rwxr-xr-x  1 rsc  eng  1487922 Aug 13 13:21 /Users/rsc/bin/godoc
-rwxr-xr-x  1 rsc  eng   995995 Aug 13 13:21 /Users/rsc/bin/gofmt
wreck.mtv=; du -sh $GOROOT/pkg/
9.5M /home/rsc/go/pkg/
wreck.mtv=;

new

wreck.mtv=; ls -l /Users/rsc/bin/{godoc,gofmt}
-rwxr-xr-x  1 rsc  eng  2014390 Aug 13 14:25 /Users/rsc/bin/godoc
-rwxr-xr-x  1 rsc  eng  1268705 Aug 13 14:25 /Users/rsc/bin/gofmt
wreck.mtv=; du -sh $GOROOT/pkg
 16M /home/rsc/go/pkg
wreck.mtv=;

R=ken
OCL=33217
CL=33220

15 years agomakefile fixes; convert runtime to use new makefiles
Russ Cox [Thu, 13 Aug 2009 21:41:10 +0000 (14:41 -0700)]
makefile fixes; convert runtime to use new makefiles

R=r
DELTA=67  (17 added, 29 deleted, 21 changed)
OCL=33215
CL=33219

15 years agorename mkasmh to mkasmh.sh
Rob Pike [Thu, 13 Aug 2009 21:23:35 +0000 (14:23 -0700)]
rename mkasmh to mkasmh.sh

R=rsc
DELTA=204  (153 added, 49 deleted, 2 changed)
OCL=33213
CL=33213

15 years agofix test
Rob Pike [Thu, 13 Aug 2009 20:33:11 +0000 (13:33 -0700)]
fix test

R=gri
DELTA=4  (0 added, 4 deleted, 0 changed)
OCL=33202
CL=33204

15 years agochange the names to have .sh suffixes.
Rob Pike [Thu, 13 Aug 2009 20:22:37 +0000 (13:22 -0700)]
change the names to have .sh suffixes.
also fix the comments in the generated files.

R=rsc
DELTA=949  (470 added, 465 deleted, 14 changed)
OCL=33197
CL=33201

15 years agotests, .proto, .cgo
Rob Pike [Thu, 13 Aug 2009 20:06:48 +0000 (13:06 -0700)]
tests, .proto, .cgo

R=rsc
DELTA=38  (21 added, 3 deleted, 14 changed)
OCL=33193
CL=33200

15 years agoget this out of the way
Rob Pike [Thu, 13 Aug 2009 18:29:05 +0000 (11:29 -0700)]
get this out of the way

OCL=33178
CL=33180

15 years agoRecognize gccgo error messages.
Ian Lance Taylor [Thu, 13 Aug 2009 16:42:28 +0000 (09:42 -0700)]
Recognize gccgo error messages.

bug039.go:6:7: error: redefinition of 'x'
bug039.go:5:1: note: previous definition of 'x' was here

bug049.go:6:9: error: incompatible types in binary expression

bug062.go:6:7: error: incompatible type in initialization

bug086.go:5:1: error: control reaches end of non-void function

bug103.go:8:2: error: variable has no type

bug121.go:9:2: error: expected signature or type name

bug131.go:7:7: error: incompatible type in initialization

bug165.go:10:8: error: expected complete type

bug171.go:5:1: error: control reaches end of non-void function
bug171.go:6:1: error: control reaches end of non-void function

bug172.go:7:6: error: expected integer type

bug182.go:7:2: error: if statement expects boolean expression

bug183.go:10:5: error: incompatible types in assignment
bug183.go:19:5: error: incompatible types in assignment

R=rsc
DELTA=15  (0 added, 0 deleted, 15 changed)
OCL=33168
CL=33175

15 years agofix build
Rob Pike [Thu, 13 Aug 2009 16:35:42 +0000 (09:35 -0700)]
fix build

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

15 years agoAdd AUTHORS and LICENSE files.
Rob Pike [Thu, 13 Aug 2009 16:21:28 +0000 (09:21 -0700)]
Add AUTHORS and LICENSE files.

R=gri,iant
DELTA=47  (43 added, 0 deleted, 4 changed)
OCL=33127
CL=33173

15 years agoupdate tutorial
Rob Pike [Thu, 13 Aug 2009 15:54:26 +0000 (08:54 -0700)]
update tutorial

R=rsc
DELTA=30  (5 added, 0 deleted, 25 changed)
OCL=33138
CL=33170

15 years agomechanism for putting go types into 6.out symbol table.
Russ Cox [Thu, 13 Aug 2009 01:16:24 +0000 (18:16 -0700)]
mechanism for putting go types into 6.out symbol table.
no types yet.

R=ken
OCL=33142
CL=33146

15 years agosilence gcc warning
Russ Cox [Thu, 13 Aug 2009 01:14:07 +0000 (18:14 -0700)]
silence gcc warning

R=ken
OCL=33144
CL=33144

15 years agorm outfile if 6g exits with an error
Russ Cox [Thu, 13 Aug 2009 00:58:53 +0000 (17:58 -0700)]
rm outfile if 6g exits with an error

R=ken
OCL=33134
CL=33141

15 years agoConvert interpreter to whole-package compilation.
Austin Clements [Thu, 13 Aug 2009 00:24:05 +0000 (17:24 -0700)]
Convert interpreter to whole-package compilation.

R=rsc
APPROVED=rsc
DELTA=334  (110 added, 211 deleted, 13 changed)
OCL=33135
CL=33137

15 years agoConvert ptrace to whole-package compilation.
Austin Clements [Thu, 13 Aug 2009 00:22:47 +0000 (17:22 -0700)]
Convert ptrace to whole-package compilation.

R=rsc
APPROVED=rsc
DELTA=15  (9 added, 6 deleted, 0 changed)
OCL=33136
CL=33136

15 years agochange gotype in symbol table from
Russ Cox [Wed, 12 Aug 2009 23:14:53 +0000 (16:14 -0700)]
change gotype in symbol table from
character string to machine address.
not filled in, just carved out.

R=austin
DELTA=77  (11 added, 34 deleted, 32 changed)
OCL=33122
CL=33124

15 years agobug188 - sort(x)
Russ Cox [Wed, 12 Aug 2009 22:58:31 +0000 (15:58 -0700)]
bug188 - sort(x)

R=ken
OCL=33123
CL=33123

15 years agorm gobuild
Russ Cox [Wed, 12 Aug 2009 22:17:47 +0000 (15:17 -0700)]
rm gobuild

R=r
DELTA=827  (0 added, 826 deleted, 1 changed)
OCL=33117
CL=33120

15 years agofix bug187 not to crash
Russ Cox [Wed, 12 Aug 2009 21:54:15 +0000 (14:54 -0700)]
fix bug187 not to crash

TBR=austin
DELTA=9  (4 added, 4 deleted, 1 changed)
OCL=33115
CL=33115

15 years agodelete code for forward type declarations
Russ Cox [Wed, 12 Aug 2009 21:41:13 +0000 (14:41 -0700)]
delete code for forward type declarations

R=ken
OCL=33108
CL=33113

15 years agodelete heuristic left over from incremental compilation
Russ Cox [Wed, 12 Aug 2009 21:41:02 +0000 (14:41 -0700)]
delete heuristic left over from incremental compilation

R=r
DELTA=31  (2 added, 28 deleted, 1 changed)
OCL=33064
CL=33112

15 years agodelete forward type declarations
Russ Cox [Wed, 12 Aug 2009 21:40:47 +0000 (14:40 -0700)]
delete forward type declarations

R=r
DELTA=163  (1 added, 149 deleted, 13 changed)
OCL=33106
CL=33111

15 years agoavoid unnecessary installs
Russ Cox [Wed, 12 Aug 2009 21:40:29 +0000 (14:40 -0700)]
avoid unnecessary installs

R=r
DELTA=6  (4 added, 0 deleted, 2 changed)
OCL=33107
CL=33110

15 years agoBug involving ... initializers and interface values.
Austin Clements [Wed, 12 Aug 2009 20:57:05 +0000 (13:57 -0700)]
Bug involving ... initializers and interface values.

R=rsc
APPROVED=rsc
DELTA=22  (22 added, 0 deleted, 0 changed)
OCL=33053
CL=33104

15 years agofix linux build for whole package compilation
Rob Pike [Wed, 12 Aug 2009 20:51:02 +0000 (13:51 -0700)]
fix linux build for whole package compilation

R=rsc
OCL=33103
CL=33103

15 years agoconvert gob to whole-package compilation.
Russ Cox [Wed, 12 Aug 2009 20:19:27 +0000 (13:19 -0700)]
convert gob to whole-package compilation.
had to reorder some init code.

R=r
DELTA=136  (15 added, 110 deleted, 11 changed)
OCL=33071
CL=33102

15 years agoconvert non-low-level non-google pkg code
Russ Cox [Wed, 12 Aug 2009 20:19:17 +0000 (13:19 -0700)]
convert non-low-level non-google pkg code
to whole-package compilation.

R=r
OCL=33070
CL=33101

15 years agoconvert non-pkg go files to whole-package compilation.
Russ Cox [Wed, 12 Aug 2009 20:18:54 +0000 (13:18 -0700)]
convert non-pkg go files to whole-package compilation.
mostly removing forward declarations.

R=r
DELTA=138  (2 added, 127 deleted, 9 changed)
OCL=33068
CL=33099

15 years agonew included Make.pkg for handwritten package makefiles.
Russ Cox [Wed, 12 Aug 2009 20:18:46 +0000 (13:18 -0700)]
new included Make.pkg for handwritten package makefiles.
gobuild is obsolete; don't build it (will delete eventually).

revised gotest for whole-package compilation.

R=r
DELTA=102  (68 added, 6 deleted, 28 changed)
OCL=33067
CL=33098

15 years agoconvert low-level (used by testing) packages to
Russ Cox [Wed, 12 Aug 2009 20:18:37 +0000 (13:18 -0700)]
convert low-level (used by testing) packages to
whole-package compilation.  new Makefiles,
tests now in separate package

bytes
flag
fmt
io
math
once
os
reflect
strconv
sync
time
utf8

delete import "xxx" in package xxx.

inside package xxx, xxx is not declared
anymore so s/xxx.//g

delete file and package level forward declarations.

note the new internal_test.go and sync
and strconv to provide public access to
internals during testing.  the installed version
of the package omits that file and thus does
not open the internals to all clients.

R=r
OCL=33065
CL=33097

15 years ago6g: save all 64 bits of AX/DX
Russ Cox [Wed, 12 Aug 2009 20:18:27 +0000 (13:18 -0700)]
6g: save all 64 bits of AX/DX

8g: save AX/DX around div

R=ken
OCL=33094
CL=33096

15 years agowhole-package compilation
Russ Cox [Wed, 12 Aug 2009 20:18:19 +0000 (13:18 -0700)]
whole-package compilation

R=ken
OCL=33063
CL=33095

15 years agobug186 - f(iota)
Russ Cox [Wed, 12 Aug 2009 00:05:22 +0000 (17:05 -0700)]
bug186 - f(iota)

R=ken
OCL=33051
CL=33051

15 years agomake a simpler regexp implementation with fewer dependencies and put it inside testing.
Rob Pike [Tue, 11 Aug 2009 20:54:47 +0000 (13:54 -0700)]
make a simpler regexp implementation with fewer dependencies and put it inside testing.
remove "regexp." from regexp tests.

R=rsc
DELTA=1173  (1152 added, 1 deleted, 20 changed)
OCL=33028
CL=33037