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

            Bug ID: 93376
           Summary: [10 Regression] ICE: in immed_wide_int_const_1, at
                    emit-rtl.c:660 with -Og -finline-functions-called-once
           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 47691
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47691&action=edit
reduced testcase

Compiler output:
$ x86_64-pc-linux-gnu-gcc -Og -finline-functions-called-once testcase.c
during RTL pass: combine
testcase.c: In function 'foo':
testcase.c:16:1: internal compiler error: in immed_wide_int_const_1, at
emit-rtl.c:660
   16 | }
      | ^
0x6428bb immed_wide_int_const_1
        /repo/gcc-trunk/gcc/emit-rtl.c:660
0x106b714 simplify_const_binary_operation(rtx_code, machine_mode, rtx_def*,
rtx_def*)
        /repo/gcc-trunk/gcc/simplify-rtx.c:4560
0x106a7c3 simplify_binary_operation(rtx_code, machine_mode, rtx_def*, rtx_def*)
        /repo/gcc-trunk/gcc/simplify-rtx.c:2282
0x106ddc2 simplify_const_relational_operation(rtx_code, machine_mode, rtx_def*,
rtx_def*)
        /repo/gcc-trunk/gcc/simplify-rtx.c:5456
0x106e3ca simplify_relational_operation(rtx_code, machine_mode, machine_mode,
rtx_def*, rtx_def*)
        /repo/gcc-trunk/gcc/simplify-rtx.c:5005
0x1a6cbd3 combine_simplify_rtx
        /repo/gcc-trunk/gcc/combine.c:5792
0x1a6f757 subst
        /repo/gcc-trunk/gcc/combine.c:5720
0x1a6f8be subst
        /repo/gcc-trunk/gcc/combine.c:5653
0x1a6f4f8 subst
        /repo/gcc-trunk/gcc/combine.c:5582
0x1a71789 try_combine
        /repo/gcc-trunk/gcc/combine.c:3412
0x1a79aa3 combine_instructions
        /repo/gcc-trunk/gcc/combine.c:1303
0x1a79aa3 rest_of_handle_combine
        /repo/gcc-trunk/gcc/combine.c:15059
0x1a79aa3 execute
        /repo/gcc-trunk/gcc/combine.c:15104
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-20200122013655-10502831581-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-20200122013655-10502831581-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.0.1 20200122 (experimental) (GCC)

Reply via email to