compiler: include selected constant types during export processing
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 4 Oct 2019 18:14:30 +0000 (18:14 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 4 Oct 2019 18:14:30 +0000 (18:14 +0000)
commit69b35f396ceb22e2e04b4228a6811291621808c1
treee5b8c8a1488b30e41d0039391145aeb734ef6f6f
parent432bbcbb1e9d4a2b2bd946a0120c2be52c4ec01d
compiler: include selected constant types during export processing

    The machinery that collects types referenced by expressions that are
    part of inlinable function bodies was missing the types of local named
    constants in certain cases. This patch updates the
    Collect_export_references::expression() hook to look for references to
    local named constants and include their types in the exported set.

    Fixes golang/go#34577.

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

From-SVN: r276594
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/export.cc
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/expressions.h