r273713 - in /trunk/gcc/go/gofrontend: MERGE im...

ian@gcc.gnu.org ian@gcc.gnu.org
Tue Jul 23 00:34:00 GMT 2019


Author: ian
Date: Tue Jul 23 00:34:38 2019
New Revision: 273713

URL: https://gcc.gnu.org/viewcvs?rev=273713&root=gcc&view=rev
Log:
    compiler: follow-on fix for finalizing imported methods
    
    This patch is a revision to CL 185518, which added code to perform
    finalization of methods on types created by the importer and not
    directly reachable until inlining is done.
    
    The original fix invoked the finalization code at the end of
    Import::read_types(), but it turns out this doesn't handle the case
    where a type with methods is read in due to a reference from something
    later in the export data (a function or variable). The fix is to move
    the import finalization call to the end of Import::import().
    
    Testcase for this bug is in CL 187057.
    
    Fixes golang/go#33219.
    
    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/187058

Modified:
    trunk/gcc/go/gofrontend/MERGE
    trunk/gcc/go/gofrontend/import.cc



More information about the Gcc-cvs mailing list