1. 27 Jul, 2009 6 commits
    • Russ Cox's avatar
      fix gc bug causing make smoketest to die in cmd/gofmt. · 7729c3f9
      Russ Cox authored
      saving of sp was too far away from use in scanstack;
      the stack had changed since the sp was saved.
      
      R=r
      DELTA=9  (4 added, 2 deleted, 3 changed)
      OCL=32232
      CL=32237
      7729c3f9
    • Austin Clements's avatar
      Implement single-valued, non-variadic function literals and · d3888fe8
      Austin Clements authored
      function calling.  Implement a type compiler and named types.
      Implement a universal scope containing built-in named types,
      and some built-in constants.  Implement a simple virtual
      machine for executing statements and single-valued return.
      
      Fix many places that incorrectly dealt with named types.  In
      particular, the Type.Zero methods now use the type's bit count
      to determine the appropriate value representation.  As a
      result, a bit count of 0 now means architecture-dependent and
      bounded types use unsafe.Sizeof to determine the correct
      bounds.  Previously, the bounds on a 32-bit machine would have
      been wrong.
      
      Eliminated Type.compatible, since the implementation is
      equivalent for all types.  Added Type.rep that shallowly
      strips named types.  Replaced almost all uses of Type.literal
      with Type.rep.
      
      Fix implementation of assign-op's so it only evaluates the
      left side once.  As part of this, there is now a generic way
      to separate out the effect and value of an expression.
      
      R=rsc
      APPROVED=rsc
      DELTA=1530  (1244 added, 68 deleted, 218 changed)
      OCL=32184
      CL=32230
      d3888fe8
    • Russ Cox's avatar
      fix build - broke with uint32 -> int change in reflect SliceHeader · ca017169
      Russ Cox authored
      TBR=r
      OCL=32225
      CL=32225
      ca017169
    • Rob Pike's avatar
      clean up for public use: make some stuff private, add doc comments. · 5aa17455
      Rob Pike authored
      R=rsc
      DELTA=298  (202 added, 0 deleted, 96 changed)
      OCL=32006
      CL=32224
      5aa17455
    • Russ Cox's avatar
      fix bug in CL 30057: missed if+continue in one place. · 3ff5e727
      Russ Cox authored
      R=gri
      DELTA=2  (2 added, 0 deleted, 0 changed)
      OCL=32214
      CL=32223
      3ff5e727
    • Russ Cox's avatar
      fix SliceHeader: len and cap are int, not uint32 · 22ea3f9e
      Russ Cox authored
      R=r,iant
      DELTA=2  (0 added, 0 deleted, 2 changed)
      OCL=32215
      CL=32222
      22ea3f9e
  2. 26 Jul, 2009 1 commit
  3. 24 Jul, 2009 1 commit
  4. 22 Jul, 2009 3 commits
    • Russ Cox's avatar
      do not echo command in errchk, · dbba4899
      Russ Cox authored
      so that golden.out does not include
      the name of the compiler (which is
      arch-specific and shows up in diffs).
      
      R=r,iant
      DELTA=3  (0 added, 0 deleted, 3 changed)
      OCL=31980
      CL=31983
      dbba4899
    • Russ Cox's avatar
      runtime: fix init scheduling bug. · 052a66ba
      Russ Cox authored
      if there is a goroutine waiting to run
      and the init goroutine enters a system call,
      entersyscall was trying to kick off a new
      scheduler for the other goroutine, causing
      a panic (new goroutines can't run until main.main).
      
      R=r
      DELTA=32  (32 added, 0 deleted, 0 changed)
      OCL=31982
      CL=31982
      052a66ba
    • Russ Cox's avatar
      a little more 6l cleanup · 335b3855
      Russ Cox authored
      R=r
      DELTA=51  (14 added, 24 deleted, 13 changed)
      OCL=31968
      CL=31971
      335b3855
  5. 21 Jul, 2009 13 commits
  6. 20 Jul, 2009 8 commits
  7. 18 Jul, 2009 1 commit
  8. 17 Jul, 2009 7 commits
    • Austin Clements's avatar
      Gather errors in a go.scanner.ErrorList instead of printing · 51c0a841
      Austin Clements authored
      them as we go.
      
      Lots of bug fixes.  Let the parser toss illegal character and
      string literals.  Compile unary + correctly.  Allow float OP
      ideal.  Compile unary * correctly.  Implement min and max float
      values.
      
      R=rsc
      APPROVED=rsc
      DELTA=64  (29 added, 7 deleted, 28 changed)
      OCL=31811
      CL=31814
      51c0a841
    • Rob Pike's avatar
      count SHdrs and PHdrs and write them out as a unit · b63d40a5
      Rob Pike authored
      R=rsc
      DELTA=181  (93 added, 63 deleted, 25 changed)
      OCL=31802
      CL=31812
      b63d40a5
    • Robert Griesemer's avatar
      - better documentation · 821897bc
      Robert Griesemer authored
      - code cleanup
      
      R=rsc,austin
      DELTA=28  (12 added, 2 deleted, 14 changed)
      OCL=31808
      CL=31810
      821897bc
    • Ian Lance Taylor's avatar
      Recognize gccgo error message. · 33214704
      Ian Lance Taylor authored
         explicit.go:21:5: error: incompatible types in assignment (need explicit conversion)
         explicit.go:26:5: error: incompatible types in assignment (type has no methods)
         explicit.go:27:5: error: incompatible types in assignment (need explicit conversion)
         explicit.go:30:6: error: incompatible types in assignment (need explicit conversion; missing method ‘N’)
         explicit.go:33:7: error: invalid type conversion (need explicit conversion; missing method ‘N’)
         explicit.go:36:5: error: incompatible types in assignment
      
      R=rsc
      DELTA=1  (0 added, 0 deleted, 1 changed)
      OCL=31805
      CL=31807
      33214704
    • Austin Clements's avatar
      Support exponential notation in RatFromString. · 25b4be5a
      Austin Clements authored
      R=gri
      APPROVED=gri
      DELTA=30  (25 added, 0 deleted, 5 changed)
      OCL=31796
      CL=31799
      25b4be5a
    • Rob Pike's avatar
      more elf64 support: phdrs, constants · e86dcf16
      Rob Pike authored
      R=rsc
      DELTA=130  (68 added, 6 deleted, 56 changed)
      OCL=31798
      CL=31798
      e86dcf16
    • Austin Clements's avatar
      Produce friendlier errors messages for malformed character · f95a42e6
      Austin Clements authored
      literals and when the parser hits an unexpected EOF.  Also,
      disallow newlines in character literals.
      
      R=gri
      APPROVED=gri
      DELTA=23  (15 added, 1 deleted, 7 changed)
      OCL=31790
      CL=31797
      f95a42e6