This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: can't bootstrap current trunk: internal compiler error: in simplify_subreg,@simplify-rtx.c:4679
- From: Andreas Krebbel <Andreas dot Krebbel at de dot ibm dot com>
- To: Christian Joensson <christian dot joensson at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 9 Aug 2007 15:19:02 +0200
- Subject: Re: can't bootstrap current trunk: internal compiler error: in simplify_subreg,@simplify-rtx.c:4679
- References: <5460e3330708090219ud6bcafft1bdbf99d1bd61ee7@mail.gmail.com>
Hello,
the bootstrap failure you are seeing is caused by my decompose
multiword shift patch:
http://gcc.gnu.org/ml/gcc-patches/2007-08/msg00419.html
It is the same failure as reported by Andreas Tobler:
http://gcc.gnu.org/ml/gcc-patches/2007-08/msg00533.html
I don't have access to a sparc machine. Could you please test the
following patch?
The patch at least seems to fix it on a cross gcc.
Bye,
-Andreas-
Index: gcc/lower-subreg.c
===================================================================
--- gcc/lower-subreg.c (revision 127312)
+++ gcc/lower-subreg.c (working copy)
@@ -1071,7 +1071,7 @@
GET_MODE (SET_DEST (set)),
offset2);
src_reg = simplify_gen_subreg_concatn (word_mode, op_operand,
- GET_MODE (op_operand),
+ GET_MODE (SET_DEST (set)),
src_offset);
if (GET_CODE (op) != ZERO_EXTEND)
{