compiler: revise exportdata fix for processing constant types
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 14 Oct 2019 23:12:33 +0000 (23:12 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 14 Oct 2019 23:12:33 +0000 (23:12 +0000)
commit0a0582d75efb699d9adacc7a89831e90c4bd6c1d
tree1fb29f4498730515575d77c0b16d9cf7ab1823ba
parent4a4fc7feda04b57e3bf767ba29836868f2f984d7
compiler: revise exportdata fix for processing constant types

    This patch is an addendum to the fix for issue 34577, which was not
    sufficiently general. During export data processing, when looking at
    the types of constants mentioned in inlinable function bodies, include
    both locally defined constants and constant imported from other
    packages.

    Testcase for this bug is in CL 201017.

    Fixes golang/go#34852.

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/201018

From-SVN: r276976
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/export.cc