https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83545
Bug ID: 83545 Summary: ICE at -O3 on x86_64-linux-gnu: in smallest_mode_for_size, at stor-layout.c:355 Product: gcc Version: unknown Status: WAITING Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu CC: marxin at gcc dot gnu.org Target Milestone: --- Status: WAITING Last reconfirmed: 2018-11-23 Ever confirmed: 1 $ gcctk -v Using built-in specs. COLLECT_GCC=gcctk COLLECT_LTO_WRAPPER=/home/su/software/tmp/gcc/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/8.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto --prefix=/home/su/software/tmp/gcc/gcc-trunk --disable-bootstrap Thread model: posix gcc version 8.0.0 20171222 (experimental) [trunk revision 255967] (GCC) $ $ gcctk -O2 -c small.c $ gcc-7.2.0 -O3 -c small.c $ $ gcctk -O3 -c small.c during RTL pass: dse1 small.c: In function ‘f’: small.c:8:1: internal compiler error: in smallest_mode_for_size, at stor-layout.c:355 } ^ 0xc760eb smallest_mode_for_size(poly_int<1u, unsigned long>, mode_class) ../../gcc-source-trunk/gcc/stor-layout.c:355 0x13ed0dd smallest_int_mode_for_size(poly_int<1u, unsigned long>) ../../gcc-source-trunk/gcc/machmode.h:737 0x13ed0dd find_shift_sequence ../../gcc-source-trunk/gcc/dse.c:1696 0x13ed0dd get_stored_val ../../gcc-source-trunk/gcc/dse.c:1842 0x13ef9af record_store ../../gcc-source-trunk/gcc/dse.c:1552 0x13f07f2 scan_insn ../../gcc-source-trunk/gcc/dse.c:2540 0x13f19e2 dse_step1 ../../gcc-source-trunk/gcc/dse.c:2652 0x13f19e2 rest_of_handle_dse ../../gcc-source-trunk/gcc/dse.c:3569 0x13f19e2 execute ../../gcc-source-trunk/gcc/dse.c:3667 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. $ ------------------------------------------------- int a, b, c[1][25]; void f () { for (a = 0; a < 5; a++) for (b = 0; b < 5; b++) c[3970000000000000000][a * 5 + b] = 1; } --- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> --- Can't reproduce, can you please recheck?