go/src/cmd
Matthew Dempsky f3d4ff7ddc cmd/compile: omit ICE diagnostics after normal error messages
After we detect errors, the AST is in a precarious state and more
likely to trip useless ICE failures. Instead let the user fix any
existing errors and see if the ICE persists.  This makes Fatalf more
consistent with how panics are handled by hidePanic.

While here, also fix detection for release versions: release version
strings begin with "go" ("go1.8", "go1.9.1", etc), not "release".

Fixes #22252.

Change-Id: I1c400af62fb49dd979b96e1bf0fb295a81c8b336
Reviewed-on: https://go-review.googlesource.com/70850
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
2017-10-14 01:00:31 +00:00
..
addr2line cmd/go: build test binaries with -s in addition to -w 2017-03-29 17:18:16 +00:00
api all: revert "all: prefer strings.IndexByte over strings.Index" 2017-10-05 23:19:10 +00:00
asm cmd/asm: refine Go assembly for ARM64 2017-10-13 13:41:19 +00:00
buildid cmd/buildid: add new tool factoring out code needed by go command 2017-10-11 18:16:02 +00:00
cgo cmd/asm, cmd/cgo, cmd/compile, cmd/cover, cmd/link: use standard -V output 2017-10-06 20:28:40 +00:00
compile cmd/compile: omit ICE diagnostics after normal error messages 2017-10-14 01:00:31 +00:00
cover cmd/asm, cmd/cgo, cmd/compile, cmd/cover, cmd/link: use standard -V output 2017-10-06 20:28:40 +00:00
dist cmd/link: split PE loader into its own package 2017-10-12 21:35:43 +00:00
doc all: revert "all: prefer strings.LastIndexByte over strings.LastIndex" 2017-10-05 23:19:42 +00:00
fix all: revert "all: prefer strings.LastIndexByte over strings.LastIndex" 2017-10-05 23:19:42 +00:00
go cmd/go: delete p.Internal.Target in favor of p.Target 2017-10-12 13:56:15 +00:00
gofmt cmd/fix,cmd/gofmt: flush to disk before diffing 2017-03-30 18:19:57 +00:00
internal cmd/asm: refine Go assembly for ARM64 2017-10-13 13:41:19 +00:00
link cmd/link: use the correct module data on ppc64le 2017-10-13 22:46:25 +00:00
nm cmd/link: don't use internal linking mode for cgo on PPC64 2017-09-26 15:06:32 +00:00
objdump cmd/objdump: fix and re-enable arm test 2017-10-02 16:11:26 +00:00
pack cmd/pack: fix export data truncation bug 2017-09-09 14:13:33 +00:00
pprof cmd/pprof: restore printing descriptive errors from net/http/pprof endpoints 2017-06-15 02:14:24 +00:00
trace all: correct location of go tool 2017-09-20 03:54:16 +00:00
vendor cmd/vendor/golang.org/x/arch: pull latest updates from x repo (commit edaf650) 2017-08-25 14:13:13 +00:00
vet runtime: fix cgo export of panicmem on ios 2017-10-10 08:49:16 +00:00