1. 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
  2. 02 Dec, 2008 6 commits
  3. 01 Dec, 2008 2 commits
  4. 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
  5. 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
  6. 25 Nov, 2008 10 commits
  7. 24 Nov, 2008 6 commits