1. 05 May, 2015 20 commits
  2. 04 May, 2015 12 commits
  3. 03 May, 2015 6 commits
  4. 02 May, 2015 2 commits
    • Shenghou Ma's avatar
      cmd/internal/gc: fix build on big endian systems · 931328b8
      Shenghou Ma authored
      The siz argument to both runtime.newproc and runtime.deferproc is
      int32, not uintptr. This problem won't manifest on little-endian
      systems because that stack slot is uintptr sized anyway. However,
      on big-endian systems, it will make a difference.
      
      Change-Id: I2351d1ec81839abe25375cff95e327b80764c2b5
      Reviewed-on: https://go-review.googlesource.com/9647
      Run-TryBot: Minux Ma <minux@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      931328b8
    • Didier Spezia's avatar
      text/template: check for literals in chain of terms · 76ace947
      Didier Spezia authored
      The current parser ignores obvious errors such as:
      {{0.1.E}}
      {{true.any}}
      {{"hello".wrong}}
      {{nil.E}}
      
      The common problem is that a chain is built from
      a literal value. It then panics at execution time.
      
      Furthermore, a double dot triggers the same behavior:
      {{..E}}
      
      Addresses a TODO left in Tree.operand to catch these
      errors at parsing time.
      
      Note that identifiers can include a '.', and pipelines
      could return an object which a field can be derived
      from (like a variable), so they are excluded from the check.
      
      Fixes #10615
      
      Change-Id: I903706d1c17861b5a8354632c291e73c9c0bc4e1
      Reviewed-on: https://go-review.googlesource.com/9621Reviewed-by: default avatarRob Pike <r@golang.org>
      76ace947