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

            Bug ID: 89506
           Summary: [7/8/9 Regression] ICE: in decompose, at rtl.h:2266
                    with -Og -g
           Product: gcc
           Version: 9.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 45825
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45825&action=edit
reduced testcase

Compiler output:
$ armv7a-hardfloat-linux-gnueabi-gcc -Og -g testcase.c
during RTL pass: vartrack
testcase.c: In function 'foo':
testcase.c:10:1: internal compiler error: in decompose, at rtl.h:2266
   10 | }
      | ^
0xa54130 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:2264
0xdbc19c 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:1013
0xdbc19c 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:788
0xdbc19c wi::binary_traits<std::pair<rtx_def*, machine_mode>,
std::pair<rtx_def*, machine_mode>, wi::int_traits<std::pair<rtx_def*,
machine_mode> >::precision_type, wi::int_traits<std::pair<rtx_def*,
machine_mode> >::precision_type>::result_type wi::add<std::pair<rtx_def*,
machine_mode>, std::pair<rtx_def*, machine_mode> >(std::pair<rtx_def*,
machine_mode> const&, std::pair<rtx_def*, machine_mode> const&)
        /repo/gcc-trunk/gcc/wide-int.h:2403
0xdbc19c simplify_const_binary_operation(rtx_code, machine_mode, rtx_def*,
rtx_def*)
        /repo/gcc-trunk/gcc/simplify-rtx.c:4286
0xdbb693 simplify_binary_operation(rtx_code, machine_mode, rtx_def*, rtx_def*)
        /repo/gcc-trunk/gcc/simplify-rtx.c:2164
0xdcc86e simplify_plus_minus
        /repo/gcc-trunk/gcc/simplify-rtx.c:4686
0xdb6277 simplify_binary_operation_1
        /repo/gcc-trunk/gcc/simplify-rtx.c:2388
0xdbb6c5 simplify_binary_operation(rtx_code, machine_mode, rtx_def*, rtx_def*)
        /repo/gcc-trunk/gcc/simplify-rtx.c:2167
0x9b0946 cselib_expand_value_rtx_1
        /repo/gcc-trunk/gcc/cselib.c:1856
0x9b1eae cselib_expand_value_rtx_cb(rtx_def*, bitmap_head*, int, rtx_def*
(*)(rtx_def*, bitmap_head*, int, void*), void*)
        /repo/gcc-trunk/gcc/cselib.c:1562
0x10b6ea0 vt_expand_var_loc_chain
        /repo/gcc-trunk/gcc/var-tracking.c:8384
0x10b7538 vt_expand_loc_callback
        /repo/gcc-trunk/gcc/var-tracking.c:8547
0x9b087a cselib_expand_value_rtx_1
        /repo/gcc-trunk/gcc/cselib.c:1716
0x9b0515 cselib_expand_value_rtx_1
        /repo/gcc-trunk/gcc/cselib.c:1754
0x9b1eae cselib_expand_value_rtx_cb(rtx_def*, bitmap_head*, int, rtx_def*
(*)(rtx_def*, bitmap_head*, int, void*), void*)
        /repo/gcc-trunk/gcc/cselib.c:1562
0x10b6ea0 vt_expand_var_loc_chain
        /repo/gcc-trunk/gcc/var-tracking.c:8384
0x10b7538 vt_expand_loc_callback
        /repo/gcc-trunk/gcc/var-tracking.c:8547
0x9b087a cselib_expand_value_rtx_1
        /repo/gcc-trunk/gcc/cselib.c:1716
0x9b0515 cselib_expand_value_rtx_1
        /repo/gcc-trunk/gcc/cselib.c:1754
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.

Reply via email to