re PR go/89019 (LTO and gccgo cause ICE during free_lang_data)
authorNikhil Benesch <nikhil.benesch@gmail.com>
Wed, 6 Feb 2019 04:48:35 +0000 (04:48 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 6 Feb 2019 04:48:35 +0000 (04:48 +0000)
commitce4321c918aa0d17ecd7da6c3deb43524b1729cf
tree33a6eb37062d4aecdffb413b9a1a362331168574
parentfbe83e6b4d0308f547ab11de6dc0eda2741cc11f
re PR go/89019 (LTO and gccgo cause ICE during free_lang_data)

gcc/go:
        PR go/89019
        * go-gcc.cc (Gcc_backend::placeholder_struct_type): Mark
        placeholder structs as requiring structural equality.
        (Gcc_backend::set_placeholder_pointer_type): Propagate the
canonical type from the desired pointer type to the placeholder
pointer type.
gcc/testsuite/:
        * lib/go-torture.exp: Test compiling with -flto.

From-SVN: r268572
gcc/go/ChangeLog
gcc/go/go-gcc.cc
gcc/testsuite/ChangeLog
gcc/testsuite/lib/go-torture.exp