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

            Bug ID: 117611
           Summary: internal compiler error: in as_a, at machmode.h:381
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gjl at gcc dot gnu.org
  Target Milestone: ---

_Accum acc1 (_Accum x)
{
    return x << 16;
}

$ avr-gcc acc1.c -S -Os
during RTL pass: combine
acc1.c: In function 'acc1':
acc1.c:4:1: internal compiler error: in as_a, at machmode.h:381
    4 | }
      | ^
0x1586eb4 simplify_shift_const_1
        ../../../source/gcc-master/gcc/combine.cc:10634
0x158934f simplify_shift_const
        ../../../source/gcc-master/gcc/combine.cc:11397
0x157aa3a combine_simplify_rtx
        ../../../source/gcc-master/gcc/combine.cc:6412
0x15783f1 subst
        ../../../source/gcc-master/gcc/combine.cc:5630
0x15780f2 subst
        ../../../source/gcc-master/gcc/combine.cc:5557
0x1570d95 try_combine
        ../../../source/gcc-master/gcc/combine.cc:3312
0x156af00 combine_instructions
        ../../../source/gcc-master/gcc/combine.cc:1264
0x15933a4 rest_of_handle_combine
        ../../../source/gcc-master/gcc/combine.cc:15158
0x1593460 execute
        ../../../source/gcc-master/gcc/combine.cc:15202
0x7f3fe58ccd8f __libc_start_call_main
        ../sysdeps/nptl/libc_start_call_main.h:58

Target: avr
Configured with: ../../source/gcc-master/configure --target=avr --disable-nls
--with-dwarf2 --with-gnu-as --with-gnu-ld --disable-shared
--enable-languages=c,c++
Thread model: single
Supported LTO compression algorithms: zlib
gcc version 15.0.0 20241024 (experimental) (GCC)

Reply via email to