https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80128
Bug ID: 80128 Summary: [7 regression] go1: internal compiler error: in write_specific_type_functions, at go/gofrontend/types.cc:2002 Product: gcc Version: 7.0 Status: UNCONFIRMED Keywords: build Severity: normal Priority: P3 Component: go Assignee: ian at airs dot com Reporter: sch...@linux-m68k.org CC: cmang at google dot com Target Milestone: --- Target: m68k-*-* Trying to build libgo on m68k the following ICE occurs: /usr/bin/mkdir -p runtime/internal; files=`echo ../../../gcc/libgo/go/runtime/internal/sys/intrinsics.go ../../../gcc/libgo/go/runtime/internal/sys/stubs.go ../../../gcc/libgo/go/runtime/internal/sys/sys.go version.go | sed -e 's/[^ ]*\.gox//g' -e 's/[^ ]*\.dep//'`; /bin/sh ./libtool --tag GO --mode=compile /suse/schwab/src/gcc/c-m68k/./gcc/gccgo -B/suse/schwab/src/gcc/c-m68k/./gcc/ -B/daten/cross/m68k-linux/m68k-linux/bin/ -B/daten/cross/m68k-linux/m68k-linux/lib/ -isystem /daten/cross/m68k-linux/m68k-linux/include -isystem /daten/cross/m68k-linux/m68k-linux/sys-include -O2 -g -I . -c -fgo-pkgpath=`echo runtime/internal/sys.lo | sed -e 's/.lo$//'` -fgo-compiling-runtime -o runtime/internal/sys.lo $files libtool: compile: /suse/schwab/src/gcc/c-m68k/./gcc/gccgo -B/suse/schwab/src/gcc/c-m68k/./gcc/ -B/daten/cross/m68k-linux/m68k-linux/bin/ -B/daten/cross/m68k-linux/m68k-linux/lib/ -isystem /daten/cross/m68k-linux/m68k-linux/include -isystem /daten/cross/m68k-linux/m68k-linux/sys-include -O2 -g -I . -c -fgo-pkgpath=runtime/internal/sys -fgo-compiling-runtime ../../../gcc/libgo/go/runtime/internal/sys/intrinsics.go ../../../gcc/libgo/go/runtime/internal/sys/stubs.go ../../../gcc/libgo/go/runtime/internal/sys/sys.go version.go -fPIC -o runtime/internal/.libs/sys.o go1: internal compiler error: in write_specific_type_functions, at go/gofrontend/types.cc:2002 0x6703bf Type::write_specific_type_functions(Gogo*, Named_type*, long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Function_type*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Function_type*) ../../gcc/gcc/go/gofrontend/types.cc:2002 0x67098c Type::specific_type_functions(Gogo*, Named_type*, long, Function_type*, Function_type*, Named_object**, Named_object**) ../../gcc/gcc/go/gofrontend/types.cc:1980 0x66f36c Type::type_functions(Gogo*, Named_type*, Function_type*, Function_type*, Named_object**, Named_object**) ../../gcc/gcc/go/gofrontend/types.cc:1762 0x674b82 Type::type_descriptor_constructor(Gogo*, int, Named_type*, Methods const*, bool) ../../gcc/gcc/go/gofrontend/types.cc:2322 0x675b4a Pointer_type::do_type_descriptor(Gogo*, Named_type*) ../../gcc/gcc/go/gofrontend/types.cc:4668 0x66bb10 Type::make_type_descriptor_var(Gogo*) ../../gcc/gcc/go/gofrontend/types.cc:1239 0x66bf62 Type::type_descriptor_pointer(Gogo*, Location) ../../gcc/gcc/go/gofrontend/types.cc:1174 0x5f3352 Type_descriptor_expression::do_get_backend(Translate_context*) ../../gcc/gcc/go/gofrontend/expressions.cc:14421 0x5eb119 Struct_construction_expression::do_get_backend(Translate_context*) ../../gcc/gcc/go/gofrontend/expressions.cc:12641 0x66bd7d Type::make_type_descriptor_var(Gogo*) ../../gcc/gcc/go/gofrontend/types.cc:1290 0x66bf62 Type::type_descriptor_pointer(Gogo*, Location) ../../gcc/gcc/go/gofrontend/types.cc:1174 0x616672 Named_object::get_backend(Gogo*, std::vector<Bexpression*, std::allocator<Bexpression*> >&, std::vector<Btype*, std::allocator<Btype*> >&, std::vector<Bfunction*, std::allocator<Bfunction*> >&) ../../gcc/gcc/go/gofrontend/gogo.cc:7379 0x61d6b2 Gogo::write_globals() ../../gcc/gcc/go/gofrontend/gogo.cc:1317