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

--- Comment #8 from Zhendong Su <su at cs dot ucdavis.edu> ---
> Can you please attach content of --save-temps?

$ gcctk -O3 -c --save-temps small.c
during RTL pass: dse1
small.c: In function ‘fn1’:
small.c:12:1: internal compiler error: in smallest_mode_for_size, at
stor-layout.c:355
 }
 ^
0xc9006b smallest_mode_for_size(poly_int<1u, unsigned long>, mode_class)
        ../../gcc-source-trunk/gcc/stor-layout.c:355
0x1437b9c smallest_int_mode_for_size(poly_int<1u, unsigned long>)
        ../../gcc-source-trunk/gcc/machmode.h:842
0x1437b9c find_shift_sequence
        ../../gcc-source-trunk/gcc/dse.c:1701
0x1437b9c get_stored_val
        ../../gcc-source-trunk/gcc/dse.c:1847
0x143a4fc record_store
        ../../gcc-source-trunk/gcc/dse.c:1557
0x143b3a2 scan_insn
        ../../gcc-source-trunk/gcc/dse.c:2545
0x143c592 dse_step1
        ../../gcc-source-trunk/gcc/dse.c:2657
0x143c592 rest_of_handle_dse
        ../../gcc-source-trunk/gcc/dse.c:3574
0x143c592 execute
        ../../gcc-source-trunk/gcc/dse.c:3672
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.
$ 
$ cat small.i
# 1 "small.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 31 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 32 "<command-line>" 2
# 1 "small.c"
int a;
long b[1][9];

void fn1 ()
{
  while (a)
    {
      for (a = 0; a < 9; a++)
        b[2180000000000000000][a] = 1;
      break;
    }
}
$ cat small.s
        .file   "small.c"
        .text
$

Reply via email to