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

--- Comment #6 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
(In reply to Detlef Vollmann from comment #5)
> Thanks for your patch.
> It solves the segfault ICE for -O2.
> But unfortunately  it doesn't solve the build for -O3 or -O4.
> It still produces the same error as before:
> 
> avr-gcc -O4 -mmcu=avrtiny    -c -o pr116390.o pr116390.c
> pr116390.c: In function 'badFoo':
> pr116390.c:71:1: error: insn does not satisfy its constraints:
>    71 | }
>       | ^
> (insn 29 148 3 5 (set (mem/c:SI (plus:HI (reg/f:HI 28 r28)
>                 (const_int 9 [0x9])) [4 %sfp+9 S4 A8])
>         (reg:SI 30 r30)) "pr116390.c":31:20 119 {*movsi_split}
>      (nil))
> during RTL pass: postreload
> pr116390.c:71:1: internal compiler error: in extract_constrain_insn, at
> recog.cc:2783


IMO that is PR116389 which is a regalloc issue or a problem with ext-dce,
whereas this one is about a (now fixed) typo in the avr backend.  Notice that
the error message changed.

> 0x1a169d0 internal_error(char const*, ...)
>       /ssd1/build/src/gcc/gcc/diagnostic-global-context.cc:491
> 0x63606b fancy_abort(char const*, int, char const*)
>       /ssd1/build/src/gcc/gcc/diagnostic.cc:1772
> 0x4e7641 _fatal_insn(char const*, rtx_def const*, char const*, int, char
> const*)
>       /ssd1/build/src/gcc/gcc/rtl-error.cc:108
> 0x4e7667 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
>       /ssd1/build/src/gcc/gcc/rtl-error.cc:118
> 0x4e6199 extract_constrain_insn(rtx_insn*)
>       /ssd1/build/src/gcc/gcc/recog.cc:2783
> 0xc0d3d6 reload_cse_simplify_operands
>       /ssd1/build/src/gcc/gcc/postreload.cc:396
> 0xc0df65 reload_cse_simplify
>       /ssd1/build/src/gcc/gcc/postreload.cc:179
> 0xc0df65 reload_cse_regs_1
>       /ssd1/build/src/gcc/gcc/postreload.cc:227
> 0xc1009b reload_cse_regs
>       /ssd1/build/src/gcc/gcc/postreload.cc:65
> 0xc1009b execute
>       /ssd1/build/src/gcc/gcc/postreload.cc:2366

Reply via email to