This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
There has been a long-standing discrepancy between the gc and the gccgo Go compilers in their handling of the type descriptors for unexported embedded structs. gccgo correctly records a PkgPath for the package where those embedded structs are defined. gc does not. The Go libraries are written expect the gc behaviour, which causes them to both be slightly incorrect and to fail in some cases when used with gccgo. This was recently sorted out in the gc library. I'm bringing the patch over into gccgo now so that the compilers can finally be consistent. This patch adds three gc changes to libgo: https://golang.org/cl/14010, https:/golang.org/cl/14011, and https://golang.org/cl/14012. The main Go bug for this is https://golang.org/issue/7247 . It has also been reported against gccgo as https://gcc.gnu.org/PR66138 . Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed to mainline and GCC 5 branch. Ian
Attachment:
patch.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |