compiler,runtime: Determine if allocations need new pointers in runtime.
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 14 Jul 2015 01:22:25 +0000 (01:22 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 14 Jul 2015 01:22:25 +0000 (01:22 +0000)
commit67a546ab451541e24dae5c8ecbaf692c8cd89f08
treeb317e5c995b24230c3a354dfb57ea03905f419de
parentd8b6e6a172f6ab862c47dabbab6b1832cd49b1ee
compiler,runtime: Determine if allocations need new pointers in runtime.

    As the removed comment states, if the package being compiled played
    certain tricks with pointers that looked like integers, the compiler
    might allocate space for new pointers unnecessarily.  Since the type
    information on the heap is now precise, this logic can be moved to the
    runtime.

    Reviewed-on: https://go-review.googlesource.com/11581

From-SVN: r225757
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/runtime.def
libgo/runtime/go-new.c