https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84948

            Bug ID: 84948
           Summary: [8 regression] ICE in set_from, at
                    go/gofrontend/types.cc:2660
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          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-*-*

It looks like set_from makes some invalid alignment assumptions.

libtool: compile: 
/home/abuild/rpmbuild/BUILD/gcc-8.0.1+r258445/obj-m68k-suse-linux/./gcc/gccgo
-B/home/abuild/rpmbuild/BUILD/gcc-8.0.1+r258445/obj-m68k-suse-linux/./gcc/
-B/usr/m68k-suse-linux/bin/ -B/usr/m68k-suse-linux/lib/ -isystem
/usr/m68k-suse-linux/include -isystem /usr/m68k-suse-linux/sys-include -O2 -g
-I . -c -fgo-pkgpath=runtime -fgo-c-header=runtime.inc.tmp
-fgo-compiling-runtime ../../../libgo/go/runtime/alg.go
../../../libgo/go/runtime/atomic_pointer.go
../../../libgo/go/runtime/cgo_gccgo.go ../../../libgo/go/runtime/cgocall.go
../../../libgo/go/runtime/cgocheck.go ../../../libgo/go/runtime/chan.go
../../../libgo/go/runtime/compiler.go ../../../libgo/go/runtime/cpuprof.go
../../../libgo/go/runtime/cputicks.go ../../../libgo/go/runtime/debug.go
../../../libgo/go/runtime/env_posix.go ../../../libgo/go/runtime/error.go
../../../libgo/go/runtime/extern.go ../../../libgo/go/runtime/fastlog2.go
../../../libgo/go/runtime/fastlog2table.go ../../../libgo/go/runtime/ffi.go
../../../libgo/go/runtime/float.go ../../../libgo/go/runtime/hash32.go
../../../libgo/go/runtime/hashmap.go ../../../libgo/go/runtime/hashmap_fast.go
../../../libgo/go/runtime/heapdump.go ../../../libgo/go/runtime/iface.go
../../../libgo/go/runtime/lfstack.go ../../../libgo/go/runtime/lfstack_32bit.go
../../../libgo/go/runtime/lock_futex.go ../../../libgo/go/runtime/malloc.go
../../../libgo/go/runtime/mbarrier.go ../../../libgo/go/runtime/mbitmap.go
../../../libgo/go/runtime/mcache.go ../../../libgo/go/runtime/mcentral.go
../../../libgo/go/runtime/mem_gccgo.go ../../../libgo/go/runtime/mfinal.go
../../../libgo/go/runtime/mfixalloc.go ../../../libgo/go/runtime/mgc.go
../../../libgo/go/runtime/mgc_gccgo.go ../../../libgo/go/runtime/mgclarge.go
../../../libgo/go/runtime/mgcmark.go ../../../libgo/go/runtime/mgcsweep.go
../../../libgo/go/runtime/mgcsweepbuf.go ../../../libgo/go/runtime/mgcwork.go
../../../libgo/go/runtime/mheap.go ../../../libgo/go/runtime/mprof.go
../../../libgo/go/runtime/msan0.go ../../../libgo/go/runtime/msize.go
../../../libgo/go/runtime/mstats.go ../../../libgo/go/runtime/mwbbuf.go
../../../libgo/go/runtime/netpoll.go ../../../libgo/go/runtime/netpoll_epoll.go
../../../libgo/go/runtime/os_gccgo.go ../../../libgo/go/runtime/os_linux.go
../../../libgo/go/runtime/panic.go ../../../libgo/go/runtime/print.go
../../../libgo/go/runtime/proc.go ../../../libgo/go/runtime/profbuf.go
../../../libgo/go/runtime/proflabel.go ../../../libgo/go/runtime/race0.go
../../../libgo/go/runtime/rdebug.go ../../../libgo/go/runtime/relax_stub.go
../../../libgo/go/runtime/runtime.go ../../../libgo/go/runtime/runtime1.go
../../../libgo/go/runtime/runtime2.go ../../../libgo/go/runtime/rwmutex.go
../../../libgo/go/runtime/select.go ../../../libgo/go/runtime/sema.go
../../../libgo/go/runtime/signal_gccgo.go
../../../libgo/go/runtime/signal_sighandler.go
../../../libgo/go/runtime/signal_unix.go ../../../libgo/go/runtime/sigqueue.go
../../../libgo/go/runtime/sizeclasses.go ../../../libgo/go/runtime/slice.go
../../../libgo/go/runtime/string.go ../../../libgo/go/runtime/stubs.go
../../../libgo/go/runtime/stubs2.go ../../../libgo/go/runtime/stubs_linux.go
../../../libgo/go/runtime/symtab.go ../../../libgo/go/runtime/time.go
../../../libgo/go/runtime/timestub.go ../../../libgo/go/runtime/trace.go
../../../libgo/go/runtime/traceback_gccgo.go ../../../libgo/go/runtime/type.go
../../../libgo/go/runtime/typekind.go ../../../libgo/go/runtime/unaligned2.go
../../../libgo/go/runtime/utf8.go ../../../libgo/go/runtime/write_err.go
runtime_sysinfo.go sigtab.go  -fPIC -o .libs/runtime.o
go1: internal compiler error: in set_from, at go/gofrontend/types.cc:2660
0x80241bd9 Ptrmask::set_from(Gogo*, Type*, long long, long long)
        ../../gcc/go/gofrontend/types.cc:2660
0x80241959 Ptrmask::set_from(Gogo*, Type*, long long, long long)
        ../../gcc/go/gofrontend/types.cc:2696
0x80241cb1 Type::gc_ptrmask_var(Gogo*, long long, long long)
        ../../gcc/go/gofrontend/types.cc:2816
0x80243409 Type::make_gc_symbol_var(Gogo*)
        ../../gcc/go/gofrontend/types.cc:2523
0x802437ab Type::gc_symbol_pointer(Gogo*)
        ../../gcc/go/gofrontend/types.cc:2473
0x801ad2ad Expression::get_backend(Translate_context*)
        ../../gcc/go/gofrontend/expressions.cc:413
0x801c2ee9 Struct_construction_expression::do_get_backend(Translate_context*)
        ../../gcc/go/gofrontend/expressions.cc:12782
0x801ad2ad Expression::get_backend(Translate_context*)
        ../../gcc/go/gofrontend/expressions.cc:413
0x801c2ee9 Struct_construction_expression::do_get_backend(Translate_context*)
        ../../gcc/go/gofrontend/expressions.cc:12782
0x801ad2ad Expression::get_backend(Translate_context*)
        ../../gcc/go/gofrontend/expressions.cc:413
0x8023c0d7 Type::make_type_descriptor_var(Gogo*)
        ../../gcc/go/gofrontend/types.cc:1418
0x8023c377 Type::type_descriptor_pointer(Gogo*, Location)
        ../../gcc/go/gofrontend/types.cc:1298
0x801e9107 Named_object::get_backend(Gogo*, std::vector<Bexpression*,
std::allocator<Bexpression*> >&, std::vector<Btype*, std::allocator<Btype*> >&,
std::vector<Bfunction*, std::allocator<Bfunction*> >&)
        ../../gcc/go/gofrontend/gogo.cc:7524
0x801f0d8d Gogo::write_globals()
        ../../gcc/go/gofrontend/gogo.cc:1329
0x801db3b5 go_write_globals()
        ../../gcc/go/gofrontend/go.cc:183

Reply via email to