2006-11-15 Paolo Bonzini <bonzini@gnu.org>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Nov 2006 08:07:03 +0000 (08:07 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Nov 2006 08:07:03 +0000 (08:07 +0000)
PR middle-end/29753
* gimplify.c (fold_indirect_ref_rhs): Use
STRIP_USELESS_TYPE_CONVERSION rather than STRIP_NOPS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118845 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gimplify.c

index 81f3434..ff482fb 100644 (file)
@@ -1,3 +1,9 @@
+2006-11-15  Paolo Bonzini  <bonzini@gnu.org>
+
+       PR middle-end/29753
+       * gimplify.c (fold_indirect_ref_rhs): Use
+       STRIP_USELESS_TYPE_CONVERSION rather than STRIP_NOPS.
+
 2006-11-14  Richard Earnshaw  <rearnsha@arm.com>
 
        * expmed.c (emit_store_flag_1): New function.
index 13c5f48..ab2efac 100644 (file)
@@ -3212,7 +3212,7 @@ fold_indirect_ref_rhs (tree t)
   tree sub = t;
   tree subtype;
 
-  STRIP_NOPS (sub);
+  STRIP_USELESS_TYPE_CONVERSION (sub);
   subtype = TREE_TYPE (sub);
   if (!POINTER_TYPE_P (subtype))
     return NULL_TREE;