PR tree-optimization/53085
* tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
stores.
* g++.dg/torture/pr53085.C: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@186765
138bc75d-0d04-0410-961f-
82ee72b054a4
+2012-04-24 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/53085
+ * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
+ stores.
+
2012-04-24 Jakub Jelinek <jakub@redhat.com>
PR middle-end/53084
+2012-04-24 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/53085
+ * g++.dg/torture/pr53085.C: New testcase.
+
2012-04-23 Richard Guenther <rguenther@suse.de>
PR c/53060
--- /dev/null
+// { dg-do compile }
+// { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } { "" } }
+// { dg-options "-fdump-tree-optimized" }
+
+class aa{
+ void f();
+private:
+ volatile int a;
+};
+
+void aa::f(){
+ a=1;
+ a=1;
+}
+
+// { dg-final { scan-tree-dump-times "a ={v} 1;" 2 "optimized" } }
+// { dg-final { cleanup-tree-dump "optimized" } }
has the same value number as its rhs. If so, the store is
dead. */
else if (gimple_assign_single_p (stmt)
+ && !gimple_has_volatile_ops (stmt)
&& !is_gimple_reg (gimple_assign_lhs (stmt))
&& (TREE_CODE (rhs) == SSA_NAME
|| is_gimple_min_invariant (rhs)))