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

            Bug ID: 91854
           Summary: gcc-8.3.0 generates invalid assembly on lz4-1.8.3:
                    Assembler messages: Error: Illegal operands
                    (-mcpu=niagara4 -fPIC)
           Product: gcc
           Version: 8.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: slyfox at inbox dot ru
  Target Milestone: ---

The bug looks similar to bug #91269 but Eric Botcazou suggests to consider it a
separate bug.

lz4-1.8.3 triggers assembler errors for sparc64-unknown-linux-gnu gcc-8.3.0
(and others).

Here are a few versions attempted:

8.3.0:

$ /home/slyfox/dev/git/gcc-sparc64/gcc/xgcc
-B/home/slyfox/dev/git/gcc-sparc64/gcc -O2 -pipe -fPIC -mcpu=niagara4 -c
bug.orig.c -o bug.o
{standard input}: Assembler messages:
{standard input}:10435: Error: Illegal operands
{standard input}:10686: Error: Illegal operands

$ /home/slyfox/dev/git/gcc-sparc64/gcc/xgcc
-B/home/slyfox/dev/git/gcc-sparc64/gcc -v
Reading specs from /home/slyfox/dev/git/gcc-sparc64/gcc/specs
COLLECT_GCC=/home/slyfox/dev/git/gcc-sparc64/gcc/xgcc
COLLECT_LTO_WRAPPER=/home/slyfox/dev/git/gcc-sparc64/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
gcc version 8.3.0 (GCC)

8-branch:

$ /home/slyfox/dev/git/gcc-sparc64/gcc/xgcc
-B/home/slyfox/dev/git/gcc-sparc64/gcc -O2 -pipe -fPIC -mcpu=niagara4 -c
bug.orig.c -o bug.o
{standard input}: Assembler messages:
{standard input}:10401: Error: Illegal operands
{standard input}:10652: Error: Illegal operands

$ /home/slyfox/dev/git/gcc-sparc64/gcc/xgcc
-B/home/slyfox/dev/git/gcc-sparc64/gcc -v
Reading specs from /home/slyfox/dev/git/gcc-sparc64/gcc/specs
COLLECT_GCC=/home/slyfox/dev/git/gcc-sparc64/gcc/xgcc
COLLECT_LTO_WRAPPER=/home/slyfox/dev/git/gcc-sparc64/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
gcc version 8.3.1 20190920 (GCC)

Reply via email to