+2014-10-14 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/63512
+ * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
+ modified.
+
2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
PR target/63260
+2014-10-14 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/63512
+ * g++.dg/torture/pr63512.C: New testcase.
+
2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
PR target/63260
--- /dev/null
+// { dg-do compile }
+
+extern "C" {
+void __assert_fail ();
+unsigned long strlen (const char *);
+}
+class A
+{
+ int Data;
+ int Length;
+
+public:
+ A (const char *p1) : Data ()
+ {
+ p1 ? void() : __assert_fail ();
+ Length = strlen (p1);
+ }
+};
+enum TokenKind
+{
+ semi
+};
+class B
+{
+public:
+ void m_fn1 ();
+};
+class C
+{
+ void m_fn2 (TokenKind, int, A);
+ struct D
+ {
+ D (int);
+ B Range;
+ };
+ int *m_fn3 (const int &, int &, int **);
+};
+int a, b;
+int *
+C::m_fn3 (const int &, int &, int **)
+{
+ D c (0);
+ if (a)
+ c.Range.m_fn1 ();
+ m_fn2 (semi, 0, b ? "" : a ? "alias declaration" : "using declaration");
+}
}
gimple_set_vuse (stmt, BB_LIVE_VOP_ON_EXIT (block));
+ gimple_set_modified (stmt, true);
}
gimple_seq_add_seq (stmts, forced_stmts);
}
name = make_temp_ssa_name (exprtype, NULL, "pretmp");
newstmt = gimple_build_assign (name, folded);
gimple_set_vuse (newstmt, BB_LIVE_VOP_ON_EXIT (block));
+ gimple_set_modified (newstmt, true);
gimple_set_plf (newstmt, NECESSARY, false);
gimple_seq_add_stmt (stmts, newstmt);