1. 05 Dec, 2008 2 commits
  2. 04 Dec, 2008 8 commits
  3. 03 Dec, 2008 12 commits
    • Robert Griesemer's avatar
      - fixed a bug with import printing (missing separator between alias and string) · 2dba9a66
      Robert Griesemer authored
      - rewrote declaration printing - was unreadable before
      - no semicolons after closing "}" for types
      
      R=r
      OCL=20379
      CL=20379
      2dba9a66
    • Russ Cox's avatar
      preparation for exec. · dfa5893d
      Russ Cox authored
      * syscall:
      	add syscall.RawSyscall, which doesn't use sys.entersyscall/sys.exitsyscall
      	add syscall.dup2
      	add syscall.BytePtrPtr
      	add syscall.Rusage, RusagePtr
      	add syscall.F_GETFD, F_SETFD, FD_CLOEXEC
      
      * runtime:
      	clean up, correct signal handling.
      	can now survive (continue running after) a signal.
      
      R=r
      DELTA=394  (286 added, 51 deleted, 57 changed)
      OCL=20351
      CL=20369
      dfa5893d
    • Russ Cox's avatar
      clean stack trace code. · 2b39165f
      Russ Cox authored
      format is unchanged but shows all frames
      (old loop stopped one frame early).
      
      wreck=; 6.out
      cannot convert type *main.S·interface2 to interface main.I·interface2: missing method Foo
      throw: interface conversion
      SIGSEGV: segmentation violation
      Faulting address: 0x0
      pc: 0x256d
      
      throw+0x46 /home/rsc/go/src/runtime/runtime.c:68
      	throw(0x863a, 0x0)
      hashmap+0x188 /home/rsc/go/src/runtime/iface.c:167
      	hashmap(0x8760, 0x0, 0x85b0, 0x0, 0x0, ...)
      sys·ifaceT2I+0xa8 /home/rsc/go/src/runtime/iface.c:201
      	sys·ifaceT2I(0x8760, 0x0, 0x85b0, 0x0, 0x0, ...)
      main·main+0x4e /home/rsc/go/src/runtime/rt0_amd64_darwin.s:87
      	main·main()
      mainstart+0xf /home/rsc/go/src/runtime/rt0_amd64.s:70
      	mainstart()
      sys·goexit /home/rsc/go/src/runtime/proc.c:110
      	sys·goexit()
      
      R=r
      DELTA=44  (5 added, 15 deleted, 24 changed)
      OCL=20358
      CL=20368
      2b39165f
    • Russ Cox's avatar
      Make strconv.atof("-0") return -0 · 32a1ee85
      Russ Cox authored
      and update test.
      
      R=iant
      DELTA=11  (3 added, 1 deleted, 7 changed)
      OCL=20350
      CL=20362
      32a1ee85
    • Ken Thompson's avatar
      import/export of exact mp floating constants · f8797daa
      Ken Thompson authored
      new syntax for exact mp floating constants
           decimal_int ( "p" | "P" ) [ "+" | "-" ] decimal_int
           the value is decimal1 * 2^decimal2
      
      R=r
      OCL=20357
      CL=20357
      f8797daa
    • Russ Cox's avatar
      golden.out drift · 98431dbf
      Russ Cox authored
      TBR=r
      OCL=20352
      CL=20355
      98431dbf
    • Robert Griesemer's avatar
      - bug: empty switches don't compile · 4d76e8e1
      Robert Griesemer authored
      R=rsc
      DELTA=32  (28 added, 3 deleted, 1 changed)
      OCL=20301
      CL=20340
      4d76e8e1
    • Ken Thompson's avatar
      small code improvement to · c8a66a98
      Ken Thompson authored
      used scaled indexing
      
      R=r
      OCL=20308
      CL=20310
      c8a66a98
    • Ken Thompson's avatar
      truncating of float constants when · 89996e1f
      Ken Thompson authored
      used in float64 or float32 contexts
      
      R=r
      OCL=20297
      CL=20297
      89996e1f
    • Robert Griesemer's avatar
      - oversight: extra allow source-level line breaks inside statement lists · acfd1fd4
      Robert Griesemer authored
      - fixed printing of empty structs/interfaces
      - enable two more tests
      
      R=r
      OCL=20296
      CL=20296
      acfd1fd4
    • Robert Griesemer's avatar
      - fine-tuning of white space · cb67a832
      Robert Griesemer authored
      - by default consider extra newlines in src for better formatting
      - additional flags for control (-newlines, -maxnewlines, -optsemicolons)
      - don't print ()'s around single anonymous result types
      
      Status: Comparing the output of pretty with the input for larger files
      shows mostly whitespace/formatting differences, which is what is desired.
      
      TODO:
      - Handling of overlong lines
      - some esoteric cases which look funny
      
      R=r
      OCL=20293
      CL=20293
      cb67a832
    • Russ Cox's avatar
      6g gives no error on "0 != nil" · 1e1a3c50
      Russ Cox authored
      R=ken
      OCL=20289
      CL=20289
      1e1a3c50
  4. 02 Dec, 2008 6 commits
  5. 01 Dec, 2008 2 commits
  6. 27 Nov, 2008 1 commit
    • Robert Griesemer's avatar
      - collect addition source position information in parser · d79f687e
      Robert Griesemer authored
        for end of declarations, blocks, parameter lists, etc.
      - use extra src positions to more accurately print comments
      - fine-tuned low-level printing routine for comments
      - added better debugging support
      
      Status:
      - comments now appear at the right place (inbetween the right tokens)
      - newline control needs improvement (not very hard)
      - comment printing disabled for now because pretty is not idempotent
      with it; to enable: -comments
      
      R=r
      OCL=20079
      CL=20079
      d79f687e
  7. 26 Nov, 2008 3 commits
    • Robert Griesemer's avatar
      - snapshot of state before trying yet another, hopefully better working · 732b53a1
      Robert Griesemer authored
      way to integrate comments into the generated output
      - various simplificatins and cleanups throughout
      
      R=r
      OCL=20062
      CL=20062
      732b53a1
    • Russ Cox's avatar
      new stacktrace format · d040d268
      Russ Cox authored
      sys·gosched+0x25 /home/rsc/go/src/runtime/proc.c:477
      	sys·gosched()
      chanrecv+0x29e /home/rsc/go/src/runtime/chan.c:277
      	chanrecv(0x4be80, 0x0, 0x4cf88, 0x0, 0x0, ...)
      sys·chanrecv1+0x5b /home/rsc/go/src/runtime/chan.c:355
      	sys·chanrecv1(0x4be80, 0x0)
      once·Server+0x26 /home/rsc/go/src/lib/strconv/atoi.go:-41
      	once·Server()
      
      the last line is broken (atoi.go:-41) but that's not new.
      
      R=r
      DELTA=46  (19 added, 14 deleted, 13 changed)
      OCL=20018
      CL=20026
      d040d268
    • Russ Cox's avatar
      change meaning of $GOMAXPROCS to number of cpus to use, · efc86a74
      Russ Cox authored
      not number of threads.  can still starve all the other threads,
      but only by looping, not by waiting in a system call.
      
      fix darwin syscall.Syscall6 bug.
      
      fix chanclient bug.
      
      delete $GOMAXPROCS from network tests.
      
      add stripped down printf, sys.printhex to runtime.
      
      R=r
      DELTA=355  (217 added, 36 deleted, 102 changed)
      OCL=20017
      CL=20019
      efc86a74
  8. 25 Nov, 2008 6 commits
    • Robert Griesemer's avatar
      - fixed a problem with flushing · 7cfa7eeb
      Robert Griesemer authored
      - added extra tests
      
      R=r
      DELTA=164  (107 added, 20 deleted, 37 changed)
      OCL=20002
      CL=20004
      7cfa7eeb
    • Russ Cox's avatar
      gotest: change pattern to Test([^a-z].*)? · 92cff855
      Russ Cox authored
      	warn about files with no tests
      be clear about where testing warnings come from
      
      R=r
      DELTA=18  (12 added, 3 deleted, 3 changed)
      OCL=19988
      CL=19993
      92cff855
    • Robert Griesemer's avatar
      - delete vector.go - not needed anymore · 480b962d
      Robert Griesemer authored
      - runs all.bash
      
      R=r
      DELTA=121  (0 added, 121 deleted, 0 changed)
      OCL=19960
      CL=19983
      480b962d
    • Rob Pike's avatar
      make a (rudimentary) ByteBuffer and put it in package "io". · 5f9254c1
      Rob Pike authored
      fix up protocol buffers to use it.
      
      R=rsc
      DELTA=1232  (612 added, 572 deleted, 48 changed)
      OCL=19964
      CL=19981
      5f9254c1
    • Russ Cox's avatar
      use pc/ln table to print source lines in traceback · a5433369
      Russ Cox authored
      r45=; 6.out
      oops
      panic PC=0x400316
      0x400316?zi /home/rsc/go/src/runtime/rt0_amd64_linux.s:83
      	main·g(4195177, 0, 4205661, ...)
      	main·g(0x400369, 0x402c5d, 0x403e49, ...)
      0x40034c?zi /home/rsc/go/src/runtime/x.go:24
      	main·f(4205661, 0, 4210249, ...)
      	main·f(0x402c5d, 0x403e49, 0x1, ...)
      0x400368?zi /home/rsc/go/src/runtime/x.go:37
      	main·main(4210249, 0, 1, ...)
      	main·main(0x403e49, 0x1, 0x7fff9d894bd8, ...)
      0x402c5c?zi /home/rsc/go/src/runtime/rt0_amd64.s:70
      	mainstart(1, 0, 2643020760, ...)
      	mainstart(0x1, 0x7fff9d894bd8, 0x0, ...)
      r45=;
      
      R=r
      DELTA=251  (198 added, 25 deleted, 28 changed)
      OCL=19965
      CL=19979
      a5433369
    • Russ Cox's avatar
      % x inserts spaces between hex bytes in string/*[]byte · afff0ff1
      Russ Cox authored
      R=r
      DELTA=7  (7 added, 0 deleted, 0 changed)
      OCL=19967
      CL=19978
      afff0ff1