From 9f7aa952f59931da5ab6bd784723d05134adac97 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 9 Sep 2004 15:25:20 +0200 Subject: [PATCH] tree-ssa-loop-ivopts.c (peel_address): Fix abort on VIEW_CONVERT_EXPR. * tree-ssa-loop-ivopts.c (peel_address): Fix abort on VIEW_CONVERT_EXPR. From-SVN: r87237 --- gcc/ChangeLog | 5 +++++ gcc/tree-ssa-loop-ivopts.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d54bd875308..e0243e129a1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-09-09 Jan Hubicka + + * tree-ssa-loop-ivopts.c (peel_address): Fix abort on + VIEW_CONVERT_EXPR. + 2004-09-09 Nathan Sidwell * Makefile.in (gengtype): Use $(BUILD_ERRORS). diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index fd0250bf778..4ff3e0df617 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -2533,6 +2533,9 @@ peel_address (tree addr, unsigned HOST_WIDE_INT *diff) return TREE_OPERAND (addr, 0); + case VIEW_CONVERT_EXPR: + return TREE_OPERAND (addr, 0); + case ARRAY_REF: off = TREE_OPERAND (addr, 1); -- 2.30.2