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

            Bug ID: 122874
           Summary: [16 regression] ICE when building binutils on hppa
                    with LRA
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
                CC: danglin at gcc dot gnu.org
  Target Milestone: ---

Created attachment 62920
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62920&action=edit
som.i.xz

```
$ gcc -c som.i -O2 -march=2.0
/var/tmp/portage/sys-devel/binutils-9999/work/binutils/bfd/som.c: In function
'som_write_fixups':
/var/tmp/portage/sys-devel/binutils-9999/work/binutils/bfd/som.c:3305:1: error:
unrecognizable insn:
 3305 | }
      | ^
(insn 1518 0 0 (set (reg/f:SI 847)
        (mem/f/c:SI (plus:SI (reg/f:SI 3 %r3)
                (const_int -8428 [0xffffffffffffdf14])) [104
total_reloc_sizep+0 S4 A32])) -1
     (nil))
during RTL pass: reload
/var/tmp/portage/sys-devel/binutils-9999/work/binutils/bfd/som.c:3305:1:
internal compiler error: in extract_insn, at recog.cc:2884
0xf7d4b9df __libc_start_call_main
        ../sysdeps/nptl/libc_start_call_main.h:58
0xf7d4bb23 __libc_start_main_impl
        /usr/src/debug/sys-libs/glibc-2.40-r8/glibc-2.40/csu/libc-start.c:360
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
```

-mno-lra works.


```
using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/hppa2.0-unknown-linux-gnu/16/lto-wrapper
Target: hppa2.0-unknown-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/configure
--host=hppa2.0-unknown-linux-gnu --build=hppa2.0-unknown-linux-gnu
--prefix=/usr --bindir=/usr/hppa2.0-unknown-linux-gnu/gcc-bin/16
--includedir=/usr/lib/gcc/hppa2.0-unknown-linux-gnu/16/include
--datadir=/usr/share/gcc-data/hppa2.0-unknown-linux-gnu/16
--mandir=/usr/share/gcc-data/hppa2.0-unknown-linux-gnu/16/man
--infodir=/usr/share/gcc-data/hppa2.0-unknown-linux-gnu/16/info
--with-gxx-include-dir=/usr/lib/gcc/hppa2.0-unknown-linux-gnu/16/include/g++-v16
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/hppa2.0-unknown-linux-gnu/16/python
--enable-libphobos --enable-languages=c,c++,d,fortran,ada --enable-obsolete
--enable-secureplt --disable-werror --with-system-zlib --disable-nls
--disable-libunwind-exceptions --enable-checking=yes,extra
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 16.0.9999 p,
commit d93ac8e926116356695925acea88cb496d9ddaa8' --with-gcc-major-version-only
--enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--disable-multilib --disable-fixed-point --disable-libgomp --disable-libssp
--enable-libada --disable-systemtap --disable-valgrind-annotations
--disable-vtable-verify --disable-libvtv --with-zstd --without-isl
--disable-libsanitizer --enable-default-pie --enable-host-pie
--enable-host-bind-now --disable-default-ssp --disable-fixincludes
--with-gxx-libcxx-include-dir=/usr/include/c++/v1
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.0 20251125 (experimental)
06f094958161f8c31746b33164a35820eecef4ee (Gentoo 16.0.9999 p, commit
d93ac8e926116356695925acea88cb496d9ddaa8)
```

Reply via email to