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

            Bug ID: 93412
           Summary: [10 Regression] ICE: in extract_insn, at recog.c:2294
                    with __builtin_add_overflow() at -Og
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu

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

Compiler output:
$ x86_64-pc-linux-gnu-gcc -Og testcase.c 
testcase.c: In function 'foo':
testcase.c:11:1: error: unrecognizable insn:
   11 | }
      | ^
(insn 98 97 38 2 (parallel [
            (set (reg:CCO 17 flags)
                (eq:CCO (plus:TI (plus:TI (ltu:TI (reg:CC 17 flags)
                                (const_int 0 [0]))
                            (sign_extend:TI (reg:DI 37 r9 [+8 ])))
                        (sign_extend:TI (const_int 0 [0])))
                    (sign_extend:TI (plus:DI (plus:DI (ltu:DI (reg:CC 17 flags)
                                    (const_int 0 [0]))
                                (reg:DI 37 r9 [+8 ]))
                            (const_int 0 [0])))))
            (set (reg:DI 37 r9 [+8 ])
                (plus:DI (plus:DI (ltu:DI (reg:CC 17 flags)
                            (const_int 0 [0]))
                        (reg:DI 37 r9 [+8 ]))
                    (const_int 0 [0])))
        ]) "testcase.c":9:7 -1
     (nil))
during RTL pass: split2
testcase.c:11:1: internal compiler error: in extract_insn, at recog.c:2294
0x700160 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        /repo/gcc-trunk/gcc/rtl-error.c:108
0x7001e3 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        /repo/gcc-trunk/gcc/rtl-error.c:116
0x6eef6e extract_insn(rtx_insn*)
        /repo/gcc-trunk/gcc/recog.c:2294
0xfe3574 extract_insn_cached(rtx_insn*)
        /repo/gcc-trunk/gcc/recog.c:2183
0xd00282 cleanup_subreg_operands(rtx_insn*)
        /repo/gcc-trunk/gcc/final.c:3312
0xfdfe3f split_insn
        /repo/gcc-trunk/gcc/recog.c:2920
0xfe6507 split_all_insns()
        /repo/gcc-trunk/gcc/recog.c:2988
0xfe65b8 execute
        /repo/gcc-trunk/gcc/recog.c:3887
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.

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

Reply via email to