1. 10 Nov, 2017 3 commits
  2. 09 Nov, 2017 9 commits
  3. 08 Nov, 2017 8 commits
  4. 07 Nov, 2017 16 commits
  5. 06 Nov, 2017 4 commits
    • griesemer's avatar
      cmd/compile/internal/syntax: better syntax errors for typos in if/switch/for headers · 17ff23f7
      griesemer authored
      Be more pessimistic when parsing if/switch/for headers for better error
      messages when things go wrong.
      
      Fixes #22581.
      
      Change-Id: Ibb99925291ff53f35021bc0a59a4c9a7f695a194
      Reviewed-on: https://go-review.googlesource.com/76290
      Run-TryBot: Robert Griesemer <gri@golang.org>
      Reviewed-by: default avatarMatthew Dempsky <mdempsky@google.com>
      17ff23f7
    • Carlos Eduardo Seo's avatar
      runtime: improve IndexByte for ppc64x · be943df5
      Carlos Eduardo Seo authored
      This change adds a better implementation of IndexByte in asm that uses the
      vector registers/instructions on ppc64x.
      
      benchmark                            old ns/op     new ns/op     delta
      BenchmarkIndexByte/10-8              9.70          9.37          -3.40%
      BenchmarkIndexByte/32-8              10.9          10.9          +0.00%
      BenchmarkIndexByte/4K-8              254           92.8          -63.46%
      BenchmarkIndexByte/4M-8              249246        118435        -52.48%
      BenchmarkIndexByte/64M-8             10737987      7383096       -31.24%
      
      benchmark                            old MB/s     new MB/s     speedup
      BenchmarkIndexByte/10-8              1030.63      1067.24      1.04x
      BenchmarkIndexByte/32-8              2922.69      2928.53      1.00x
      BenchmarkIndexByte/4K-8              16065.95     44156.45     2.75x
      BenchmarkIndexByte/4M-8              16827.96     35414.21     2.10x
      BenchmarkIndexByte/64M-8             6249.67      9089.53      1.45x
      
      Change-Id: I81dbdd620f7bb4e395ce4d1f2a14e8e91e39f9a1
      Reviewed-on: https://go-review.googlesource.com/71710
      Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarLynn Boger <laboger@linux.vnet.ibm.com>
      be943df5
    • Joe Tsai's avatar
      archive/zip: add FileHeader.NonUTF8 field · 4fcc8359
      Joe Tsai authored
      The NonUTF8 field provides users with a way to explictly tell the
      ZIP writer to avoid setting the UTF-8 flag.
      This is necessary because many readers:
      	1) (Still) do not support UTF-8
      	2) And use the local system encoding instead
      
      Thus, even though character encodings other than CP-437 and UTF-8
      are not officially supported by the ZIP specification, pragmatically
      the world has permitted use of them.
      
      When a non-standard encoding is used, it is the user's responsibility
      to ensure that the target system is expecting the encoding used
      (e.g., producing a ZIP file you know is used on a Chinese version of Windows).
      
      We adjust the detectUTF8 function to account for Shift-JIS and EUC-KR
      not being identical to ASCII for two characters.
      
      We don't need an API for users to explicitly specify that they are encoding
      with UTF-8 since all single byte characters are compatible with all other
      common encodings (Windows-1256, Windows-1252, Windows-1251, Windows-1250,
      IEC-8859, EUC-KR, KOI8-R, Latin-1, Shift-JIS, GB-2312, GBK) except for
      the non-printable characters and the backslash character (all of which
      are invalid characters in a path name anyways).
      
      Fixes #10741
      
      Change-Id: I9004542d1d522c9137973f1b6e2b623fa54dfd66
      Reviewed-on: https://go-review.googlesource.com/75592
      Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
      Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      4fcc8359
    • Emmanuel Odeke's avatar
      cmd/compile: lock in test for column numbers in unused error · 0c554957
      Emmanuel Odeke authored
      Updates #21317
      
      @mdempsky fixed issue #21317 with CL 66810,
      so lock a test in to ensure we don't regress.
      
      The test is manual for now before test/run.go
      has support for matching column numbers so do
      it old school and match expected output after
      an exec.
      
      Change-Id: I6c2a66ddf04248f79d17ed7033a3280d50e41562
      Reviewed-on: https://go-review.googlesource.com/76150
      Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
      Reviewed-by: default avatarMatthew Dempsky <mdempsky@google.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      0c554957