2016-01-07 Jakub Jelinek <jakub@redhat.com>
+ PR tree-optimization/69141
+ * tree-ssa-pre.c: Include langhooks.h.
+ (eliminate_dom_walker::before_dom_children): Use
+ lang_hooks.decl_printable_name instead of
+ cgraph_node::get ()->name ().
+
PR middle-end/68960
* gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
it and DECL_ALIGN too.
+2016-01-07 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/69141
+ * g++.dg/opt/pr69141.C: New test.
+
2016-01-06 Eric Botcazou <ebotcazou@adacore.com>
* gcc.target/sparc/20151219-1.c: Skip in 64-bit mode.
--- /dev/null
+// PR tree-optimization/69141
+// { dg-do compile }
+// { dg-options "-O2 -fdump-tree-fre" }
+
+struct B
+{
+ B *b;
+ B ();
+ virtual void f () = 0;
+};
+
+B::B () : b (this)
+{
+ b->f ();
+}
#include "tree-ssa-propagate.h"
#include "ipa-utils.h"
#include "tree-cfgcleanup.h"
+#include "langhooks.h"
/* TODO:
dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, loc,
"converting indirect call to "
"function %s\n",
- cgraph_node::get (fn)->name ());
+ lang_hooks.decl_printable_name (fn, 2));
}
gimple_call_set_fndecl (call_stmt, fn);
maybe_remove_unused_call_args (cfun, call_stmt);