This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PPC combine ICE
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>, Alan Modra <amodra at bigpond dot net dot au>, Geoff Keating <geoffk at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 15 Mar 2002 00:55:16 -0500
- Subject: Re: [PATCH] Fix PPC combine ICE
>>>>> Alexandre Oliva writes:
>> I think the original RTL generation creating the CONST_INT
>> should have performed that.
Alexandre> Agreed.
So where should this be done?
Maybe we should add this sanity check to force_reg() as well.
That seems to be part of the problem. We hand force_reg() a CONST_INT and
a mode. It blindly places the CONST_INT into a REG and sets a REG_EQUAL
note, but never checks that the CONST_INT is valid for the mode.
David