1. 30 Nov, 2016 8 commits
  2. 29 Nov, 2016 20 commits
  3. 28 Nov, 2016 6 commits
  4. 26 Nov, 2016 1 commit
  5. 25 Nov, 2016 1 commit
    • Daniel Martí's avatar
      testing: comment out flag.Parse from example · 11106492
      Daniel Martí authored
      The TestMain docs explain that flag.Parse() should be called if TestMain
      itself depends on command-line flags.
      
      The issue here is that the example implementation does not use any
      flags, and thus the flag.Parse call is unnecessary. This leads to people
      who use this example as a starting point for their own implementations
      to forget that the call is not necessary in most cases.
      
      Comment it out instead of removing the line to keep it as a reminder, as
      suggested by Minux Ma.
      
      Change-Id: I6ffc5413e7036366ae3cf0f069b7065e832a3b45
      Reviewed-on: https://go-review.googlesource.com/33273Reviewed-by: 's avatarMinux Ma <minux@golang.org>
      Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      11106492
  6. 24 Nov, 2016 3 commits
  7. 23 Nov, 2016 1 commit
    • Michael Munday's avatar
      runtime/cgo: save correct floating point registers on s390x · 06fcc32d
      Michael Munday authored
      When transitioning from C code to Go code we must respect the C
      calling convention. On s390x this means that r6-r13, r15 and f8-f15
      must be saved and restored by functions that use them.
      
      On s390x we were saving the wrong set of floating point registers
      (f0, f2, f4 and f6) rather than f8-f15 which means that Go code
      could clobber registers that C code expects to be restored. This
      CL modifies the crosscall functions on s390x to save/restore the
      correct floating point registers.
      
      Fixes #18035.
      
      Change-Id: I5cc6f552c893a4e677669c8891521bf735492e97
      Reviewed-on: https://go-review.googlesource.com/33571Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      06fcc32d