aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorCherry Mui <cherryyz@google.com>2021-08-03 19:35:55 -0400
committerIan Lance Taylor <iant@golang.org>2021-08-03 18:32:07 -0700
commit22e40cc7feb8abda85762e4f07719836d5c57f1a (patch)
tree006460b18638cda9e6daada502ef6f79ee7820e3 /gcc/doc
parentfa1407c7613214cb4a45734fdb14c4756a83808a (diff)
downloadgcc-22e40cc7feb8abda85762e4f07719836d5c57f1a.zip
gcc-22e40cc7feb8abda85762e4f07719836d5c57f1a.tar.gz
gcc-22e40cc7feb8abda85762e4f07719836d5c57f1a.tar.bz2
compiler: support new language constructs in escape analysis
Previous CLs add new language constructs in Go 1.17, specifically, unsafe.Add, unsafe.Slice, and conversion from a slice to a pointer to an array. This CL handles them in the escape analysis. At the point of the escape analysis, unsafe.Add and unsafe.Slice are still builtin calls, so just handle them in data flow. Conversion from a slice to a pointer to an array has already been lowered to a combination of compound expression, conditional expression and slice info expressions, so handle them in the escape analysis. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/339671
Diffstat (limited to 'gcc/doc')
0 files changed, 0 insertions, 0 deletions