compiler: use more accurate array type in Gogo::register_gc_vars
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 30 Dec 2016 07:08:00 +0000 (07:08 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 30 Dec 2016 07:08:00 +0000 (07:08 +0000)
commit270ca283ffb2fb8ce7cfbb2e07a5edcf42b17592
treea30b81143a4f6987754e3d732d5b577b9ff31d73
parenta9788936a187733ff74ea43657d190ffc147b3e0
compiler: use more accurate array type in Gogo::register_gc_vars

    The length of the roots array in Gogo::register_gc_vars was being
    computed incorrectly, potentially leading to type clashes in the back
    end. Compute an accurate length for this array ahead of time.

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

From-SVN: r243974
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/gogo.cc