Bug#55263: [PATCH] fixed in 2.96 CVS, here's a backport of the diff
David Huggins-Daines writes:
> I've found the minimal set of optimization flags that will produce
> this error (the -O is necessary):
> [dhd@doppelbock]:~/src/debian/ncurses4.2-4.2/obj_s$ cc -I../ncurses -I. -DNDEBUG -I. -I../include -DHAVE_CONFIG_H -DTERMINFO=\"/usr/share/terminfo\" -O -fcse-skip-blocks -fexpensive-optimizations -frerun-cse-after-loop -frerun-loop-opt -D_REENTRANT -fPIC -c ../ncurses/softscroll.c
> ../ncurses/softscroll.c: In function `_nc_perform_scroll':
> ../ncurses/softscroll.c:257: internal error--unrecognizable insn:
> (insn 1213 1212 1215 (set (reg/v:DI 531)
> (mem/f:DI (symbol_ref:DI ("SP")) 0)) -1 (nil)
> However, it seems that the bug is fixed in 2.96 from current CVS.
> Here is the diff from 2.95.2 to 2.96 that solves the problem (I've
> tested it, it seems to work):
included in gcc-2.95.2-7, which you find at master.debian.org:~doko/gcc
I did not build this version on alpha.
Other changes are:
gcc (2.95.2-7) frozen unstable; urgency=low
* debian/patches/gcc-empty-struct-init.dpatch; Apply patch from
compilation of 2.3.4x kernels.
* debian/patches/gcc-emit-rtl.dpatch: Apply patch from David Huggins-Daines
<email@example.com> (backport from 2.96 CVS to fix #55263).
* debian/patches/gcc-pointer-arith: Apply patch from Jim Kingdon
<firstname.lastname@example.org> (backport from 2.96 CVS to fix #54951).