go/src/cmd
Russ Cox 38d1ec8c9d cmd/internal/obj: use panic instead of log.Fatalf for two messages
These messages can happen if there are
duplicate body-less function declarations.
Using panic gives the panic handler
a chance to handle the panic by printing the
queued error messages instead of an internal error.

And if there are no queued error messages,
using panic pinpoints the stack trace leading
to the incorrect use of NewFuncInfo/NewFileInfo.

Change-Id: I7e7ea9822ff9a1e7140f5e5b7cfd6437ff9318a7
Reviewed-on: https://go-review.googlesource.com/c/go/+/266338
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
2020-10-29 20:50:02 +00:00
..
addr2line cmd/addr2line: don't assume that GOROOT_FINAL is clean 2020-09-17 19:25:09 +00:00
api io/fs: move FileInfo, FileMode, PathError, ErrInvalid, ... from os to io/fs 2020-10-20 02:32:41 +00:00
asm cmd/asm: remove X27 and S11 register names on riscv64 2020-10-29 08:00:50 +00:00
buildid cmd/buildid: move and reuse duplicated HashToString code to cmd/internal/buildid/buildid 2020-10-28 21:52:53 +00:00
cgo runtime,cmd/cgo: simplify C -> Go call path 2020-10-26 14:50:32 +00:00
compile cmd/compile: gracefully fail when devirtualization fails 2020-10-29 20:19:24 +00:00
cover
dist Revert "cmd/compile,cmd/internal/sys: enable additional build modes on linux/riscv64" 2020-10-29 18:26:18 +00:00
doc all: update references to symbols moved from os to io/fs 2020-10-20 02:32:42 +00:00
fix all: update references to symbols moved from io/ioutil to io 2020-10-20 18:41:18 +00:00
go Revert "cmd/compile,cmd/internal/sys: enable additional build modes on linux/riscv64" 2020-10-29 18:26:18 +00:00
gofmt all: update references to symbols moved from io/ioutil to io 2020-10-20 18:41:18 +00:00
internal cmd/internal/obj: use panic instead of log.Fatalf for two messages 2020-10-29 20:50:02 +00:00
link cmd/link: add loadelf support for riscv64 2020-10-29 18:26:42 +00:00
nm cmd/link: enable internal linking by default on darwin/arm64 2020-10-28 14:25:56 +00:00
objdump cmd/objdump: skip TestDisasmExtld on AIX 2020-10-16 20:51:49 +00:00
pack all: update references to symbols moved from os to io/fs 2020-10-20 02:32:42 +00:00
pprof all: update references to symbols moved from io/ioutil to io 2020-10-20 18:41:18 +00:00
test2json
trace all: update references to symbols moved from io/ioutil to io 2020-10-20 18:41:18 +00:00
vendor cmd/vendor: sync pprof@v0.0.0-20201007051231-1066cbb265c7 2020-10-22 23:33:06 +00:00
vet
README.vendor
go.mod cmd/vendor: sync pprof@v0.0.0-20201007051231-1066cbb265c7 2020-10-22 23:33:06 +00:00
go.sum cmd/vendor: sync pprof@v0.0.0-20201007051231-1066cbb265c7 2020-10-22 23:33:06 +00:00

README.vendor

See src/README.vendor for information on loading vendored packages
and updating the vendor directory.