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] |
The Go frontend relies on the ability to convert from one struct type to another, which it does using VIEW_CONVERT_EXPR. For complete type safety doing this we need to mark struct types as using structural equality, which we were not doing. We mostly got away with this, but https://golang.org/issue/23667 shows a case where that fails (many test failures were caused by a single miscompilation in the library). This patch changes the Go frontend to GCC interface to mark structs as using structural equality. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu and powerpc64le-unknown-linux-gnu. Committed to mainline. Ian 2018-02-03 Ian Lance Taylor <iant@golang.org> * go-gcc.cc (Gcc_backend::fill_in_struct): Mark struct types as using structural equality.
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] |