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

            Bug ID: 95059
           Summary: GCCGO cannot be compiled for ARM64 ILP32 ABI
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: go
          Assignee: ian at airs dot com
          Reporter: mikulas at artax dot karlin.mff.cuni.cz
                CC: cmang at google dot com
  Target Milestone: ---

Compiling gcc on ARM64 with these options fails. It worked on gcc 9.

#!/bin/sh
set -e
MAKEFLAGS=-j4
export MAKEFLAGS
../gcc-10.1.0/configure                                                 \
        --prefix=/usr/local/gcc-10.1.0-fail/                            \
        --enable-lto                                                    \
        --with-system-zlib                                              \
        --enable-languages=c,c++,go                                     \
        --enable-multilib                                               \
        --with-multilib-list=lp64,ilp32                                 \
        --disable-libsanitizer
nice -n 20 make

../../../../gcc-10.1.0/libgo/go/runtime/mpagealloc.go:226:38: error: shift
count overflow
  226 |  chunks [1 << pallocChunksL1Bits]*[1 << pallocChunksL2Bits]pallocData
      |                                      ^
../../../../gcc-10.1.0/libgo/go/runtime/mgcscavenge.go:530:15: error: shift
count overflow
  530 |    l2 := (*[1 <<
pallocChunksL2Bits]pallocData)(atomic.Loadp(unsafe.Pointer(&s.chunks[i.l1()])))
      |               ^
../../../../gcc-10.1.0/libgo/go/runtime/mpagealloc.go:138:22: error: shift
count overflow
  138 |   return uint(i) & (1<<pallocChunksL2Bits - 1)
      |                      ^
../../../../gcc-10.1.0/libgo/go/runtime/mpagealloc.go:129:21: error: integer
constant overflow
  129 |   return uint(i) >> pallocChunksL1Shift
      |                     ^
../../../../gcc-10.1.0/libgo/go/runtime/mpagealloc_64bit.go:34:2: error:
integer constant overflow
   34 |  summaryL0Bits,
      |  ^
make[8]: *** [Makefile:2865: runtime.lo] Chyba 1
make[8]: *** Čeká se na nedokončené úlohy…

Reply via email to