1. 29 Aug, 2011 13 commits
    • Joel Sing's avatar
      syscall: add openbsd 386 · 88e984fa
      Joel Sing authored
      Add openbsd 386 syscall support, partially based on the existing
      freebsd 386 syscall implementation.
      
      FTR zerrors_openbsd_386.go cannot currently be completely built on
      openbsd/i386 due to what appears to be a gcc bug. The constants can be
      successfully generated with -m32 on openbsd/amd64 and the error
      table can then be generated on openbsd/i386.
      
      R=rsc
      CC=golang-dev
      https://golang.org/cl/4969045
      88e984fa
    • Joel Sing's avatar
      runtime: openbsd thread tweaks · 8aa2591b
      Joel Sing authored
      - Rename sys_sched_yield() to osyield() as this is now defined in asm.h.
      - Only print kern.rtheads message if rfork_thread() failed with ENOTSUP.
      - Remove unused variables.
      
      R=rsc
      CC=golang-dev
      https://golang.org/cl/4973043
      8aa2591b
    • Fazlul Shahriar's avatar
      time: fix Plan 9 build · 45bd7b07
      Fazlul Shahriar authored
      R=golang-dev, rsc
      CC=golang-dev
      https://golang.org/cl/4966045
      45bd7b07
    • Lucio De Re's avatar
      gc: fix build on Plan 9 · b3cc4897
      Lucio De Re authored
      gc/bits.c
      . improved format with associated cast;
      gc/closure.c
      gc/dcl.c
      gc/range.c
      gc/reflect.c
      gc/sinit.c
      . dropped unnecessary assignments;
      gc/gen.c
      . dropped unnecessary assignment;
      . added static qualifier to local function definition;
      gc/go.h
      . added varargck pragmas;
      gc/lex.c
      . used {} instead of ; in if statement to suppress warning;
      . replaced exit(0) with exits(0);
      . added compilation conditions for SIGBUS/SIGSEGV;
      . dropped unnecessary assignment;
      gc/mparith2.c
      . dropped four unnecessary assignments/initialisations;
      gc/obj.c
      . added type cast to local pointer;
      gc/pgen.c
      . added cast and related print format;
      gc/subr.c
      . replaced exit(1) with exits("error");
      . replaced unlink() with remove();
      . renamed local cistrmp() as ucistrmp() to remove conflict with
        Plan 9 function by the same name;
      gc/swt.c
      . added braces instead of ; as empty statment;
      gc/typecheck.c
      . added static qualifier to local function definition;
      . dropped unnecessary assignments;
      gc/walk.c
      . dropped unnecessary assignments;
      . added static qualifier to local function definitions;
      
      R=rsc
      CC=golang-dev
      https://golang.org/cl/4964046
      b3cc4897
    • Lucio De Re's avatar
      6g: fix build on Plan 9 · 219c9e9c
      Lucio De Re authored
      src/cmd/6g/cgen.c
      src/cmd/6g/gobj.c
      src/cmd/6g/reg.c
      . dropped unused assignments;
      src/cmd/6g/gg.h
      . added varargck pragmas;
      src/cmd/6g/list.c
      . adjusted print format for ulong casts;
      src/cmd/6g/peep.c
      . dropped redundant increment;
      
      R=golang-dev
      CC=golang-dev, rsc
      https://golang.org/cl/4953049
      219c9e9c
    • Lucio De Re's avatar
      5g: fix build on Plan 9 · 65276933
      Lucio De Re authored
      5g/cgen.c:
      . USED(n4) as it is only mentioned in unreachable code later;
      . dropped unused assignments;
      . commented out unreachable code;
      5g/cgen64.c:
      5g/ggen.c:
      . dropped unused assignments of function return value;
      5g/gg.h:
      . added varargck pragmas;
      5g/peep.c:
      . USED(p1) used only in unreacheable code;
      . commented out unreachable code;
      5g/reg.c:
      . dropped unused assignment;
      
      R=golang-dev, rsc
      CC=golang-dev
      https://golang.org/cl/4953048
      65276933
    • Russ Cox's avatar
      doc/codelab/wiki: fix Makefile · 0b12223f
      Russ Cox authored
      R=adg
      CC=golang-dev
      https://golang.org/cl/4971043
      0b12223f
    • Hector Chu's avatar
      runtime: fix stack cleanup on windows/amd64 · 0f5902d6
      Hector Chu authored
      In amd64 it is the caller who cleans the stack.
      
      R=alex.brainman, vcc.163, jp
      CC=golang-dev
      https://golang.org/cl/4966046
      0f5902d6
    • Hector Chu's avatar
      fix windows/amd64 build with newest mingw-w64 · 1d6ae53c
      Hector Chu authored
      R=alex.brainman, golang-dev
      CC=golang-dev
      https://golang.org/cl/4968048
      1d6ae53c
    • Rob Pike's avatar
      template: range over channel · 361c5ace
      Rob Pike authored
      R=golang-dev, dsymonds
      CC=golang-dev
      https://golang.org/cl/4951046
      361c5ace
    • Russ Cox's avatar
      gc: fix arm build · 77f0bdce
      Russ Cox authored
      Escape analysis was incorrectly assuming that
      functions without bodies don't leak their
      parameters.  This meant that sync/atomic's
      TestAddInt64 was allocating x on its stack,
      and then x was not properly aligned for use
      with the atomic 64-bit instructions.  Obviously
      we should figure out the alignment story on 5g
      too, but this fix is correct and should restore the
      build to 'ok'.
      
      TBR=lvd
      CC=golang-dev
      https://golang.org/cl/4964047
      77f0bdce
    • Russ Cox's avatar
      godashboard: fix utf-8 in user names · a3bc7681
      Russ Cox authored
      Also standardize on 'utf8' as encoding name.
      Apparently either is acceptable.
      
      The user, because it is a StringProperty,
      must be of type unicode in order to handle
      Unicode correctly.  It must *not* have type string.
      
      The desc, because it is a BlobProperty, must
      be of type string in order to handle Unicode correctly.
      It must *not* have type unicode.
      
      Yay encoding type pedantry without static typing.
      
      R=adg, mattn.jp
      CC=golang-dev
      https://golang.org/cl/4973045
      a3bc7681
    • Jaroslavas Počepko's avatar
      runtime: go interface to cdecl calbacks · f627215b
      Jaroslavas Počepko authored
      cdecl calbacks have been implemented in C/ASM code, just Go function is missing
      
      R=golang-dev, alex.brainman
      CC=golang-dev
      https://golang.org/cl/4969047
      f627215b
  2. 28 Aug, 2011 1 commit
    • Russ Cox's avatar
      gc: tweak and enable escape analysis · db5f9da4
      Russ Cox authored
      -s now means *disable* escape analysis.
      
      Fix escape leaks for struct/slice/map literals.
      Add ... tracking.
      Rewrite new(T) and slice literal into stack allocation when safe.
      
      Add annotations to reflect.
      Reflect is too chummy with the compiler,
      so changes like these affect it more than they should.
      
      R=lvd, dave, gustavo
      CC=golang-dev
      https://golang.org/cl/4954043
      db5f9da4
  3. 27 Aug, 2011 1 commit
  4. 26 Aug, 2011 23 commits
  5. 25 Aug, 2011 2 commits