This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lno] [committed] Fix PR 17138 ICE in peel_address
- From: Andrew Pinski <apinski at apple dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 22 Aug 2004 17:44:14 -0700
- Subject: Re: [lno] [committed] Fix PR 17138 ICE in peel_address
- References: <C50C949A-F49C-11D8-95FD-00039351ED8A@physics.uc.edu>
It seems that when REALPART_EXPR and IMAGPART_EXPR were changed to
be REF's (even though it was not renamed but that is for another day)
we do not handle them in peel_address at all so we get an ICE in there
because it of.
I committed this obvious patch which fixes the ICE with the testcase
provided, I did not reduce it because I was being lazy and it was easy
to fix.
Thanks,
Andrew Pinski
ChangeLog:
* tree-ssa-loop-ivopts.c (peel_address): Handle REALPART_EXPR
and IMAGPART_EXPR.
Index: tree-ssa-loop-ivopts.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-ssa-loop-ivopts.c,v
retrieving revision 1.1.2.50
diff -u -p -r1.1.2.50 tree-ssa-loop-ivopts.c
--- tree-ssa-loop-ivopts.c 5 Aug 2004 08:48:02 -0000 1.1.2.50
+++ tree-ssa-loop-ivopts.c 23 Aug 2004 00:29:45 -0000
@@ -2814,6 +2814,8 @@ peel_address (tree addr, unsigned HOST_W
{
case SSA_NAME:
case INDIRECT_REF:
+ case REALPART_EXPR:
+ case IMAGPART_EXPR:
case BIT_FIELD_REF:
case VAR_DECL:
case PARM_DECL: