Bug#88237: gcc won't build from source on m68k
Package: gcc-2.95
Version: 2.95.3.ds4-6
Severity: serious
This version won't build on m68k; I got the following error:
echo "68060-build patches applied." > stamps/02-patch-stamp-native-68060-build
if [ -x debian/patches/gcc-m68k-pic.dpatch ]; then true; else chmod +x debian/patches/gcc-m68k-pic.dpatch; fi
if [ -f stamps/02-patch-stamp-native-gcc-m68k-pic ]; then \
echo "gcc-m68k-pic patches already applied."; exit 1; \
fi
debian/patches/gcc-m68k-pic.dpatch -patch -d /root/gcc/gcc-2.95-2.95.3.ds4/src-native
patching file `gcc/config/m68k/m68k.c'
patching file `gcc/loop.c'
Hunk #1 FAILED at 4046.
1 out of 1 hunk FAILED -- saving rejects to gcc/loop.c.rej
make[1]: *** [stamps/02-patch-stamp-native-gcc-m68k-pic] Error 1
make[1]: Leaving directory `/root/gcc/gcc-2.95-2.95.3.ds4'
make: *** [stamps/02-patch-stamp-native] Error 2
mac:~/gcc/gcc-2.95-2.95.3.ds4#
loop.c.rej says:
***************
*** 4046,4056 ****
in-between when biv_toal_increment returns nonzero both times
but we test it here in case some day some real cfg analysis
gets used to set always_computable. */
- && ((loop_insn_first_p (bl2->biv->insn, bl->biv->insn)
- && no_labels_between_p (bl2->biv->insn, bl->biv->insn))
- || (! reg_used_between_p (bl->biv->src_reg, bl->biv->insn,
- bl2->biv->insn)
- && no_jumps_between_p (bl->biv->insn, bl2->biv->insn)))
&& validate_change (bl->biv->insn,
&SET_SRC (single_set (bl->biv->insn)),
copy_rtx (src), 0))
--- 4046,4056 ----
in-between when biv_toal_increment returns nonzero both times
but we test it here in case some day some real cfg analysis
gets used to set always_computable. */
+ && (loop_insn_first_p (bl2->biv->insn, bl->biv->insn)
+ ? no_labels_between_p (bl2->biv->insn, bl->biv->insn)
+ : (! reg_used_between_p (bl->biv->src_reg, bl->biv->insn,
+ bl2->biv->insn)
+ && no_jumps_between_p (bl->biv->insn, bl2->biv->insn)))
&& validate_change (bl->biv->insn,
&SET_SRC (single_set (bl->biv->insn)),
copy_rtx (src), 0))
--
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>
Reply to: