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

--- Comment #214 from Kazumoto Kojima <kkojima at gcc dot gnu.org> ---
(In reply to Kazumoto Kojima from comment #213)

Sorry I missed the use of -jN in your build.  Perhaps the failed go compilation
command would be

/srv/glaubitz/gcc/build/./gcc/gccgo -B/srv/glaubitz/gcc/build/./gcc/
-B/usr/local/sh4-unknown-linux-gnu/bin/ -B/usr/local/sh4-unknown-linux-gnu/lib/
-isystem /usr/local/sh4-unknown-linux-gnu/include -isystem
/usr/local/sh4-unknown-linux-gnu/sys-include -O2 -g -I . -c
-fgo-pkgpath=unicode/utf16 ../../../libgo/go/unicode/utf16/utf16.go -o
unicode/utf16.o

Fortunately, I can reproduce the ICE with the cross go compiler.  I'll look
into what is going on.

$ /home/kkojima/Take3/sh4-linux-gcc/gcc/go1
/git/gcc/libgo/go/unicode/utf16/utf16.go -quiet -dumpbase xxx.go -dumpbase-ext
.go -m4 -mlra -g -O2 -version -fchecking=1 -fgo-pkgpath=unicode/utf16 -fPIC -o
xxx.s
GNU Go (GCC) version 15.0.0 20240825 (experimental) (sh4-unknown-linux-gnu)
        compiled by GNU C version 11.4.0, GMP version 6.2.1, MPFR version
4.1.0, MPC version 1.2.1, isl version none
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
during RTL pass: subreg3
/git/gcc/libgo/go/unicode/utf16/utf16.go: In function 'unicode/utf16.Encode':
/git/gcc/libgo/go/unicode/utf16/utf16.go:56:1: internal compiler error: in
decompose_multiword_subregs, at lower-subreg.cc:1731
   56 | func Encode(s []rune) []uint16 {
      | ^
0x1c7f765 internal_error(char const*, ...)
        /git/gcc/gcc/diagnostic-global-context.cc:491
0x89b2be fancy_abort(char const*, int, char const*)
        /git/gcc/gcc/diagnostic.cc:1772
0x87b099 decompose_multiword_subregs
        /git/gcc/gcc/lower-subreg.cc:1731
0x1b10aa1 execute
        /git/gcc/gcc/lower-subreg.cc:1852

Reply via email to