[Bug target/91269] sparc64-gcc fails to build glibc (-fcall-used-g6) on niagara4: Assembler messages: Error: Illegal operands

slyfox at inbox dot ru gcc-bugzilla@gcc.gnu.org
Sun Jul 28 16:50:00 GMT 2019


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

--- Comment #8 from Sergei Trofimovich <slyfox at inbox dot ru> ---
Extra info: -fPIE is also needed to reproduce on on vanilla gcc from git.
Thus the reproducer is:

  $ gcc/xgcc -Bgcc -O2 -fcall-used-g6 -fPIE -mcpu=niagara4 -c bug.c -o bug.o

bug.c: In function 'c':
bug.c:13:8: warning: assignment to 'char *' from 'int' makes pointer from
integer without a cast [-Wint-conversion]
   13 |     cp = b[k];
      |        ^
/tmp/ccaJlRBg.s: Assembler messages:
/tmp/ccaJlRBg.s:145: Error: Illegal operands



  $ gcc/xgcc -Bgcc -v

Reading specs from gcc/specs
COLLECT_GCC=gcc/xgcc
COLLECT_LTO_WRAPPER=gcc/lto-wrapper
Target: sparc64-unknown-linux-gnu
Configured with: ../gcc/configure --target=sparc64-unknown-linux-gnu
--with-sysroot=/usr/sparc64-unknown-linux-gnu --enable-languages=c
--disable-bootstrap
--prefix=/home/slyfox/dev/git/gcc-sparc64/../gcc-sparc64-installed
--disable-multilib cross_compiling=yes
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.0.0 20190728 (experimental) (GCC)


More information about the Gcc-bugs mailing list