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

ian@gcc.gnu.org ian@gcc.gnu.org
Thu Jul 18 16:51:00 GMT 2019


Author: ian
Date: Thu Jul 18 16:51:00 2019
New Revision: 273577

URL: https://gcc.gnu.org/viewcvs?rev=273577&root=gcc&view=rev
Log:
    compiler: fix bug in importing blocks from inline functions
    
    This patch fixes a buglet in the function body importer. Add hooks for
    keeping a stack of blocks corresponding to the block nesting in the
    imported function. This ensures that local variables and temps wind up
    correctly scoped and don't introduce collisions.
    
    New test case for this problem in CL 186717.
    
    Fixes golang/go#33158.
    
    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/186757

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



More information about the Gcc-cvs mailing list