go patch committed: Taking slice of array moves it to heap

Ian Lance Taylor iant@google.com
Thu Mar 31 16:57:00 GMT 2011


This patch to the Go frontend fixes a bug: if you take a slice of an
array, you are in effect taking the address of the array, which in Go
requires moving the array to the heap.  Bootstrapped and ran Go
testsuite on x86_64-unknown-linux-gnu.  Committed to mainline.

Ian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 727 bytes
Desc: patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110331/058a07ec/attachment.bin>


More information about the Gcc-patches mailing list