[Bug rtl-optimization/90275] New: [8/9/10 Regression] ICE: in insert_regs, at cse.c:1128 with -O2 -fno-dce -fno-tree-dce

zsojka at seznam dot cz gcc-bugzilla@gcc.gnu.org
Mon Apr 29 11:00:00 GMT 2019


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

            Bug ID: 90275
           Summary: [8/9/10 Regression] ICE: in insert_regs, at cse.c:1128
                    with -O2 -fno-dce -fno-tree-dce
           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: armv7a-hardfloat-linux-gnueabi

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

Compiler output:
$ armv7a-hardfloat-linux-gnueabi-gcc -O2 -fno-dce -fno-tree-dce testcase.c 
during RTL pass: cse_local
testcase.c: In function 'foo':
testcase.c:11:1: internal compiler error: in insert_regs, at cse.c:1129
   11 | }
      | ^
0x7d954d insert_regs
        /repo/gcc-trunk/gcc/cse.c:1129
0x16445a8 cse_insn
        /repo/gcc-trunk/gcc/cse.c:5980
0x164783b cse_extended_basic_block
        /repo/gcc-trunk/gcc/cse.c:6662
0x164783b cse_main
        /repo/gcc-trunk/gcc/cse.c:6841
0x164874d rest_of_handle_cse_after_global_opts
        /repo/gcc-trunk/gcc/cse.c:7820
0x164874d execute
        /repo/gcc-trunk/gcc/cse.c:7871
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.


$ armv7a-hardfloat-linux-gnueabi-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-armv7a-hardfloat/bin/armv7a-hardfloat-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-270639-checking-yes-rtl-df-extra-armv7a-hardfloat/bin/../libexec/gcc/armv7a-hardfloat-linux-gnueabi/10.0.0/lto-wrapper
Target: armv7a-hardfloat-linux-gnueabi
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-float=hard --with-fpu=vfpv4
--with-arch=armv7-a --with-sysroot=/usr/armv7a-hardfloat-linux-gnueabi
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=armv7a-hardfloat-linux-gnueabi
--with-ld=/usr/bin/armv7a-hardfloat-linux-gnueabi-ld
--with-as=/usr/bin/armv7a-hardfloat-linux-gnueabi-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-270639-checking-yes-rtl-df-extra-armv7a-hardfloat
Thread model: posix
gcc version 10.0.0 20190429 (experimental) (GCC)


More information about the Gcc-bugs mailing list