[Bug rtl-optimization/94002] New: [9/10 Regression] ICE: in decompose, at rtl.h:2279 with -O -fPIC -fno-tree-dce -fno-tree-reassoc

zsojka at seznam dot cz gcc-bugzilla@gcc.gnu.org
Mon Mar 2 11:54:00 GMT 2020


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

            Bug ID: 94002
           Summary: [9/10 Regression] ICE: in decompose, at rtl.h:2279
                    with -O -fPIC -fno-tree-dce -fno-tree-reassoc
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: riscv64-unknown-linux-gnu

Created attachment 47946
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47946&action=edit
reduced testcase

Compiler output:
$ riscv64-unknown-linux-gnu-gcc -O -fPIC -fno-tree-dce -fno-tree-reassoc
testcase.c 
during RTL pass: ira
testcase.c: In function 'foo':
testcase.c:8:1: internal compiler error: in decompose, at rtl.h:2279
    8 | }
      | ^
0x6197cf wi::int_traits<std::pair<rtx_def*, machine_mode> >::decompose(long*,
unsigned int, std::pair<rtx_def*, machine_mode> const&)
        /repo/gcc-trunk/gcc/rtl.h:2279
0x6197cf wide_int_ref_storage<false,
false>::wide_int_ref_storage<std::pair<rtx_def*, machine_mode>
>(std::pair<rtx_def*, machine_mode> const&, unsigned int)
        /repo/gcc-trunk/gcc/wide-int.h:1034
0x6197cf generic_wide_int<wide_int_ref_storage<false, false>
>::generic_wide_int<std::pair<rtx_def*, machine_mode> >(std::pair<rtx_def*,
machine_mode> const&, unsigned int)
        /repo/gcc-trunk/gcc/wide-int.h:790
0x6197cf wi::binary_traits<std::pair<rtx_def*, machine_mode>, long,
wi::int_traits<std::pair<rtx_def*, machine_mode> >::precision_type,
wi::int_traits<long>::precision_type>::result_type wi::add<std::pair<rtx_def*,
machine_mode>, long>(std::pair<rtx_def*, machine_mode> const&, long const&)
        /repo/gcc-trunk/gcc/wide-int.h:2424
0x6197cf poly_int<1u, wi::binary_traits<std::pair<rtx_def*, machine_mode>,
long, wi::int_traits<std::pair<rtx_def*, machine_mode> >::precision_type,
wi::int_traits<long>::precision_type>::result_type> wi::add<1u,
std::pair<rtx_def*, machine_mode>, long>(std::pair<rtx_def*, machine_mode>
const&, poly_int_pod<1u, long> const&)
        /repo/gcc-trunk/gcc/poly-int.h:910
0x6197cf plus_constant(machine_mode, rtx_def*, poly_int<1u, long>, bool)
        /repo/gcc-trunk/gcc/explow.c:115
0xaf35a3 plus_constant(machine_mode, rtx_def*, poly_int<1u, long>, bool)
        /repo/gcc-trunk/gcc/explow.c:133
0x9ae1e5 init_alias_analysis()
        /repo/gcc-trunk/gcc/alias.c:3470
0xcaefc8 ira
        /repo/gcc-trunk/gcc/ira.c:5305
0xcaefc8 execute
        /repo/gcc-trunk/gcc/ira.c:5666
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

$ riscv64-unknown-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-riscv64/bin/riscv64-unknown-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-20200301175845-g649e174102a-checking-yes-rtl-df-extra-riscv64/bin/../libexec/gcc/riscv64-unknown-linux-gnu/10.0.1/lto-wrapper
Target: riscv64-unknown-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--with-cloog --with-ppl --with-isl
--with-sysroot=/usr/riscv64-unknown-linux-gnu --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --target=riscv64-unknown-linux-gnu
--with-ld=/usr/bin/riscv64-unknown-linux-gnu-ld
--with-as=/usr/bin/riscv64-unknown-linux-gnu-as --disable-multilib
--disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-20200301175845-g649e174102a-checking-yes-rtl-df-extra-riscv64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.0.1 20200302 (experimental) (GCC)


More information about the Gcc-bugs mailing list