re PR tree-optimization/29753 (Volatile semantics ignored in some cases)
authorPaolo Bonzini <bonzini@gnu.org>
Wed, 15 Nov 2006 08:07:03 +0000 (08:07 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 15 Nov 2006 08:07:03 +0000 (08:07 +0000)
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.

From-SVN: r118845

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;