From: Janis Johnson Date: Tue, 8 Apr 2008 21:17:16 +0000 (+0000) Subject: re PR target/35839 (Altivec with the vectorizer causes an ICE in rs6000_check_sdmode) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0f3928210c3b652eb7804144f59db9f8fe98334;p=gcc.git re PR target/35839 (Altivec with the vectorizer causes an ICE in rs6000_check_sdmode) PR target/35839 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional kinds of indirect references. From-SVN: r134107 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f22587446ad..c7b8ad017f9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-04-08 Janis Johnson + + PR target/35839 + * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional + kinds of indirect references. + 2008-04-08 David Edelsohn * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 3793976363b..be069ccb7a5 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -11226,9 +11226,6 @@ rs6000_check_sdmode (tree *tp, int *walk_subtrees, void *data ATTRIBUTE_UNUSED) return NULL_TREE; } - gcc_assert (TREE_CODE (*tp) != ALIGN_INDIRECT_REF); - gcc_assert (TREE_CODE (*tp) != MISALIGNED_INDIRECT_REF); - switch (TREE_CODE (*tp)) { case VAR_DECL: @@ -11237,6 +11234,8 @@ rs6000_check_sdmode (tree *tp, int *walk_subtrees, void *data ATTRIBUTE_UNUSED) case RESULT_DECL: case REAL_CST: case INDIRECT_REF: + case ALIGN_INDIRECT_REF: + case MISALIGNED_INDIRECT_REF: case VIEW_CONVERT_EXPR: if (TYPE_MODE (TREE_TYPE (*tp)) == SDmode) return *tp;