aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2016-10-06 03:51:03 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2016-10-06 03:51:03 +0000
commita7773b4d0629c6ab0d8321c9b018f6a718bf232a (patch)
tree77833c482521ede307d11d30420a0d8a13b0d313 /gcc/gcc.c
parentf779aeb8af7def1bb21eade301d546fe0297d9e6 (diff)
downloadgcc-a7773b4d0629c6ab0d8321c9b018f6a718bf232a.zip
gcc-a7773b4d0629c6ab0d8321c9b018f6a718bf232a.tar.gz
gcc-a7773b4d0629c6ab0d8321c9b018f6a718bf232a.tar.bz2
escape: Avoid allocation of varargs parameter.
There was a bug in the escape analysis that would cause the slice implicitly created to hold varargs parameters to always escape, as well as the appended to slice argument. The intended behavior was that the elements of the appendee and appended to slice would escape to the heap. Alongside of these issues, the varargs slice would also have a chance to be initialized to an invalid memory location if it were stack-allocated. This has been fixed as well. Reviewed-on: https://go-review.googlesource.com/30450 From-SVN: r240826
Diffstat (limited to 'gcc/gcc.c')
0 files changed, 0 insertions, 0 deletions