This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [lno] [committed] Fix PR 17138 ICE in peel_address


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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]