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

--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Zhendong Su from comment #6)
> (In reply to Martin Liška from comment #5)
> > > gcc version 8.0.1 20180310 (experimental) [trunk revision 258413] (GCC)
> > 
> > Just a nit, this revision mentioned above is actually from GCC 7 branch.
> > Isn't that the issue?
> 
> Martin, it was checked out from the main trunk @
> svn://gcc.gnu.org/svn/gcc/trunk. 
> 
> I still see the ICE with rev. 258535: 
> 
> $ 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.1/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.1 20180314 (experimental) [trunk revision 258535] (GCC) 
> $ 
> $ gcctk -O3 -c 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
>  }
>  ^
> 0xc8ff8b smallest_mode_for_size(poly_int<1u, unsigned long>, mode_class)
>       ../../gcc-source-trunk/gcc/stor-layout.c:355
> 0x1437abc smallest_int_mode_for_size(poly_int<1u, unsigned long>)
>       ../../gcc-source-trunk/gcc/machmode.h:842
> 0x1437abc find_shift_sequence
>       ../../gcc-source-trunk/gcc/dse.c:1701
> 0x1437abc get_stored_val
>       ../../gcc-source-trunk/gcc/dse.c:1847
> 0x143a41c record_store
>       ../../gcc-source-trunk/gcc/dse.c:1557
> 0x143b2c2 scan_insn
>       ../../gcc-source-trunk/gcc/dse.c:2545
> 0x143c4b2 dse_step1
>       ../../gcc-source-trunk/gcc/dse.c:2657
> 0x143c4b2 rest_of_handle_dse
>       ../../gcc-source-trunk/gcc/dse.c:3574
> 0x143c4b2 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.
> $

Can you please attach content of --save-temps?

Reply via email to