cmd/asm, cmd/compile, doc: document -spectre flags

Most of the docs are in the new wiki page
https://golang.org/wiki/Spectre.

Updates #37419.

Change-Id: I6e8f76670593c089de895e1665b41d874f879df9
Reviewed-on: https://go-review.googlesource.com/c/go/+/236599
Reviewed-by: Austin Clements <austin@google.com>
This commit is contained in:
Russ Cox 2020-06-04 16:20:39 -04:00 committed by Austin Clements
parent 76f233fe04
commit b6faed1326
3 changed files with 13 additions and 4 deletions

View file

@ -107,6 +107,8 @@ Flags:
Warn about composite literals that can be simplified.
-shared
Generate code that can be linked into a shared library.
-spectre list
Enable spectre mitigations in list (all, index, ret).
-traceprofile file
Write an execution trace to file.
-trimpath prefix