-
- Downloads
compiler, libgo: support bootstrapping gc compiler
In the Go 1.21 release the package internal/profile imports internal/lazyregexp. That works when bootstrapping with Go 1.17, because that compiler has internal/lazyregep and permits importing it. We also have internal/lazyregexp in libgo, but since it is not installed it is not available for importing. This CL adds internal/lazyregexp to the list of internal packages that are installed for bootstrapping. The Go 1.21, and earlier, releases have a couple of functions in the internal/abi package that are always fully intrinsified. The gofrontend recognizes and intrinsifies those functions as well. However, the gofrontend was also building function descriptors for references to the functions without calling them, which failed because there was nothing to refer to. That is OK for the gc compiler, which guarantees that the functions are only called, not referenced. This CL arranges to not generate function descriptors for these functions. For golang/go#60913 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/504798
Showing
- gcc/go/gofrontend/expressions.cc 2 additions, 1 deletiongcc/go/gofrontend/expressions.cc
- gcc/go/gofrontend/gogo.cc 30 additions, 1 deletiongcc/go/gofrontend/gogo.cc
- libgo/Makefile.am 1 addition, 0 deletionslibgo/Makefile.am
- libgo/Makefile.in 1 addition, 0 deletionslibgo/Makefile.in
- libgo/go/internal/abi/abi.go 2 additions, 8 deletionslibgo/go/internal/abi/abi.go
Loading
Please register or sign in to comment