Commit fec64afc by Jakub Jelinek Committed by Jakub Jelinek

re PR tree-optimization/69141 (-O2 -fdump-tree-fre ICEs)

	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 ().

	* g++.dg/opt/pr69141.C: New test.

From-SVN: r232123
parent 8fc708b7
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.
......
// 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 ();
}
......@@ -52,6 +52,7 @@ along with GCC; see the file COPYING3. If not see
#include "tree-ssa-propagate.h"
#include "ipa-utils.h"
#include "tree-cfgcleanup.h"
#include "langhooks.h"
/* TODO:
......@@ -4328,7 +4329,7 @@ eliminate_dom_walker::before_dom_children (basic_block b)
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment