Commit 5bed50e8 by Martin Jambor Committed by Martin Jambor

ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and mention…

ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and mention gcc_unreachable before failing.

2014-04-03  Martin Jambor  <mjambor@suse.cz>

	* ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
	mention gcc_unreachable before failing.
	* ipa.c (symtab_remove_unreachable_nodes): Also print order of
	removed symbols.

From-SVN: r209052
parent 3e86c6a8
2014-04-03 Martin Jambor <mjambor@suse.cz>
* ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
mention gcc_unreachable before failing.
* ipa.c (symtab_remove_unreachable_nodes): Also print order of
removed symbols.
2014-04-02 Jan Hubicka <hubicka@ucw.cz> 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
PR ipa/60659 PR ipa/60659
......
...@@ -884,8 +884,9 @@ ipcp_verify_propagated_values (void) ...@@ -884,8 +884,9 @@ ipcp_verify_propagated_values (void)
{ {
if (dump_file) if (dump_file)
{ {
dump_symtab (dump_file);
fprintf (dump_file, "\nIPA lattices after constant " fprintf (dump_file, "\nIPA lattices after constant "
"propagation:\n"); "propagation, before gcc_unreachable:\n");
print_all_lattices (dump_file, true, false); print_all_lattices (dump_file, true, false);
} }
......
...@@ -469,7 +469,7 @@ symtab_remove_unreachable_nodes (bool before_inlining_p, FILE *file) ...@@ -469,7 +469,7 @@ symtab_remove_unreachable_nodes (bool before_inlining_p, FILE *file)
if (!node->aux) if (!node->aux)
{ {
if (file) if (file)
fprintf (file, " %s", node->name ()); fprintf (file, " %s/%i", node->name (), node->order);
cgraph_remove_node (node); cgraph_remove_node (node);
changed = true; changed = true;
} }
...@@ -483,7 +483,7 @@ symtab_remove_unreachable_nodes (bool before_inlining_p, FILE *file) ...@@ -483,7 +483,7 @@ symtab_remove_unreachable_nodes (bool before_inlining_p, FILE *file)
if (node->definition) if (node->definition)
{ {
if (file) if (file)
fprintf (file, " %s", node->name ()); fprintf (file, " %s/%i", node->name (), node->order);
node->body_removed = true; node->body_removed = true;
node->analyzed = false; node->analyzed = false;
node->definition = false; node->definition = false;
...@@ -531,7 +531,7 @@ symtab_remove_unreachable_nodes (bool before_inlining_p, FILE *file) ...@@ -531,7 +531,7 @@ symtab_remove_unreachable_nodes (bool before_inlining_p, FILE *file)
&& (!flag_ltrans || !DECL_EXTERNAL (vnode->decl))) && (!flag_ltrans || !DECL_EXTERNAL (vnode->decl)))
{ {
if (file) if (file)
fprintf (file, " %s", vnode->name ()); fprintf (file, " %s/%i", vnode->name (), vnode->order);
varpool_remove_node (vnode); varpool_remove_node (vnode);
changed = true; changed = true;
} }
......
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