From d6cfd93133a6b3c3b32d98c6087e90c6b6be2685 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 15 Nov 2006 08:07:03 +0000 Subject: [PATCH] re PR tree-optimization/29753 (Volatile semantics ignored in some cases) 2006-11-15 Paolo Bonzini PR middle-end/29753 * gimplify.c (fold_indirect_ref_rhs): Use STRIP_USELESS_TYPE_CONVERSION rather than STRIP_NOPS. From-SVN: r118845 --- gcc/ChangeLog | 6 ++++++ gcc/gimplify.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 81f343422347..ff482fb68a24 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2006-11-15 Paolo Bonzini + + PR middle-end/29753 + * gimplify.c (fold_indirect_ref_rhs): Use + STRIP_USELESS_TYPE_CONVERSION rather than STRIP_NOPS. + 2006-11-14 Richard Earnshaw * expmed.c (emit_store_flag_1): New function. diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 13c5f48d1124..ab2efac5adb2 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; -- 2.47.2