diff options
author | Russ Cox <rsc@golang.org> | 2020-06-04 16:20:39 -0400 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2020-06-05 16:54:48 +0000 |
commit | b6faed1326b0f6c1efd33b99a4550cbc437bd72f (patch) | |
tree | 1961818ec85d6cc22e59a8fd2783b492c2583992 /src/cmd/compile/doc.go | |
parent | 76f233fe045788e71b7460ea82947e4bda6d76ff (diff) | |
download | go-b6faed1326b0f6c1efd33b99a4550cbc437bd72f.tar.gz go-b6faed1326b0f6c1efd33b99a4550cbc437bd72f.zip |
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>
Diffstat (limited to 'src/cmd/compile/doc.go')
-rw-r--r-- | src/cmd/compile/doc.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/compile/doc.go b/src/cmd/compile/doc.go index 36dd4bb5cd..46d4722086 100644 --- a/src/cmd/compile/doc.go +++ b/src/cmd/compile/doc.go @@ -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 |