2014-12-12 Richard Biener <rguenther@suse.de>
PR middle-end/64280
* tree-cfg.c (replace_uses_by): Guard assert properly.
* g++.dg/torture/pr64280.C: New testcase.
From-SVN: r218668
+2014-12-12 Richard Biener <rguenther@suse.de>
+
+ PR middle-end/64280
+ * tree-cfg.c (replace_uses_by): Guard assert properly.
+
2014-12-12 Anthony Green <green@moxielogic.com>
* config/moxie/moxie.md: Add use of zex instruction.
+2014-12-12 Richard Biener <rguenther@suse.de>
+
+ PR middle-end/64280
+ * g++.dg/torture/pr64280.C: New testcase.
+
2014-12-12 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/64255
--- /dev/null
+// { dg-do compile }
+
+class A
+{
+public:
+ A ();
+};
+class B
+{
+public:
+ B (int);
+ operator void *() { return m_fn1 () ? 0 : this; }
+ int m_fn1 ();
+};
+typedef int jmp_buf[];
+struct C
+{
+ jmp_buf cond_;
+};
+class F
+{
+ C what_;
+ bool m_fn2 ();
+};
+int _setjmp (int[]);
+void longjmp ();
+class D
+{
+public:
+ D () { longjmp (); }
+};
+bool
+F::m_fn2 ()
+{
+ B a (0);
+ if (a)
+ if (_setjmp (what_.cond_))
+ return 0;
+ else
+ D ();
+ A b;
+}
{
e = gimple_phi_arg_edge (as_a <gphi *> (stmt),
PHI_ARG_INDEX_FROM_USE (use));
- if (e->flags & EDGE_ABNORMAL)
+ if (e->flags & EDGE_ABNORMAL
+ && !SSA_NAME_OCCURS_IN_ABNORMAL_PHI (val))
{
/* This can only occur for virtual operands, since
for the real ones SSA_NAME_OCCURS_IN_ABNORMAL_PHI (name))