1. 26 Sep, 2014 15 commits
  2. 25 Sep, 2014 15 commits
  3. 24 Sep, 2014 10 commits
    • Brad Fitzpatrick's avatar
      net/http: support https_proxy in ProxyFromEnvironment · e6f21be3
      Brad Fitzpatrick authored
      Fixes #6181
      
      LGTM=adg
      R=adg
      CC=golang-codereviews
      https://golang.org/cl/148980043
      e6f21be3
    • Russ Cox's avatar
      cmd/go: fix bytes and net the right way · 6077f0fc
      Russ Cox authored
      Not sure why they used empty.s and all these other
      packages were special cased in cmd/go instead.
      Add them to the list.
      
      This avoids problems with net .s files being compiled
      with gcc in cgo mode and gcc not supporting // comments
      on ARM.
      
      Not a problem with bytes, but be consistent.
      
      The last change fixed the ARM build but broke the Windows build.
      Maybe *this* will make everyone happy. Sigh.
      
      TBR=iant
      CC=golang-codereviews
      https://golang.org/cl/144530046
      6077f0fc
    • Russ Cox's avatar
      net: only "build" empty.s in non-cgo mode · d2b84dd9
      Russ Cox authored
      In cgo mode it gets passed to gcc, and on ARM
      it appears that gcc does not support // comments.
      
      TBR=iant
      CC=golang-codereviews
      https://golang.org/cl/142640043
      d2b84dd9
    • Russ Cox's avatar
      runtime: more NOPTR · 3c94b1d3
      Russ Cox authored
      Fixes linux builds (_vdso); may fix others.
      I can at least cross-compile cmd/go for every
      implemented system now.
      
      TBR=iant
      CC=golang-codereviews
      https://golang.org/cl/142630043
      3c94b1d3
    • Brad Fitzpatrick's avatar
      os: fix Args setup on Windows · 665a4166
      Brad Fitzpatrick authored
      Should fix the Windows build. Untested.
      
      on Windows, args are made by src/os/exec_windows.go, not package runtime.
      runtime·goargs has if(Windows) return;
      
      The two init funcs in pkg os were conflicting, with the second
      overwriting Args back to an empty slice.
      
      LGTM=rsc
      R=rsc
      CC=golang-codereviews
      https://golang.org/cl/143540044
      665a4166
    • Russ Cox's avatar
      runtime: more NOPTR · 75cca052
      Russ Cox authored
      Fixes (or makes better) various builds.
      
      TBR=iant
      CC=golang-codereviews
      https://golang.org/cl/146280043
      75cca052
    • Dmitriy Vyukov's avatar
      cmd/go: strip -fsanitize= flags when building cgo object · 39cd39b0
      Dmitriy Vyukov authored
      Fixes #8788.
      
      LGTM=iant
      R=iant
      CC=golang-codereviews
      https://golang.org/cl/142470043
      39cd39b0
    • Russ Cox's avatar
      build: fix elf builds · 117a6973
      Russ Cox authored
      Corrections due to new strict type rules for data+bss.
      Also disable misc/cgo/cdefstest since you can't compile C code anymore.
      
      TBR=iant
      CC=golang-codereviews
      https://golang.org/cl/148050044
      117a6973
    • Rob Pike's avatar
      fmt: document and fix the handling of precision for strings and byte slices · 54111a58
      Rob Pike authored
      Previous behavior was undocumented and inconsistent. Now it is documented
      and consistent and measures the input size, since that makes more sense
      when talking about %q and %x. For %s the change has no effect.
      
      Fixes #8151.
      
      LGTM=iant
      R=golang-codereviews, iant
      CC=golang-codereviews
      https://golang.org/cl/144540044
      54111a58
    • Russ Cox's avatar
      cmd/cc, cmd/ld, runtime: disallow conservative data/bss objects · 193daab9
      Russ Cox authored
      In linker, refuse to write conservative (array of pointers) as the
      garbage collection type for any variable in the data/bss GC program.
      
      In the linker, attach the Go type to an already-read C declaration
      during dedup. This gives us Go types for C globals for free as long
      as the cmd/dist-generated Go code contains the declaration.
      (Most runtime C declarations have a corresponding Go declaration.
      Both are bss declarations and so the linker dedups them.)
      
      In cmd/dist, add a few more C files to the auto-Go-declaration list
      in order to get Go type information for the C declarations into the linker.
      
      In C compiler, mark all non-pointer-containing global declarations
      and all string data as NOPTR. This allows them to exist in C files
      without any corresponding Go declaration. Count C function pointers
      as "non-pointer-containing", since we have no heap-allocated C functions.
      
      In runtime, add NOPTR to the remaining pointer-containing declarations,
      none of which refer to Go heap objects.
      
      In runtime, also move os.Args and syscall.envs data into runtime-owned
      variables. Otherwise, in programs that do not import os or syscall, the
      runtime variables named os.Args and syscall.envs will be missing type
      information.
      
      I believe that this CL eliminates the final source of conservative GC scanning
      in non-SWIG Go programs, and therefore...
      
      Fixes #909.
      
      LGTM=iant
      R=iant
      CC=golang-codereviews
      https://golang.org/cl/149770043
      193daab9