PR tree-optimization/21171
* tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not
record address uses if the reference is volatile.
* gcc.dg/tree-ssa/pr21171.c: New test.
From-SVN: r100895
+2005-06-08 Zdenek Dvorak <dvorakz@suse.cz>
+
+ PR tree-optimization/21171
+ * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not
+ record address uses if the reference is volatile.
+
2005-06-08 Eric Botcazou <ebotcazou@libertysurf.fr>
PR target/21889
+2005-06-08 Zdenek Dvorak <dvorakz@suse.cz>
+
+ PR tree-optimization/21171
+ * gcc.dg/tree-ssa/pr21171.c: New test.
+
2005-06-08 Eric Botcazou <ebotcazou@libertysurf.fr>
* gcc.dg/tls/debug-1.c: New test.
struct iv *civ;
struct ifs_ivopts_data ifs_ivopts_data;
+ /* Do not play with volatile memory references. A bit too conservative,
+ perhaps, but safe. */
+ if (stmt_ann (stmt)->has_volatile_ops)
+ goto fail;
+
/* Ignore bitfields for now. Not really something terribly complicated
to handle. TODO. */
if (TREE_CODE (base) == COMPONENT_REF