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

            Bug ID: 124643
           Summary: [SH] ICE during RTL pass with -O3
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: paul at crapouillou dot net
  Target Milestone: ---

Created attachment 64033
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64033&action=edit
Pre-processed pngwrite.c from libpng that reproduces the ICE

Using GCC master (c6897e4c0a0aeeee183ce7899c1238e03d714d3a), compiling the
attached pre-processed source file (from libpng) with -O3:

during RTL pass: late_combine
pngwrite.c: In function 'png_image_set_PLTE.isra':
pngwrite.c:1927:1: internal compiler error: in apply_to_rvalue_1, at
recog.cc:1128
 1927 | # 585 "/home/paul/dev/dreamcast/kos/include/kos/fs.h" 3
      | ^
0x1927d25 diagnostics::context::diagnostic_impl(rich_location*,
diagnostics::metadata const*, diagnostics::option_id, char const*,
__va_list_tag (*) [1], diagnostics::kind)
        ???:0
0x192164c internal_error(char const*, ...)
        ???:0
0x69af29 fancy_abort(char const*, int, char const*)
        ???:0
0xca2baf insn_propagation::apply_to_rvalue_1(rtx_def**)
        ???:0
0xca33dd insn_propagation::apply_to_mem_1(rtx_def*)
        ???:0
0xca36af insn_propagation::apply_to_pattern(rtx_def**)
        ???:0
/home/paul/dev/toolchains/sh-elf-upstream/libexec/gcc/sh-elf/16.0.1/cc1 -quiet
pngwrite.c -quiet -dumpbase pngwrite.c -dumpbase-ext .c -O3 -o /tmp/ccVxm7VP.s

Reply via email to