aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/gimplify.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 81f3434..ff482fb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index 13c5f48..ab2efac 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -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;