1
0
mirror of https://github.com/golang/go synced 2024-11-18 22:24:50 -07:00
go/doc
Matthew Dempsky f049d911e9 cmd/compile: be stricter about recognizing safety rule #4
unsafe.Pointer safety rule #4 says "The compiler handles a Pointer
converted to a uintptr in the argument list of a call". Within escape
analysis, we've always required this be a single conversion
unsafe.Pointer->uintptr conversion, but the corresponding logic in
order is somewhat laxer, allowing arbitrary chains of OCONVNOPs from
unsafe.Pointer to uintptr.

This CL changes order to be stricter to match escape analysis.

Passes toolstash-check.

Change-Id: Iadd210d2123accb2020f5728ea2a47814f703352
Reviewed-on: https://go-review.googlesource.com/c/go/+/229578
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2020-04-23 00:08:35 +00:00
..
articles doc/articles/wiki: use correct variable name in closures guide 2020-03-20 08:42:30 +00:00
codewalk doc: convert remaining bash tests to Go 2019-11-14 21:33:00 +00:00
gopher
play
progs doc: convert remaining bash tests to Go 2019-11-14 21:33:00 +00:00
asm.html
cmd.html doc: remove extra br tags 2020-02-23 01:23:41 +00:00
contrib.html doc: add Go 1.14 to release history 2020-02-25 16:16:10 +00:00
contribute.html doc: fix path to make.bash 2020-03-29 17:16:51 +00:00
debugging_with_gdb.html doc/debugging_with_gdb: fix the link of delve 2020-04-13 04:26:57 +00:00
diagnostics.html
editors.html
effective_go.html doc: update Effective Go with 1.14 language changes 2020-02-28 20:15:38 +00:00
gccgo_contribute.html
gccgo_install.html
go1.1.html
go1.2.html
go1.3.html
go1.4.html
go1.5.html
go1.6.html
go1.7.html
go1.8.html
go1.9.html doc: rename HTML element IDs to avoid duplicates 2020-02-05 14:32:50 +00:00
go1.10.html
go1.11.html doc: rename HTML element IDs to avoid duplicates 2020-02-05 14:32:50 +00:00
go1.12.html
go1.13.html doc: rename HTML element IDs to avoid duplicates 2020-02-05 14:32:50 +00:00
go1.14.html doc/go1.14: mention Windows change for Open permissions 2020-03-18 18:59:32 +00:00
go1.15.html cmd/compile: be stricter about recognizing safety rule #4 2020-04-23 00:08:35 +00:00
go1.html
go1compat.html
go_faq.html
go_mem.html doc/mem: remove unnecessary pre tags within same snippet 2020-03-03 09:28:34 +00:00
go_spec.html spec: add missing space in EBNF 2020-01-15 05:32:51 +00:00
go-logo-black.png
go-logo-blue.png
go-logo-white.png
help.html
ie.css
install-source.html doc: remove darwin/386, darwin/arm from ports list 2020-04-08 18:35:03 +00:00
install.html doc: update the minimum supported macOS version to 10.11 2020-04-01 18:26:02 +00:00
share.png
tos.html