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

            Bug ID: 116275
           Summary: [15 regression] ICE when building llvm-18.1.8
                    (convert_insn, at config/i386/i386-features.cc:1502)
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
                CC: roger at nextmovesoftware dot com
  Target Milestone: ---

Created attachment 58862
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58862&action=edit
SymbolizableObjectFile.cpp.ii.xz

```
$ g++
../llvm_build-abi_x86_32.x86/lib/DebugInfo/Symbolize/CMakeFiles/LLVMSymbolize.dir/SymbolizableObjectFile.cpp.ii
-std=c++17 -m32 -O2 -c
/var/tmp/portage/sys-devel/llvm-18.1.8-r4/work/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp:
In member function ‘llvm::Error
llvm::symbolize::SymbolizableObjectFile::addSymbo (const
llvm::object::SymbolRef&, uint64_t, llvm::DataExtractor*, uint64_t)’:
/var/tmp/portage/sys-devel/llvm-18.1.8-r4/work/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp:220:1:
error: unrecognizable insn:
  220 | }
      | ^
(insn 395 394 396 55 (set (subreg:V2DI (reg/v:DI 113 [ SymbolAddress ]) 0)
        (ashiftrt:V2DI (ashift:V2DI (subreg:V2DI (reg/v:DI 113 [ SymbolAddress
]) 0)
                (const_int 8 [0x8]))
            (const_int 8 [0x8])))
"/var/tmp/portage/sys-devel/llvm-18.1.8-r4/work/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp":200:19
-1
     (expr_list:REG_UNUSED (reg:CC 17 flags)
        (nil)))
during RTL pass: stv
/var/tmp/portage/sys-devel/llvm-18.1.8-r4/work/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp:220:1:
internal compiler error: in convert_insn, at config/i386/i386-features.cc:1502
0x559e7ebf3927 internal_error(char const*, ...)
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic-global-context.cc:491
0x559e7ebf3ac2 fancy_abort(char const*, int, char const*)
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic.cc:1772
0x559e7e455e5b _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/rtl-error.cc:108
0x559e7e45602e _fatal_insn_not_found(rtx_def const*, char const*, int, char
const*)
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/rtl-error.cc:116
0x559e7e172935 convert_insn
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/config/i386/i386-features.cc:1502
0x559e7f3e0a68 convert
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/config/i386/i386-features.cc:1987
0x559e7f3e0a68 convert_scalars_to_vector
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/config/i386/i386-features.cc:2532
0x559e7f3e0a68 execute
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/config/i386/i386-features.cc:2746
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
```

```
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/15/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/15
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/15/python
--enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls --without-included-gettext
--disable-libunwind-exceptions --enable-checking=yes,extra,rtl,df
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 15.0.9999 p,
commit 767d91209f8983d23caae12e2337eca6c2b5dbdb' --with-gcc-major-version-only
--enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point
--enable-targets=all --enable-libgomp --disable-libssp --disable-libada
--disable-cet --disable-systemtap --disable-valgrind-annotations
--disable-vtable-verify --disable-libvtv --with-zstd --without-isl
--enable-default-pie --enable-host-pie --disable-host-bind-now
--enable-default-ssp --disable-fixincludes --with-build-config='bootstrap-O3
bootstrap-lto'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 15.0.0 20240807 (experimental)
2083389a18d36684a88d9e2653bacc87ad894b50 (Gentoo 15.0.9999 p, commit
767d91209f8983d23caae12e2337eca6c2b5dbdb)
```

Reply via email to