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

            Bug ID: 120144
           Summary: [15 Regression] ICE when bootstrapping libstdc++ on
                    mips64-elf
           Product: gcc
           Version: 15.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: simon.eriksson.1187 at gmail dot com
  Target Milestone: ---

When bootstrapping the mips64-elf target with C++ on GCC 15.1, GCC crashes with
the following ICE:

In file included from
/mnt/builder/mips64-elf-gcc/src/gcc-15.1.0/libstdc++-v3/src/c++17/floating_to_chars.cc:25:
In function 'constexpr std::to_chars_result std::__detail::__to_chars_16(char*,
char*, _Tp) [with _Tp = __int128 unsigned]',
    inlined from 'constexpr std::to_chars_result std::__to_chars_i(char*,
char*, _Tp, int) [with _Tp = __int128 unsigned]' at
/mnt/builder/mips64-elf-gcc/src/build-gcc/mips64-elf/libstdc++-v3/include/charconv:349:32:
/mnt/builder/mips64-elf-gcc/src/build-gcc/mips64-elf/libstdc++-v3/include/charconv:172:22:
internal compiler error: in expand_fn_using_insn, at internal-fn.cc:268
  172 |       const unsigned __len = (__to_chars_len_2(__val) + 3) / 4;
      |                      ^~~~~
0x1de2788 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
        ???:0
0x1df34f0 internal_error(char const*, ...)
        ???:0
0x654950 fancy_abort(char const*, int, char const*)
        ???:0
0x624575 expand_fn_using_insn(gcall*, insn_code, unsigned int, unsigned int)
[clone .constprop.0] [clone .cold]
        ???:0
0xb3b0a3 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ???:0
0xb41baa expand_expr_real_2(separate_ops const*, rtx_def*, machine_mode,
expand_modifier)
        ???:0
0xb43387 expand_expr_real_gassign(gassign*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ???:0
0xb3c8f7 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ???:0
0xb09c54 expand_operands(tree_node*, tree_node*, rtx_def*, rtx_def**,
rtx_def**, expand_modifier)
        ???:0
0xb3ee67 expand_expr_real_2(separate_ops const*, rtx_def*, machine_mode,
expand_modifier)
        ???:0
0xb43387 expand_expr_real_gassign(gassign*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ???:0
0xb3c8f7 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ???:0
0xb3fc5e expand_expr_real_2(separate_ops const*, rtx_def*, machine_mode,
expand_modifier)
        ???:0
0xb43387 expand_expr_real_gassign(gassign*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ???:0
0x9f7e55 expand_gimple_stmt(gimple*)
        ???:0
0xa05807 (anonymous namespace)::pass_expand::execute(function*)
        ???:0

Reply via email to