1. 30 May, 2018 7 commits
  2. 29 May, 2018 24 commits
  3. 28 May, 2018 4 commits
  4. 27 May, 2018 1 commit
    • Ian Lance Taylor's avatar
      cmd/go: don't generate output for "go build -o /dev/null x.go" · c1d9d1f3
      Ian Lance Taylor authored
      We look for "-o /dev/null", and, if found, pretend that there was no
      "-o" option and don't generate an action to create the final executable.
      
      We look for "go build x.go", and, if found, and if -o was not used,
      pretend that the user specified "-o x".
      
      Unfortunately, we were doing those in the wrong order, so that "go
      build -o /dev/null x.go" would first clear the "-o" option and then
      set it to "-o x".
      
      This CL flips the order so that the right thing happens.
      
      Fixes #25579
      
      Change-Id: Ic9556ac0a57f7b45b685951bc96ba5ea4633b860
      Reviewed-on: https://go-review.googlesource.com/114715
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      c1d9d1f3
  5. 26 May, 2018 4 commits
    • Elias Naur's avatar
      cmd/compile,go/build,internal/cpu: gofmt · 4258b43a
      Elias Naur authored
      I don't know why these files were not formatted. Perhaps because
      their changes came from Github PRs?
      
      Change-Id: Ida8d7b9a36f0d1064caf74ca1911696a247a9bbe
      Reviewed-on: https://go-review.googlesource.com/114824
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      4258b43a
    • Yuval Pavel Zholkover's avatar
      runtime: use the correct AT_HWCAP auxv constant on freebsd · 51e19d60
      Yuval Pavel Zholkover authored
      In golang.org/cl/102355 I mistakenly used 26 instead of 25 as the AT_HWCAP value.
      26 is AT_HWCAP2. While experimenting with FreeBSD-11.2-BETA3 (where both values are
      being supplied in the auxv), the AT_HWCAP2 value read is 0 which triggers the error again:
      
        runtime: this CPU has no floating point hardware, so it cannot run this GOARM=7 binary. Recompile using GOARM=5.
      
      Updates #24507.
      
      Change-Id: Ide04b7365d8f10e4650edf4e188dd58bdf42cc26
      Reviewed-on: https://go-review.googlesource.com/114822Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      51e19d60
    • Yury Smolsky's avatar
      test: eliminate use of Perl in test/fixedbugs/bug248.go · cb80c289
      Yury Smolsky authored
      This change enables bug248 to be tested with Go code.
      For that, it adds a flag -1 to error check and run directory
      with one package failing compilation prior the last package
      which should be run.
      
      Specifically, the "p" package in bug1.go file was renamed into "q"
      to compile them in separate steps,
      bug2.go and bug3.go files were reordered,
      bug2.go was changed into non-main package.
      
      Updates #25586.
      
      Change-Id: Ie47aacd56ebb2ce4eac66c792d1a53e1e30e637c
      Reviewed-on: https://go-review.googlesource.com/114818
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      cb80c289
    • Alex Brainman's avatar
      cmd/go/internal/load: use lowercase package directory comparisons on Windows · f7b625e4
      Alex Brainman authored
      go build
      
      command is short for
      
      go build .
      
      and it builds . package. When command above is executed from
      directory inside of GOPATH, it uses GOPATH to calculate package
      source directory. So . package uses GOPATH as part of package
      source directory.
      
      On the other hand
      
      go build -ldflags=abc
      
      only passes flag to the linker for packages that are listed
      on the command line. The command above assumes . package again,
      and that package source path is compared with current directory.
      
      Current code compares result of os.Getwd with what GOPATH
      environment variable contains. But these values might differ
      in letter case on Windows. For example, one might return
      c:\gopath\..., while the other might contain C:\GOPATH.
      
      Fixes #24750
      Fixes #24232
      Fixes #25046
      
      Change-Id: I03d8c7a9b73e847f88ae61c88cd41efa546c6d0e
      Reviewed-on: https://go-review.googlesource.com/109235
      Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      f7b625e4