ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and mention gcc_unreachabl...
authorMartin Jambor <mjambor@suse.cz>
Thu, 3 Apr 2014 09:35:41 +0000 (11:35 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Thu, 3 Apr 2014 09:35:41 +0000 (11:35 +0200)
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

gcc/ChangeLog
gcc/ipa-cp.c
gcc/ipa.c

index a566a0f..20447da 100644 (file)
@@ -1,3 +1,10 @@
+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>
 
        PR ipa/60659
index 05de857..689378a 100644 (file)
@@ -884,8 +884,9 @@ ipcp_verify_propagated_values (void)
            {
              if (dump_file)
                {
+                 dump_symtab (dump_file);
                  fprintf (dump_file, "\nIPA lattices after constant "
-                          "propagation:\n");
+                          "propagation, before gcc_unreachable:\n");
                  print_all_lattices (dump_file, true, false);
                }
 
index d230312..435fff0 100644 (file)
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -469,7 +469,7 @@ symtab_remove_unreachable_nodes (bool before_inlining_p, FILE *file)
       if (!node->aux)
        {
          if (file)
-           fprintf (file, " %s", node->name ());
+           fprintf (file, " %s/%i", node->name (), node->order);
          cgraph_remove_node (node);
          changed = true;
        }
@@ -483,7 +483,7 @@ symtab_remove_unreachable_nodes (bool before_inlining_p, FILE *file)
          if (node->definition)
            {
              if (file)
-               fprintf (file, " %s", node->name ());
+               fprintf (file, " %s/%i", node->name (), node->order);
              node->body_removed = true;
              node->analyzed = false;
              node->definition = false;
@@ -531,7 +531,7 @@ symtab_remove_unreachable_nodes (bool before_inlining_p, FILE *file)
          && (!flag_ltrans || !DECL_EXTERNAL (vnode->decl)))
        {
          if (file)
-           fprintf (file, " %s", vnode->name ());
+           fprintf (file, " %s/%i", vnode->name (), vnode->order);
          varpool_remove_node (vnode);
          changed = true;
        }