1. 30 Oct, 2013 5 commits
  2. 29 Oct, 2013 12 commits
  3. 28 Oct, 2013 2 commits
  4. 25 Oct, 2013 2 commits
  5. 24 Oct, 2013 3 commits
  6. 23 Oct, 2013 2 commits
  7. 22 Oct, 2013 6 commits
  8. 21 Oct, 2013 3 commits
  9. 20 Oct, 2013 1 commit
  10. 18 Oct, 2013 4 commits
    • Russ Cox's avatar
      cmd/cgo: fix line number in an error message · dbe2eacf
      Russ Cox authored
      Fixes #6563.
      
      R=golang-dev, iant
      CC=golang-dev
      https://golang.org/cl/14870046
      dbe2eacf
    • Russ Cox's avatar
      cmd/cgo: stop using compiler error message text to analyze C names · 06ad3b2d
      Russ Cox authored
      The old approach to determining whether "name" was a type, constant,
      or expression was to compile the C program
      
              name;
      
      and scan the errors and warnings generated by the compiler.
      This requires looking for specific substrings in the errors and warnings,
      which ties the implementation to specific compiler versions.
      As compilers change their errors or drop warnings, cgo breaks.
      This happens slowly but it does happen.
      Clang in particular (now required on OS X) has a significant churn rate.
      
      The new approach compiles a slightly more complex program
      that is either valid C or not valid C depending on what kind of
      thing "name" is. It uses only the presence or absence of an error
      message on a particular line, not the error text itself. The program is:
      
              // error if and only if name is undeclared
              void f1(void) { typeof(name) *x; }
      
              // error if and only if name is not a type
              void f2(void) { name *x; }
      
              // error if and only if name is not an integer constant
              void f3(void) { enum { x = (name)*1 }; }
      
      I had not been planning to do this until Go 1.3, because it is a
      non-trivial change, but it fixes a real Xcode 5 problem in Go 1.2,
      and the new code is easier to understand than the old code.
      It should be significantly more robust.
      
      Fixes #6596.
      Fixes #6612.
      
      R=golang-dev, r, james, iant
      CC=golang-dev
      https://golang.org/cl/15070043
      06ad3b2d
    • Russ Cox's avatar
      cmd/gc: shorten name used for map bucket type · 20f99ffa
      Russ Cox authored
      Before:
      type.struct { buckets *struct { overflow *struct { overflow *struct { overflow *struct { overflow *struct { overflow *<...>; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable }; oldbuckets *struct { overflow *struct { overflow *struct { overflow *struct { overflow *struct { overflow *<...>; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable } }
      
      After:
      type.map.bucket[string]*"".RangeTable
      
      This makes debugging maps a little nicer, and it takes up less space in the binary.
      
      R=golang-dev, r
      CC=golang-dev, khr
      https://golang.org/cl/15110044
      20f99ffa
    • Russ Cox's avatar
      net: make sure failed Dial returns nil Conn · 66f49f78
      Russ Cox authored
      Fixes #6614.
      
      R=golang-dev, bradfitz, mikioh.mikioh
      CC=golang-dev
      https://golang.org/cl/14950045
      66f49f78