From: Paolo Bonzini Date: Wed, 15 Nov 2006 08:07:03 +0000 (+0000) Subject: re PR tree-optimization/29753 (Volatile semantics ignored in some cases) X-Git-Tag: releases/gcc-4.3.0~8458 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6cfd93133a6b3c3b32d98c6087e90c6b6be2685;p=thirdparty%2Fgcc.git 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 --- 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;