https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212
--- Comment #10 from Oleg Endo <olegendo at gcc dot gnu.org> --- (In reply to Oleg Endo from comment #9) > > The next failure is: > > gcc-sh-lra-build-sh-elf/sh-elf/libstdc++-v3/include/bits/locale_facets_nonio. > h:1564:66: internal compiler error: in set_address_disp, at rtlanal.c:5790 > { return this->do_put(__s, __intl, __io, __fill, __units); } > ^ > 0x8830497 set_address_disp > ../../gcc-sh-lra/gcc/rtlanal.c:5790 > 0x8830497 set_address_disp > ../../gcc-sh-lra/gcc/rtlanal.c:6080 > 0x8830497 decompose_normal_address > ../../gcc-sh-lra/gcc/rtlanal.c:5912 > 0x8830497 decompose_address > ../../gcc-sh-lra/gcc/rtlanal.c:5997 > 0x88305b1 decompose_mem_address(address_info*, rtx_def*) > ../../gcc-sh-lra/gcc/rtlanal.c:6017 > 0x8745d7b process_address_1 > ../../gcc-sh-lra/gcc/lra-constraints.c:2783 > 0x874aed9 process_address > ../../gcc-sh-lra/gcc/lra-constraints.c:2990 > 0x874aed9 curr_insn_transform > ../../gcc-sh-lra/gcc/lra-constraints.c:3274 > 0x874d905 lra_constraints(bool) > ../../gcc-sh-lra/gcc/lra-constraints.c:4215 > 0x873ce6c lra(_IO_FILE*) > ../../gcc-sh-lra/gcc/lra.c:2206 > 0x86f99a3 do_reload > ../../gcc-sh-lra/gcc/ira.c:5312 > 0x86f99a3 execute > ../../gcc-sh-lra/gcc/ira.c:5471 This is due to the following invalid mem that ends up in the "*extend<mode>si2_compact_snd" pattern: (insn 8 5 10 2 (set (reg/v:SI 171 [ __fill ]) (sign_extend:SI (mem/c:QI (plus:SI (plus:SI (reg/f:SI 145 ap) (const_int 12 [0xc])) (const_int 4 [0x4])) [0 __fill+0 S1 A32]))) locale_facets_nonio.h:1562 241 {*extendqisi2_compact_snd} (expr_list:REG_EQUIV (mem:SI (plus:SI (reg/f:SI 15 r15) (const_int 4 [0x4])) [0 S4 A32]) (nil))) in function "decompose_address": inner = (plus:SI (plus:SI (reg/f:SI 145 ap) (const_int 12 [0xc])) (const_int 4 [0x4]))