Use cgraph_node::dump_{asm_},name where possible.
authorMartin Liska <mliska@suse.cz>
Wed, 8 Jan 2020 15:30:24 +0000 (16:30 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 8 Jan 2020 15:30:24 +0000 (15:30 +0000)
2020-01-08  Martin Liska  <mliska@suse.cz>

* cgraph.c (cgraph_node::dump): Use ::dump_name or
::dump_asm_name instead of (::name or ::asm_name).
* cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
* cgraphunit.c (walk_polymorphic_call_targets): Likewise.
(analyze_functions): Likewise.
(expand_all_functions): Likewise.
* ipa-cp.c (ipcp_cloning_candidate_p): Likewise.
(propagate_bits_across_jump_function): Likewise.
(dump_profile_updates): Likewise.
(ipcp_store_bits_results): Likewise.
(ipcp_store_vr_results): Likewise.
* ipa-devirt.c (dump_targets): Likewise.
* ipa-fnsummary.c (analyze_function_body): Likewise.
* ipa-hsa.c (check_warn_node_versionable): Likewise.
(process_hsa_functions): Likewise.
* ipa-icf.c (sem_item_optimizer::merge_classes): Likewise.
(set_alias_uids): Likewise.
* ipa-inline-transform.c (save_inline_function_body): Likewise.
* ipa-inline.c (recursive_inlining): Likewise.
(inline_to_all_callers_1): Likewise.
(ipa_inline): Likewise.
* ipa-profile.c (ipa_propagate_frequency_1): Likewise.
(ipa_propagate_frequency): Likewise.
* ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
(remove_described_reference): Likewise.
* ipa-pure-const.c (worse_state): Likewise.
(check_retval_uses): Likewise.
(analyze_function): Likewise.
(propagate_pure_const): Likewise.
(propagate_nothrow): Likewise.
(dump_malloc_lattice): Likewise.
(propagate_malloc): Likewise.
(pass_local_pure_const::execute): Likewise.
* ipa-visibility.c (optimize_weakref): Likewise.
(function_and_variable_visibility): Likewise.
* ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
(ipa_discover_variable_flags): Likewise.
* lto-streamer-out.c (output_function): Likewise.
(output_constructor): Likewise.
* tree-inline.c (copy_bb): Likewise.
* tree-ssa-structalias.c (ipa_pta_execute): Likewise.
* varpool.c (symbol_table::remove_unreferenced_decls): Likewise.
2020-01-08  Martin Liska  <mliska@suse.cz>

* lto-partition.c (add_symbol_to_partition_1): Use ::dump_name or
::dump_asm_name instead of (::name or ::asm_name).
(lto_balanced_map): Likewise.
(promote_symbol): Likewise.
(rename_statics): Likewise.
* lto.c (lto_wpa_write_files): Likewise.
2020-01-08  Martin Liska  <mliska@suse.cz>

* gcc.dg/ipa/ipa-icf-1.c: Update expected scanned output.
* gcc.dg/ipa/ipa-icf-10.c: Likewise.
* gcc.dg/ipa/ipa-icf-11.c: Likewise.
* gcc.dg/ipa/ipa-icf-12.c: Likewise.
* gcc.dg/ipa/ipa-icf-13.c: Likewise.
* gcc.dg/ipa/ipa-icf-16.c: Likewise.
* gcc.dg/ipa/ipa-icf-18.c: Likewise.
* gcc.dg/ipa/ipa-icf-2.c: Likewise.
* gcc.dg/ipa/ipa-icf-20.c: Likewise.
* gcc.dg/ipa/ipa-icf-21.c: Likewise.
* gcc.dg/ipa/ipa-icf-23.c: Likewise.
* gcc.dg/ipa/ipa-icf-25.c: Likewise.
* gcc.dg/ipa/ipa-icf-26.c: Likewise.
* gcc.dg/ipa/ipa-icf-27.c: Likewise.
* gcc.dg/ipa/ipa-icf-3.c: Likewise.
* gcc.dg/ipa/ipa-icf-35.c: Likewise.
* gcc.dg/ipa/ipa-icf-36.c: Likewise.
* gcc.dg/ipa/ipa-icf-37.c: Likewise.
* gcc.dg/ipa/ipa-icf-38.c: Likewise.
* gcc.dg/ipa/ipa-icf-5.c: Likewise.
* gcc.dg/ipa/ipa-icf-7.c: Likewise.
* gcc.dg/ipa/ipa-icf-8.c: Likewise.
* gcc.dg/ipa/ipa-icf-merge-1.c: Likewise.
* gcc.dg/ipa/pr64307.c: Likewise.
* gcc.dg/ipa/pr90555.c: Likewise.
* gcc.dg/ipa/propmalloc-1.c: Likewise.
* gcc.dg/ipa/propmalloc-2.c: Likewise.
* gcc.dg/ipa/propmalloc-3.c: Likewise.

From-SVN: r280009

52 files changed:
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraphclones.c
gcc/cgraphunit.c
gcc/ipa-cp.c
gcc/ipa-devirt.c
gcc/ipa-fnsummary.c
gcc/ipa-hsa.c
gcc/ipa-icf.c
gcc/ipa-inline-transform.c
gcc/ipa-inline.c
gcc/ipa-profile.c
gcc/ipa-prop.c
gcc/ipa-pure-const.c
gcc/ipa-visibility.c
gcc/ipa.c
gcc/lto-streamer-out.c
gcc/lto/ChangeLog
gcc/lto/lto-partition.c
gcc/lto/lto.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/ipa-icf-1.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-10.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-11.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-12.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-13.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-16.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-18.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-2.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-20.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-21.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-23.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-25.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-26.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-27.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-3.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-35.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-36.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-37.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-38.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-5.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-7.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-8.c
gcc/testsuite/gcc.dg/ipa/ipa-icf-merge-1.c
gcc/testsuite/gcc.dg/ipa/pr64307.c
gcc/testsuite/gcc.dg/ipa/pr90555.c
gcc/testsuite/gcc.dg/ipa/propmalloc-1.c
gcc/testsuite/gcc.dg/ipa/propmalloc-2.c
gcc/testsuite/gcc.dg/ipa/propmalloc-3.c
gcc/tree-inline.c
gcc/tree-ssa-structalias.c
gcc/varpool.c

index b733b56059e932fd6c68528a9315b204e1659543..f960eb4be6820e2187bcac3d024b0ee9954cbeba 100644 (file)
@@ -1,3 +1,48 @@
+2020-01-08  Martin Liska  <mliska@suse.cz>
+
+       * cgraph.c (cgraph_node::dump): Use ::dump_name or
+       ::dump_asm_name instead of (::name or ::asm_name).
+       * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
+       * cgraphunit.c (walk_polymorphic_call_targets): Likewise.
+       (analyze_functions): Likewise.
+       (expand_all_functions): Likewise.
+       * ipa-cp.c (ipcp_cloning_candidate_p): Likewise.
+       (propagate_bits_across_jump_function): Likewise.
+       (dump_profile_updates): Likewise.
+       (ipcp_store_bits_results): Likewise.
+       (ipcp_store_vr_results): Likewise.
+       * ipa-devirt.c (dump_targets): Likewise.
+       * ipa-fnsummary.c (analyze_function_body): Likewise.
+       * ipa-hsa.c (check_warn_node_versionable): Likewise.
+       (process_hsa_functions): Likewise.
+       * ipa-icf.c (sem_item_optimizer::merge_classes): Likewise.
+       (set_alias_uids): Likewise.
+       * ipa-inline-transform.c (save_inline_function_body): Likewise.
+       * ipa-inline.c (recursive_inlining): Likewise.
+       (inline_to_all_callers_1): Likewise.
+       (ipa_inline): Likewise.
+       * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
+       (ipa_propagate_frequency): Likewise.
+       * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
+       (remove_described_reference): Likewise.
+       * ipa-pure-const.c (worse_state): Likewise.
+       (check_retval_uses): Likewise.
+       (analyze_function): Likewise.
+       (propagate_pure_const): Likewise.
+       (propagate_nothrow): Likewise.
+       (dump_malloc_lattice): Likewise.
+       (propagate_malloc): Likewise.
+       (pass_local_pure_const::execute): Likewise.
+       * ipa-visibility.c (optimize_weakref): Likewise.
+       (function_and_variable_visibility): Likewise.
+       * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
+       (ipa_discover_variable_flags): Likewise.
+       * lto-streamer-out.c (output_function): Likewise.
+       (output_constructor): Likewise.
+       * tree-inline.c (copy_bb): Likewise.
+       * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
+       * varpool.c (symbol_table::remove_unreferenced_decls): Likewise.
+
 2020-01-08  Richard Biener  <rguenther@suse.de>
 
        PR middle-end/93199
index aa2c476842a0db9511f9bfba760fd93013e5e065..bd9e5a172887d47cb2d9a40501f1291e25e8bef1 100644 (file)
@@ -1948,7 +1948,7 @@ cgraph_node::dump (FILE *f)
   if (tp_first_run > 0)
     fprintf (f, " first_run:%" PRId64, (int64_t) tp_first_run);
   if (origin)
-    fprintf (f, " nested in:%s", origin->asm_name ());
+    fprintf (f, " nested in:%s", origin->dump_asm_name ());
   if (gimple_has_body_p (decl))
     fprintf (f, " body");
   if (process)
index bd44063a1acc7840760226d6b4b6f89f41d4bafa..789564ba335107fadd0b195c6a7f49942412be8f 100644 (file)
@@ -1148,8 +1148,7 @@ symbol_table::materialize_all_clones (void)
                  if (symtab->dump_file)
                    {
                      fprintf (symtab->dump_file, "cloning %s to %s\n",
-                              xstrdup_for_dump (node->clone_of->name ()),
-                              xstrdup_for_dump (node->name ()));
+                              node->clone_of->dump_name (), node->name ());
                      if (node->clone.tree_map)
                        {
                          unsigned int i;
index 6201444694cc7f8762142682170dabe72cc5acf3..c4ddc61c4d6296fba46d54861711afa80fe8bcb9 100644 (file)
@@ -1020,7 +1020,8 @@ walk_polymorphic_call_targets (hash_set<void *> *reachable_call_targets,
             {
              dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, edge->call_stmt,
                               "devirtualizing call in %s to %s\n",
-                              edge->caller->name (), target->name ());
+                              edge->caller->dump_name (),
+                              target->dump_name ());
            }
 
          edge->make_direct (target);
@@ -1167,7 +1168,7 @@ analyze_functions (bool first_time)
                fprintf (symtab->dump_file, "Trivially needed symbols:");
              changed = true;
              if (symtab->dump_file)
-               fprintf (symtab->dump_file, " %s", node->asm_name ());
+               fprintf (symtab->dump_file, " %s", node->dump_asm_name ());
              if (!changed && symtab->dump_file)
                fprintf (symtab->dump_file, "\n");
            }
@@ -1324,7 +1325,7 @@ analyze_functions (bool first_time)
       if (!node->aux && !node->referred_to_p ())
        {
          if (symtab->dump_file)
-           fprintf (symtab->dump_file, " %s", node->name ());
+           fprintf (symtab->dump_file, " %s", node->dump_name ());
 
          /* See if the debugger can use anything before the DECL
             passes away.  Perhaps it can notice a DECL that is now a
@@ -2436,7 +2437,7 @@ expand_all_functions (void)
          if (symtab->dump_file)
            fprintf (symtab->dump_file,
                     "Time profile order in expand_all_functions:%s:%d\n",
-                    node->asm_name (), node->tp_first_run);
+                    node->dump_asm_name (), node->tp_first_run);
          node->process = 0;
          node->expand ();
        }
index 1163198629384a8f7f7c7cd7e61ddf467bb52862..7515a9504f601d22222fd87fb71fb783b13f1a90 100644 (file)
@@ -717,7 +717,7 @@ ipcp_cloning_candidate_p (struct cgraph_node *node)
       if (dump_file)
        fprintf (dump_file, "Not considering %s for cloning; "
                 "-fipa-cp-clone disabled.\n",
-                node->name ());
+                node->dump_name ());
       return false;
     }
 
@@ -726,7 +726,7 @@ ipcp_cloning_candidate_p (struct cgraph_node *node)
       if (dump_file)
        fprintf (dump_file, "Not considering %s for cloning; "
                 "optimizing it for size.\n",
-                node->name ());
+                node->dump_name ());
       return false;
     }
 
@@ -737,7 +737,7 @@ ipcp_cloning_candidate_p (struct cgraph_node *node)
     {
       if (dump_file)
        fprintf (dump_file, "Considering %s for cloning; code might shrink.\n",
-                node->name ());
+                node->dump_name ());
       return true;
     }
 
@@ -751,7 +751,7 @@ ipcp_cloning_candidate_p (struct cgraph_node *node)
          if (dump_file)
            fprintf (dump_file, "Considering %s for cloning; "
                     "usually called directly.\n",
-                    node->name ());
+                    node->dump_name ());
          return true;
        }
     }
@@ -759,12 +759,12 @@ ipcp_cloning_candidate_p (struct cgraph_node *node)
     {
       if (dump_file)
        fprintf (dump_file, "Not considering %s for cloning; no hot calls.\n",
-                node->name ());
+                node->dump_name ());
       return false;
     }
   if (dump_file)
     fprintf (dump_file, "Considering %s for cloning.\n",
-            node->name ());
+            node->dump_name ());
   return true;
 }
 
@@ -2292,7 +2292,7 @@ propagate_bits_across_jump_function (cgraph_edge *cs, int idx,
       if (dump_file && (dump_flags & TDF_DETAILS))
        fprintf (dump_file, "Setting dest_lattice to bottom, because type of "
                 "param %i of %s is NULL or unsuitable for bits propagation\n",
-                idx, cs->callee->name ());
+                idx, cs->callee->dump_name ());
 
       return dest_lattice->set_to_bottom ();
     }
@@ -4246,7 +4246,7 @@ dump_profile_updates (struct cgraph_node *orig_node,
   for (cs = new_node->callees; cs; cs = cs->next_callee)
     {
       fprintf (dump_file, "      edge to %s has count ",
-              cs->callee->name ());
+              cs->callee->dump_name ());
       cs->count.dump (dump_file);
       fprintf (dump_file, "\n");
     }
@@ -4257,7 +4257,7 @@ dump_profile_updates (struct cgraph_node *orig_node,
   for (cs = orig_node->callees; cs; cs = cs->next_callee)
     {
       fprintf (dump_file, "      edge to %s is left with ",
-              cs->callee->name ());
+              cs->callee->dump_name ());
       cs->count.dump (dump_file);
       fprintf (dump_file, "\n");
     }
@@ -5675,7 +5675,7 @@ ipcp_store_bits_results (void)
          if (dump_file)
            fprintf (dump_file, "Not considering %s for ipa bitwise propagation "
                                "; -fipa-bit-cp: disabled.\n",
-                               node->name ());
+                               node->dump_name ());
          continue;
        }
 
@@ -5751,7 +5751,7 @@ ipcp_store_vr_results (void)
          if (dump_file)
            fprintf (dump_file, "Not considering %s for VR discovery "
                     "and propagate; -fipa-ipa-vrp: disabled.\n",
-                    node->name ());
+                    node->dump_name ());
          continue;
        }
 
index 21832cbfc979f873cecc07c0c8d8ae75052c2d26..b888186134c71bd10923e6b2da59f5cbf856f0ba 100644 (file)
@@ -3350,8 +3350,7 @@ dump_targets (FILE *f, vec <cgraph_node *> targets, bool verbose)
       char *name = NULL;
       if (in_lto_p)
        name = cplus_demangle_v3 (targets[i]->asm_name (), 0);
-      fprintf (f, " %s/%i", name ? name : targets[i]->name (),
-              targets[i]->order);
+      fprintf (f, " %s", name ? name : targets[i]->dump_name ());
       if (in_lto_p)
        free (name);
       if (!targets[i]->definition)
index 7c0b6f98e2571931ced4378c3ce752d4b03ab100..ce2c251693d2f8a1efd98ce877bbbde9eebf1cf1 100644 (file)
@@ -2460,7 +2460,7 @@ analyze_function_body (struct cgraph_node *node, bool early)
 
   if (dump_file)
     fprintf (dump_file, "\nAnalyzing function body size: %s\n",
-            node->name ());
+            node->dump_name ());
 
   /* When we run into maximal number of entries, we assign everything to the
      constant truth case.  Be sure to have it in list. */
index 7ecb13299ae61002227b5eb56dcfe76da3d330cd..f2980ba36885d678ff31810037ffcf2c18993a2d 100644 (file)
@@ -56,7 +56,7 @@ check_warn_node_versionable (cgraph_node *node)
     {
       warning_at (EXPR_LOCATION (node->decl), OPT_Whsa,
                  "could not emit HSAIL for function %s: function cannot be "
-                 "cloned", node->name ());
+                 "cloned", node->dump_name ());
       return false;
     }
   return true;
@@ -98,7 +98,7 @@ process_hsa_functions (void)
 
          if (dump_file)
            fprintf (dump_file, "Created a new HSA clone: %s, type: %s\n",
-                    clone->name (),
+                    clone->dump_name (),
                     s->m_kind == HSA_KERNEL ? "kernel" : "function");
        }
       else if (hsa_callable_function_p (node->decl)
@@ -120,7 +120,7 @@ process_hsa_functions (void)
 
          if (dump_file)
            fprintf (dump_file, "Created a new HSA function clone: %s\n",
-                    clone->name ());
+                    clone->dump_name ());
        }
     }
 
@@ -141,8 +141,8 @@ process_hsa_functions (void)
                  if (dump_file)
                    fprintf (dump_file,
                             "Redirecting edge to HSA function: %s->%s\n",
-                            xstrdup_for_dump (e->caller->name ()),
-                            xstrdup_for_dump (e->callee->name ()));
+                            e->caller->dump_name (),
+                            e->callee->dump_name ());
                }
            }
 
index 2f9fd06ee55c9f6f26bcfcb0f823539227c7552c..17a0ed9760bf2e339f6906091057c26cb1351fe3 100644 (file)
@@ -3322,12 +3322,12 @@ sem_item_optimizer::merge_classes (unsigned int prev_class_count,
              {
                dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, loc,
                                 "Semantic equality hit:%s->%s\n",
-                                xstrdup_for_dump (source->node->name ()),
-                                xstrdup_for_dump (alias->node->name ()));
+                                source->node->dump_name (),
+                                alias->node->dump_name ());
                dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, loc,
                                 "Assembler symbol names:%s->%s\n",
-                                xstrdup_for_dump (source->node->asm_name ()),
-                                xstrdup_for_dump (alias->node->asm_name ()));
+                                source->node->dump_asm_name (),
+                                alias->node->dump_asm_name ());
              }
 
            if (lookup_attribute ("no_icf", DECL_ATTRIBUTES (alias->decl)))
@@ -3390,7 +3390,7 @@ set_alias_uids (symtab_node *n, int uid)
     {
       if (dump_file)
        fprintf (dump_file, "  Setting points-to UID of [%s] as %d\n",
-                xstrdup_for_dump (ref->referring->asm_name ()), uid);
+                ref->referring->dump_asm_name (), uid);
 
       SET_DECL_PT_UID (ref->referring->decl, uid);
       set_alias_uids (ref->referring, uid);
index c53cd423b756506a05d6edd8d2abb8f4a497ef2d..1fe5a5c1c5a809c452f832f33253d0b013fabaf3 100644 (file)
@@ -553,7 +553,7 @@ save_inline_function_body (struct cgraph_node *node)
 
   if (dump_file)
     fprintf (dump_file, "\nSaving body of %s for later reuse\n",
-            node->name ());
+            node->dump_name ());
  
   gcc_assert (node == cgraph_node::get (node->decl));
 
index 3b68fc47d013d73a9ab1127bbb8b724813bfac42..2a3f31e03a2668af5e9f2c0961b661fcc65d8112 100644 (file)
@@ -1611,8 +1611,7 @@ recursive_inlining (struct cgraph_edge *edge,
 
   if (dump_file)
     fprintf (dump_file,
-            "  Performing recursive inlining on %s\n",
-            node->name ());
+            "  Performing recursive inlining on %s\n", node->dump_name ());
 
   /* Do the inlining and update list of recursive call during process.  */
   while (!heap.empty ())
@@ -2396,11 +2395,11 @@ inline_to_all_callers_1 (struct cgraph_node *node, void *data,
          cgraph_node *ultimate = node->ultimate_alias_target ();
          fprintf (dump_file,
                   "\nInlining %s size %i.\n",
-                  ultimate->name (),
+                  ultimate->dump_name (),
                   ipa_size_summaries->get (ultimate)->size);
          fprintf (dump_file,
                   " Called once from %s %i insns.\n",
-                  node->callers->caller->name (),
+                  node->callers->caller->dump_name (),
                   ipa_size_summaries->get (node->callers->caller)->size);
        }
 
@@ -2411,7 +2410,7 @@ inline_to_all_callers_1 (struct cgraph_node *node, void *data,
       if (dump_file)
        fprintf (dump_file,
                 " Inlined into %s which now has %i size\n",
-                caller->name (),
+                caller->dump_name (),
                 ipa_size_summaries->get (caller)->size);
       if (!(*num_calls)--)
        {
@@ -2671,7 +2670,7 @@ ipa_inline (void)
         try to flatten itself turning it into a self-recursive
         function.  */
       if (dump_file)
-       fprintf (dump_file, "Flattening %s\n", node->name ());
+       fprintf (dump_file, "Flattening %s\n", node->dump_name ());
       flatten_function (node, false, true);
     }
 
index b2b272e33652688f15071544c0f6a5303c429f3d..017f63e80a30f8064657813c43a08a3422c4c2a7 100644 (file)
@@ -340,7 +340,7 @@ ipa_propagate_frequency_1 (struct cgraph_node *node, void *data)
          {
            if (dump_file && (dump_flags & TDF_DETAILS))
              fprintf (dump_file, "  Called by %s that is executed once\n",
-                      edge->caller->name ());
+                      edge->caller->dump_name ());
            d->maybe_unlikely_executed = false;
            ipa_call_summary *s = ipa_call_summaries->get (edge);
            if (s != NULL && s->loop_depth)
@@ -355,7 +355,7 @@ ipa_propagate_frequency_1 (struct cgraph_node *node, void *data)
        case NODE_FREQUENCY_NORMAL:
          if (dump_file && (dump_flags & TDF_DETAILS))
            fprintf (dump_file, "  Called by %s that is normal or hot\n",
-                    edge->caller->name ());
+                    edge->caller->dump_name ());
          d->maybe_unlikely_executed = false;
          d->maybe_executed_once = false;
          break;
@@ -399,7 +399,7 @@ ipa_propagate_frequency (struct cgraph_node *node)
     return false;
   gcc_assert (node->analyzed);
   if (dump_file && (dump_flags & TDF_DETAILS))
-    fprintf (dump_file, "Processing frequency %s\n", node->name ());
+    fprintf (dump_file, "Processing frequency %s\n", node->dump_name ());
 
   node->call_for_symbol_and_aliases (ipa_propagate_frequency_1, &d,
                                     true);
@@ -410,7 +410,7 @@ ipa_propagate_frequency (struct cgraph_node *node)
        node->only_called_at_startup = true;
        if (dump_file)
          fprintf (dump_file, "Node %s promoted to only called at startup.\n",
-                 node->name ());
+                 node->dump_name ());
        changed = true;
     }
   if ((d.only_called_at_exit && !d.only_called_at_startup)
@@ -419,7 +419,7 @@ ipa_propagate_frequency (struct cgraph_node *node)
        node->only_called_at_exit = true;
        if (dump_file)
          fprintf (dump_file, "Node %s promoted to only called at exit.\n",
-                 node->name ());
+                 node->dump_name ());
        changed = true;
     }
 
@@ -438,7 +438,7 @@ ipa_propagate_frequency (struct cgraph_node *node)
            {
              if (dump_file)
                fprintf (dump_file, "Node %s promoted to hot.\n",
-                        node->name ());
+                        node->dump_name ());
              node->frequency = NODE_FREQUENCY_HOT;
              return true;
            }
@@ -448,7 +448,7 @@ ipa_propagate_frequency (struct cgraph_node *node)
        {
          if (dump_file)
            fprintf (dump_file, "Node %s reduced to normal.\n",
-                    node->name ());
+                    node->dump_name ());
          node->frequency = NODE_FREQUENCY_NORMAL;
          changed = true;
        }
@@ -462,7 +462,7 @@ ipa_propagate_frequency (struct cgraph_node *node)
       node->frequency = NODE_FREQUENCY_UNLIKELY_EXECUTED;
       if (dump_file)
        fprintf (dump_file, "Node %s promoted to unlikely executed.\n",
-                node->name ());
+                node->dump_name ());
       changed = true;
     }
   else if (d.maybe_executed_once && node->frequency != NODE_FREQUENCY_EXECUTED_ONCE)
@@ -470,7 +470,7 @@ ipa_propagate_frequency (struct cgraph_node *node)
       node->frequency = NODE_FREQUENCY_EXECUTED_ONCE;
       if (dump_file)
        fprintf (dump_file, "Node %s promoted to executed once.\n",
-                node->name ());
+                node->dump_name ());
       changed = true;
     }
   return changed;
index 035730d180d7950493b94626bbc5f8aaf7956240..a6e32a50377ad44630b877ddfd3c1e1a91fd11cd 100644 (file)
@@ -3294,7 +3294,7 @@ ipa_make_edge_direct_to_target (struct cgraph_edge *ie, tree target,
     {
       dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, ie->call_stmt,
                       "converting indirect call in %s to direct call to %s\n",
-                      ie->caller->name (), callee->name ());
+                      ie->caller->dump_name (), callee->dump_name ());
     }
   if (!speculative)
     {
@@ -3489,7 +3489,7 @@ remove_described_reference (symtab_node *symbol, struct ipa_cst_ref_desc *rdesc)
   to_del->remove_reference ();
   if (dump_file)
     fprintf (dump_file, "ipa-prop: Removed a reference from %s to %s.\n",
-            origin->caller->dump_name (), xstrdup_for_dump (symbol->name ()));
+            origin->caller->dump_name (), symbol->dump_name ());
   return true;
 }
 
index 4c3dcf3c64cff5506373fe61de3ac7b1ebb5465e..ccd0918c120c7bd424bca72fb055ac68b099e400 100644 (file)
@@ -500,7 +500,7 @@ worse_state (enum pure_const_state_e *state, bool *looping,
     {
       if (dump_file && (dump_flags & TDF_DETAILS))
        fprintf (dump_file, "Dropping state to PURE because call to %s may not "
-                "bind to current def.\n", to->name ());
+                "bind to current def.\n", to->dump_name ());
       state2 = IPA_PURE;
     }
   *state = MAX (*state, state2);
@@ -874,7 +874,7 @@ check_retval_uses (tree retval, gimple *stmt)
 {  \
   if (dump_file && (dump_flags & TDF_DETAILS))  \
     fprintf (dump_file, "\n%s is not a malloc candidate, reason: %s\n", \
-            (node->name()), (reason));  \
+            (node->dump_name ()), (reason));  \
   return false;  \
 }
 
@@ -1037,7 +1037,7 @@ analyze_function (struct cgraph_node *fn, bool ipa)
   if (dump_file)
     {
       fprintf (dump_file, "\n\n local analysis of %s\n ",
-              fn->name ());
+              fn->dump_name ());
     }
 
   push_cfun (DECL_STRUCT_FUNCTION (decl));
@@ -1657,7 +1657,7 @@ propagate_pure_const (void)
          w->nonfreeing_fn = !can_free;
          if (!can_free && dump_file)
            fprintf (dump_file, "Function found not to call free: %s\n",
-                    w->name ());
+                    w->dump_name ());
 
          if (w_l->state_previously_known != IPA_NEITHER
              && this_state > w_l->state_previously_known)
@@ -1688,7 +1688,7 @@ propagate_pure_const (void)
                    if (dump_file)
                      fprintf (dump_file, "Function found to be %sconst: %s\n",
                               this_looping ? "looping " : "",
-                              w->name ());
+                              w->dump_name ());
                  }
                /* Turning constructor or destructor to non-looping const/pure
                   enables us to possibly remove the function completely.  */
@@ -1703,7 +1703,7 @@ propagate_pure_const (void)
                      fprintf (dump_file,
                               "Declaration updated to be %sconst: %s\n",
                               this_looping ? "looping " : "",
-                              w->name ());
+                              w->dump_name ());
                    remove_p |= has_cdtor;
                  }
                break;
@@ -1715,7 +1715,7 @@ propagate_pure_const (void)
                    if (dump_file)
                      fprintf (dump_file, "Function found to be %spure: %s\n",
                               this_looping ? "looping " : "",
-                              w->name ());
+                              w->dump_name ());
                  }
                if (this_looping)
                  has_cdtor = false;
@@ -1728,7 +1728,7 @@ propagate_pure_const (void)
                      fprintf (dump_file,
                               "Declaration updated to be %spure: %s\n",
                               this_looping ? "looping " : "",
-                              w->name ());
+                              w->dump_name ());
                    remove_p |= has_cdtor;
                  }
                break;
@@ -1844,7 +1844,7 @@ propagate_nothrow (void)
                  w->set_nothrow_flag (true);
                  if (dump_file)
                    fprintf (dump_file, "Function found to be nothrow: %s\n",
-                            w->name ());
+                            w->dump_name ());
                }
            }
          else if (can_throw && !TREE_NOTHROW (w->decl))
@@ -1873,7 +1873,7 @@ dump_malloc_lattice (FILE *dump_file, const char *s)
     {
       funct_state fs = funct_state_summaries->get (node);
       if (fs)
-       fprintf (dump_file, "%s: %s\n", node->name (),
+       fprintf (dump_file, "%s: %s\n", node->dump_name (),
                 malloc_state_names[fs->malloc_state]);
     }
 }
@@ -1970,7 +1970,7 @@ propagate_malloc (void)
          {
            if (dump_file && (dump_flags & TDF_DETAILS))
              fprintf (dump_file, "Function %s found to be malloc\n",
-                      node->name ());
+                      node->dump_name ());
 
            bool malloc_decl_p = DECL_IS_MALLOC (node->decl);
            node->set_malloc_flag (true);
@@ -2199,7 +2199,7 @@ pass_local_pure_const::execute (function *fun)
       changed = true;
       if (dump_file)
        fprintf (dump_file, "Function found to be malloc: %s\n",
-                node->name ());
+                node->dump_name ());
     }
 
   free (l);
index 67d500b759b02f2e46af73dcd3f1d5d4a3194c97..a09282d48250f1213942649a128caccf3da5bd84 100644 (file)
@@ -509,7 +509,7 @@ optimize_weakref (symtab_node *node)
 
   if (dump_file)
     fprintf (dump_file, "Optimizing weakref %s %s\n",
-            node->name(),
+            node->dump_name (),
             static_alias ? "as static alias" : "as transparent alias");
 
   if (static_alias)
@@ -876,17 +876,17 @@ function_and_variable_visibility (bool whole_program)
       fprintf (dump_file, "\nMarking local functions:");
       FOR_EACH_DEFINED_FUNCTION (node)
        if (node->local)
-         fprintf (dump_file, " %s", node->name ());
+         fprintf (dump_file, " %s", node->dump_name ());
       fprintf (dump_file, "\n\n");
       fprintf (dump_file, "\nMarking externally visible functions:");
       FOR_EACH_DEFINED_FUNCTION (node)
        if (node->externally_visible)
-         fprintf (dump_file, " %s", node->name ());
+         fprintf (dump_file, " %s", node->dump_name ());
       fprintf (dump_file, "\n\n");
       fprintf (dump_file, "\nMarking externally visible variables:");
       FOR_EACH_DEFINED_VARIABLE (vnode)
        if (vnode->externally_visible)
-         fprintf (dump_file, " %s", vnode->name ());
+         fprintf (dump_file, " %s", vnode->dump_name ());
       fprintf (dump_file, "\n\n");
     }
   symtab->function_flags_ready = true;
index 6129633b303a0ef397bdc476d7e17e568a91402d..6979c38377d25ad8c2e780d3f95dc834cf12f42f 100644 (file)
--- a/gcc/ipa.c
+++ b/gcc/ipa.c
@@ -616,7 +616,7 @@ symbol_table::remove_unreachable_nodes (FILE *file)
          if (vnode->definition)
            {
              if (file)
-               fprintf (file, " %s", vnode->name ());
+               fprintf (file, " %s", vnode->dump_name ());
              changed = true;
            }
          /* Keep body if it may be useful for constant folding.  */
@@ -649,7 +649,7 @@ symbol_table::remove_unreachable_nodes (FILE *file)
            (has_addr_references_p, NULL, true))
          {
            if (file)
-             fprintf (file, " %s", node->name ());
+             fprintf (file, " %s", node->dump_name ());
            node->address_taken = false;
            changed = true;
            if (node->local_p ()
@@ -794,7 +794,8 @@ ipa_discover_variable_flags (void)
        if (!address_taken)
          {
            if (TREE_ADDRESSABLE (vnode->decl) && dump_file)
-             fprintf (dump_file, " %s (non-addressable)", vnode->name ());
+             fprintf (dump_file, " %s (non-addressable)",
+                      vnode->dump_name ());
            vnode->call_for_symbol_and_aliases (clear_addressable_bit, NULL,
                                                true);
          }
@@ -805,13 +806,13 @@ ipa_discover_variable_flags (void)
            && vnode->get_section () == NULL)
          {
            if (!TREE_READONLY (vnode->decl) && dump_file)
-             fprintf (dump_file, " %s (read-only)", vnode->name ());
+             fprintf (dump_file, " %s (read-only)", vnode->dump_name ());
            vnode->call_for_symbol_and_aliases (set_readonly_bit, NULL, true);
          }
        if (!vnode->writeonly && !read && !address_taken && written)
          {
            if (dump_file)
-             fprintf (dump_file, " %s (write-only)", vnode->name ());
+             fprintf (dump_file, " %s (write-only)", vnode->dump_name ());
            vnode->call_for_symbol_and_aliases (set_writeonly_bit, &remove_p, 
                                                true);
          }
index a3306e01851c2b4af4e1e664a0293f8ba926853e..1faf31c05512ffc5e38a02f5b0ca899242439de7 100644 (file)
@@ -2137,7 +2137,7 @@ output_function (struct cgraph_node *node)
 
   if (streamer_dump_file)
     fprintf (streamer_dump_file, "\nStreaming body of %s\n",
-            node->name ());
+            node->dump_name ());
 
   function = node->decl;
   fn = DECL_STRUCT_FUNCTION (function);
@@ -2211,7 +2211,7 @@ output_function (struct cgraph_node *node)
   destroy_output_block (ob);
   if (streamer_dump_file)
     fprintf (streamer_dump_file, "Finished streaming %s\n",
-            node->name ());
+            node->dump_name ());
 }
 
 /* Output the body of function NODE->DECL.  */
@@ -2224,7 +2224,7 @@ output_constructor (struct varpool_node *node)
 
   if (streamer_dump_file)
     fprintf (streamer_dump_file, "\nStreaming constructor of %s\n",
-            node->name ());
+            node->dump_name ());
 
   timevar_push (TV_IPA_LTO_CTORS_OUT);
   ob = create_output_block (LTO_section_function_body);
@@ -2245,7 +2245,7 @@ output_constructor (struct varpool_node *node)
   destroy_output_block (ob);
   if (streamer_dump_file)
     fprintf (streamer_dump_file, "Finished streaming %s\n",
-            node->name ());
+            node->dump_name ());
   timevar_pop (TV_IPA_LTO_CTORS_OUT);
 }
 
index 233ac37cd785fc0f4268fbd5c7968234a54f4c9b..821a6fa9dc62bb13df8c06b00b99a1466424e477 100644 (file)
@@ -1,3 +1,12 @@
+2020-01-08  Martin Liska  <mliska@suse.cz>
+
+       * lto-partition.c (add_symbol_to_partition_1): Use ::dump_name or
+       ::dump_asm_name instead of (::name or ::asm_name).
+       (lto_balanced_map): Likewise.
+       (promote_symbol): Likewise.
+       (rename_statics): Likewise.
+       * lto.c (lto_wpa_write_files): Likewise.
+
 2020-01-08  Martin Liska  <mliska@suse.cz>
 
        * lto-partition.c (lto_balanced_map): Use symtab_node::dump_name.
index 5b153c9759eff4d9534006fcd7a50eaeb15d427f..3a9990903c77713555c67b51bdd0b7217ab263b9 100644 (file)
@@ -162,7 +162,7 @@ add_symbol_to_partition_1 (ltrans_partition part, symtab_node *node)
       if (dump_file)
        fprintf (dump_file,
                 "Symbol node %s now used in multiple partitions\n",
-                node->name ());
+                node->dump_name ());
     }
   node->aux = (void *)((size_t)node->aux + 1);
 
@@ -515,10 +515,10 @@ lto_balanced_map (int n_lto_partitions, int max_partition_size)
     {
       for (unsigned i = 0; i < order.length (); i++)
        fprintf (dump_file, "Balanced map symbol order:%s:%u\n",
-                order[i]->name (), order[i]->tp_first_run);
+                order[i]->dump_name (), order[i]->tp_first_run);
       for (unsigned i = 0; i < noreorder.length (); i++)
        fprintf (dump_file, "Balanced map symbol no_reorder:%s:%u\n",
-                noreorder[i]->name (), noreorder[i]->tp_first_run);
+                noreorder[i]->dump_name (), noreorder[i]->tp_first_run);
     }
 
   /* Collect all variables that should not be reordered.  */
@@ -995,7 +995,7 @@ promote_symbol (symtab_node *node)
   DECL_VISIBILITY_SPECIFIED (node->decl) = true;
   if (dump_file)
     fprintf (dump_file,
-            "Promoting as hidden: %s (%s)\n", node->name (),
+            "Promoting as hidden: %s (%s)\n", node->dump_name (),
             IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (node->decl)));
 
   /* Promoting a symbol also promotes all transparent aliases with exception
@@ -1079,7 +1079,7 @@ rename_statics (lto_symtab_encoder_t encoder, symtab_node *node)
 
   if (dump_file)
     fprintf (dump_file,
-           "Renaming statics with asm name: %s\n", node->name ());
+           "Renaming statics with asm name: %s\n", node->dump_name ());
 
   /* Assign every symbol in the set that shares the same ASM name an unique
      mangled name.  */
index 350c9e52e306b865b9881ece2ef5069ef6e6303d..39bb5f45c95b1f8dbda1417c27e6cd8ff886937c 100644 (file)
@@ -355,7 +355,7 @@ lto_wpa_write_files (void)
               lsei_next_in_partition (&lsei))
            {
              symtab_node *node = lsei_node (lsei);
-             fprintf (symtab->dump_file, "%s ", node->asm_name ());
+             fprintf (symtab->dump_file, "%s ", node->dump_asm_name ());
            }
          fprintf (symtab->dump_file, "\n  Symbols in boundary: ");
          for (lsei = lsei_start (part->encoder); !lsei_end_p (lsei);
@@ -364,7 +364,7 @@ lto_wpa_write_files (void)
              symtab_node *node = lsei_node (lsei);
              if (!lto_symtab_encoder_in_partition_p (part->encoder, node))
                {
-                 fprintf (symtab->dump_file, "%s ", node->asm_name ());
+                 fprintf (symtab->dump_file, "%s ", node->dump_asm_name ());
                  cgraph_node *cnode = dyn_cast <cgraph_node *> (node);
                  if (cnode
                      && lto_symtab_encoder_encode_body_p (part->encoder,
index b50476981f1ab55f96c5dbe8b5ee0670ed91451a..972bb6d155df92e18f58547f94d70958902be8c6 100644 (file)
@@ -1,3 +1,34 @@
+2020-01-08  Martin Liska  <mliska@suse.cz>
+
+       * gcc.dg/ipa/ipa-icf-1.c: Update expected scanned output.
+       * gcc.dg/ipa/ipa-icf-10.c: Likewise.
+       * gcc.dg/ipa/ipa-icf-11.c: Likewise.
+       * gcc.dg/ipa/ipa-icf-12.c: Likewise.
+       * gcc.dg/ipa/ipa-icf-13.c: Likewise.
+       * gcc.dg/ipa/ipa-icf-16.c: Likewise.
+       * gcc.dg/ipa/ipa-icf-18.c: Likewise.
+       * gcc.dg/ipa/ipa-icf-2.c: Likewise.
+       * gcc.dg/ipa/ipa-icf-20.c: Likewise.
+       * gcc.dg/ipa/ipa-icf-21.c: Likewise.
+       * gcc.dg/ipa/ipa-icf-23.c: Likewise.
+       * gcc.dg/ipa/ipa-icf-25.c: Likewise.
+       * gcc.dg/ipa/ipa-icf-26.c: Likewise.
+       * gcc.dg/ipa/ipa-icf-27.c: Likewise.
+       * gcc.dg/ipa/ipa-icf-3.c: Likewise.
+       * gcc.dg/ipa/ipa-icf-35.c: Likewise.
+       * gcc.dg/ipa/ipa-icf-36.c: Likewise.
+       * gcc.dg/ipa/ipa-icf-37.c: Likewise.
+       * gcc.dg/ipa/ipa-icf-38.c: Likewise.
+       * gcc.dg/ipa/ipa-icf-5.c: Likewise.
+       * gcc.dg/ipa/ipa-icf-7.c: Likewise.
+       * gcc.dg/ipa/ipa-icf-8.c: Likewise.
+       * gcc.dg/ipa/ipa-icf-merge-1.c: Likewise.
+       * gcc.dg/ipa/pr64307.c: Likewise.
+       * gcc.dg/ipa/pr90555.c: Likewise.
+       * gcc.dg/ipa/propmalloc-1.c: Likewise.
+       * gcc.dg/ipa/propmalloc-2.c: Likewise.
+       * gcc.dg/ipa/propmalloc-3.c: Likewise.
+
 2020-01-08  Richard Biener  <rguenther@suse.de>
 
        PR testsuite/92997
index 8cb9186238ceae1c037e318b11cff13101c19f97..05f500e7a646ce93356c99f88fe694c9c3ad3ab1 100644 (file)
@@ -56,5 +56,5 @@ int main(int argc, char **argv)
   return 0;
 }
 
-/* { dg-final { scan-ipa-dump "Semantic equality hit:x1->x2" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:x1/\[0-9+\]+->x2/\[0-9+\]+" "icf"  } } */
 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf"  } } */
index 8fdac3883ee5bbde23f272816d7f6ae11dd59ce2..2383d1217f047100cdfff6853469ec9bafd1ac65 100644 (file)
@@ -29,5 +29,5 @@ int main(int argc, char **argv)
   return 0;
 }
 
-/* { dg-final { scan-ipa-dump "Semantic equality hit:ferda->funkce" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:ferda/\[0-9+\]+->funkce/\[0-9+\]+" "icf"  } } */
 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf"  } } */
index dbc0cbe7b616f9ce32ba20280c7704b0c0a6ec23..36ba88070b7d207df5305401361808a807740697 100644 (file)
@@ -24,5 +24,5 @@ int main(int argc, char **argv)
   return f0(argc) * f1(argc);
 }
 
-/* { dg-final { scan-ipa-dump "Semantic equality hit:f0->f1" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:f0/\[0-9+\]+->f1/\[0-9+\]+" "icf"  } } */
 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf"  } } */
index 7ed75f8bfd924596042413d7771eb930af9e0644..015384fbd20161d29ae05b70eb5f812ed1cd6924 100644 (file)
@@ -73,5 +73,5 @@ int main(int argc, char **argv)
   return 0;
 }
 
-/* { dg-final { scan-ipa-dump "Semantic equality hit:gcd->nsd" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:gcd/\[0-9+\]+->nsd/\[0-9+\]+" "icf"  } } */
 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf"  } } */
index d58f182d23771a372f242cdc8a3d88cfd6db9e34..9bd16b0c1cb631897582304bf008a0a721541f12 100644 (file)
@@ -187,7 +187,7 @@ int main(int argc, char **argv)
   printf("Test2: %d, %d, gdc: %d\n", a, b, nsd(a, b));
 }
 
-/* { dg-final { scan-ipa-dump "Semantic equality hit:s1->s2" "icf"  } } */
-/* { dg-final { scan-ipa-dump "Semantic equality hit:nsd_different_result->nsd_different_result2" "icf"  } } */
-/* { dg-final { scan-ipa-dump "Semantic equality hit:gcd->nsd" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:s1/\[0-9+\]+->s2/\[0-9+\]+" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:nsd_different_result/\[0-9+\]+->nsd_different_result2/\[0-9+\]+" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:gcd/\[0-9+\]+->nsd/\[0-9+\]+" "icf"  } } */
 /* { dg-final { scan-ipa-dump "Equal symbols: 3" "icf"  } } */
index b11cae06534d711322d96431e6f4f54c13b6f4cb..bd7358c5cf1b8a016952db6cdb322086ea38c812 100644 (file)
@@ -22,5 +22,5 @@ int main()
   return foo() + bar();
 }
 
-/* { dg-final { scan-ipa-dump "Semantic equality hit:foo->bar" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:foo/\[0-9+\]+->bar/\[0-9+\]+" "icf"  } } */
 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf"  } } */
index 7753e1e4abb29aa158350f002ad267fcbc7194c3..55fd877fa74d1bf6eb7c0a3e0ef68c61642dcffa 100644 (file)
@@ -32,5 +32,5 @@ int main()
   return 0;
 }
 
-/* { dg-final { scan-ipa-dump "Semantic equality hit:foo->bar" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:foo/\[0-9+\]+->bar/\[0-9+\]+" "icf"  } } */
 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf"  } } */
index e6e165a9a62ca6913844d7ce9d0d681f0c95fe77..7068bb069d68169bed179f43deb94e178dc87812 100644 (file)
@@ -64,5 +64,5 @@ int main(int argc, char **argv)
   return 0;
 }
 
-/* { dg-final { scan-ipa-dump "Semantic equality hit:f1->f2" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:f1/\[0-9+\]+->f2/\[0-9+\]+" "icf"  } } */
 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf"  } } */
index 42e9ce95f09b2593ddca1a452873dbc06b0125a2..c9155ddaf40a783b20b457e9a1338eae5cca9c6e 100644 (file)
@@ -23,5 +23,5 @@ int main()
   return 0;
 }
 
-/* { dg-final { scan-ipa-dump "Semantic equality hit:foo->bar" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:foo/\[0-9+\]+->bar/\[0-9+\]+" "icf"  } } */
 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf"  } } */
index ea7164c2ef7e57fce98913baf692a7e7be834df3..9afc42ce7d075686d2e4fe32c6749cdb1f9c9c28 100644 (file)
@@ -22,5 +22,5 @@ int main()
   return 2;
 }
 
-/* { dg-final { scan-ipa-dump "Semantic equality hit:foo->bar" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:foo/\[0-9+\]+->bar/\[0-9+\]+" "icf"  } } */
 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf"  } } */
index 805a406efed87a30a358ee05f8f1b4dcde63fc88..20f468d245cc7fb10e85d609c5e92440dcd70c65 100644 (file)
@@ -24,5 +24,5 @@ int main()
   return foo(0) + bar(0);
 }
 
-/* { dg-final { scan-ipa-dump "Semantic equality hit:foo->bar" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:foo/\[0-9+\]+->bar/\[0-9+\]+" "icf"  } } */
 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf"  } } */
index 5b963a843e799a13bcedad89d70a6234f095b909..fad0891283e5b91c1bad98d9245eeae643e79fda 100644 (file)
@@ -46,6 +46,6 @@ int main()
   return foo() + bar();
 }
 
-/* { dg-final { scan-ipa-dump "Semantic equality hit:foo->bar" "icf"  } } */
-/* { dg-final { scan-ipa-dump "Semantic equality hit:zip->zap" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:foo/\[0-9+\]+->bar/\[0-9+\]+" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:zip/\[0-9+\]+->zap/\[0-9+\]+" "icf"  } } */
 /* { dg-final { scan-ipa-dump "Equal symbols: 2" "icf"  } } */
index 42c538630c28e8d6a1a9986e51d268c6803105d9..5dc0062bbe5c16671ad142dffaa7521ce2e052d0 100644 (file)
@@ -38,5 +38,5 @@ int main()
   return 0;
 }
 
-/* { dg-final { scan-ipa-dump "Semantic equality hit:destroy->remove" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:destroy/\[0-9+\]+->remove/\[0-9+\]+" "icf"  } } */
 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf"  } } */
index a2ce86ab1db5cb1cc83c4e6742cf1806af202de7..45e2c5689ce7bec2b416fdb0cea4788045ea689e 100644 (file)
@@ -25,5 +25,5 @@ int main()
   return 0;
 }
 
-/* { dg-final { scan-ipa-dump "Semantic equality hit:destroy->remove" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:destroy/\[0-9+\]+->remove/\[0-9+\]+" "icf"  } } */
 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf"  } } */
index 8d83a281cd04b5d9b697ef31cef465e39e5ff7b7..aa238329180aacace305bd6504b538eaf09c41e1 100644 (file)
@@ -31,5 +31,5 @@ int main()
   return 0;
 }
 
-/* { dg-final { scan-ipa-dump "Semantic equality hit:foo->bar" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:foo/\[0-9+\]+->bar/\[0-9+\]+" "icf"  } } */
 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf"  } } */
index 03bac84bdbeef9d245940b4848968fee3d06375d..d6dd2680591b5ba7858ccac1730cd3e7a81b8d8a 100644 (file)
@@ -25,6 +25,6 @@ int main()
 }
 
 /* { dg-final { scan-ipa-dump "Equal symbols: 3" "icf"  } } */
-/* { dg-final { scan-ipa-dump "Semantic equality hit:f1->f2" "icf"  } } */
-/* { dg-final { scan-ipa-dump "Semantic equality hit:c->d" "icf"  } } */
-/* { dg-final { scan-ipa-dump "Semantic equality hit:a->b" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:f1/\[0-9+\]+->f2/\[0-9+\]+" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:c/\[0-9+\]+->d/\[0-9+\]+" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:a/\[0-9+\]+->b/\[0-9+\]+" "icf"  } } */
index e1f26302cc7ba42252b4fc3693b24a2993f3d3fd..a6a8ef90b0f9a1ee6725d37153889e82a960f742 100644 (file)
@@ -31,8 +31,8 @@ int t(int tt)
 }
 
 /* { dg-final { scan-ipa-dump "Equal symbols: 6" "icf"  } } */
-/* { dg-final { scan-ipa-dump "Semantic equality hit:a->b" "icf"  } } */
-/* { dg-final { scan-ipa-dump "Semantic equality hit:c->d" "icf"  } } */
-/* { dg-final { scan-ipa-dump "Semantic equality hit:e->f" "icf"  } } */
-/* { dg-final { scan-ipa-dump "Semantic equality hit:g->h" "icf"  } } */
-/* { dg-final { scan-ipa-dump "Semantic equality hit:i->k" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:a/\[0-9+\]+->b/\[0-9+\]+" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:c/\[0-9+\]+->d/\[0-9+\]+" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:e/\[0-9+\]+->f/\[0-9+\]+" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:g/\[0-9+\]+->h/\[0-9+\]+" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:i/\[0-9+\]+->k/\[0-9+\]+" "icf"  } } */
index b3816552e7f6757a29099ec2a5f750b0c9c3b1cf..509c687d9e9b48fe8f617460a51d0c3a2034da24 100644 (file)
@@ -31,8 +31,8 @@ int t(int tt)
 }
 
 /* { dg-final { scan-ipa-dump "Equal symbols: 5" "icf"  } } */
-/* { dg-final { scan-ipa-dump "Semantic equality hit:a->b" "icf"  } } */
-/* { dg-final { scan-ipa-dump "Semantic equality hit:c->d" "icf"  } } */
-/* { dg-final { scan-ipa-dump "Semantic equality hit:e->f" "icf"  } } */
-/* { dg-final { scan-ipa-dump "Semantic equality hit:g->h" "icf"  } } */
-/* { dg-final { scan-ipa-dump "Semantic equality hit:i->j" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:a/\[0-9+\]+->b/\[0-9+\]+" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:c/\[0-9+\]+->d/\[0-9+\]+" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:e/\[0-9+\]+->f/\[0-9+\]+" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:g/\[0-9+\]+->h/\[0-9+\]+" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:i/\[0-9+\]+->j/\[0-9+\]+" "icf"  } } */
index b9aea90b4004bedc8b340fa4ac20f24027ca91c0..452e1b88514536120a7d793e0c91c4f91483c8a9 100644 (file)
@@ -27,7 +27,7 @@ int main()
   return 0;
 }
 
-/* { dg-final { scan-wpa-ipa-dump "Semantic equality hit:foo->bar" "icf"  } } */
+/* { dg-final { scan-wpa-ipa-dump "Semantic equality hit:foo/\[0-9+\]+->bar/\[0-9+\]+" "icf"  } } */
 /* { dg-final { scan-wpa-ipa-dump "Equal symbols: 1" "icf"  } } */
 /* { dg-final { scan-ltrans-tree-dump "Function foo" "optimized" } } */
 /* { dg-final { scan-ltrans-tree-dump-not "Function bar" "optimized" } } */
index 1125bbd80c544253232e6ea40921a2a4d4765c92..b564ac301fa31b0348e1fef91500f623dad8a196 100644 (file)
@@ -50,5 +50,5 @@ int main()
   return 1;
 }
 
-/* { dg-final { scan-ipa-dump "Semantic equality hit:f1->f2" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:f1/\[0-9+\]+->f2/\[0-9+\]+" "icf"  } } */
 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf"  } } */
index d498b10255b57f41fd7095e8801ce596a1cc5100..8d53455eb01c6eb6e123fd53b63004e67f843597 100644 (file)
@@ -67,5 +67,5 @@ int main()
   return 1;
 }
 
-/* { dg-final { scan-ipa-dump "Semantic equality hit:foo->foo2" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:foo/\[0-9+\]+->foo2/\[0-9+\]+" "icf"  } } */
 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf"  } } */
index fe95c2ccd569a9703d4ab20e44f3a24a493d5b16..c8c009cf005be86051657c15e605c7c37baa119e 100644 (file)
@@ -40,5 +40,5 @@ int main(int argc, char **argv)
   printf("fce2: %d\n", fce2(argc, 2 * argc));
 }
 
-/* { dg-final { scan-ipa-dump "Semantic equality hit:fce1->fce2" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:fce1/\[0-9+\]+->fce2/\[0-9+\]+" "icf"  } } */
 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf"  } } */
index f96e8e866a4bb085d2aad3b2e7568373be7cdc7f..d5ce5eb18f4b35b3ce2dba67ef2a868d9de2f8ac 100644 (file)
@@ -18,7 +18,7 @@ int main ()
 }
 
 /* Notice the two functions are the same.  */
-/* { dg-final { scan-ipa-dump "Semantic equality hit:foo->main" "icf" } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:foo/\[0-9+\]+->main/\[0-9+\]+" "icf" } } */
 
 /* Make sure we don't tail call main.  */
 /* { dg-final { scan-ipa-dump-not "= main \\(\\);" "icf" } } */
index e2c9121c037a4590855c3df8ee043eb303886532..345a51c2baa7c0658bf738c79ba2666dc65a1a72 100644 (file)
@@ -27,5 +27,5 @@ int main()
   return r1 - r2;
 }
 
-/* { dg-final { scan-ipa-dump "Semantic equality hit:real_part->real_part_2" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:real_part/\[0-9+\]+->real_part_2/\[0-9+\]+" "icf"  } } */
 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf"  } } */
index d357405bb9a57fcdbf3c6d2b140dbd4fbdb5400b..80c5c9fc85b9142f518a55d5839da42a6d46365c 100644 (file)
@@ -62,5 +62,5 @@ test_simduid2 (int j, int b)
   return c2;
 }
 
-/* { dg-final { scan-ipa-dump "Semantic equality hit:test_simduid1->test_simduid2" "icf"  } } */
+/* { dg-final { scan-ipa-dump "Semantic equality hit:test_simduid1/\[0-9+\]+->test_simduid2/\[0-9+\]+" "icf"  } } */
 /* { dg-final { scan-ipa-dump "Equal symbols: 1" "icf"  } } */
index 48136275590a06f60670a73194b47cc0c6f0c406..d7c13af400d03a119187b2521e85eb761228347e 100644 (file)
@@ -17,5 +17,5 @@ static void *bar(__SIZE_TYPE__ n)
   return p;
 }
 
-/* { dg-final { scan-ipa-dump "Function f found to be malloc" "pure-const" } } */
-/* { dg-final { scan-ipa-dump "Function bar found to be malloc" "pure-const" } } */
+/* { dg-final { scan-ipa-dump "Function f/\[0-9+\]+ found to be malloc" "pure-const" } } */
+/* { dg-final { scan-ipa-dump "Function bar/\[0-9+\]+ found to be malloc" "pure-const" } } */
index 4ad8fb1e7512e2532c13edcea846c403c4ac24e4..2332d9a4b449237debb1344dc0a977561acf75a7 100644 (file)
@@ -19,5 +19,5 @@ static void *bar(__SIZE_TYPE__ n, int cond)
   return p;
 }
 
-/* { dg-final { scan-ipa-dump "Function foo found to be malloc" "pure-const" } } */
-/* { dg-final { scan-ipa-dump "Function bar found to be malloc" "pure-const" } } */
+/* { dg-final { scan-ipa-dump "Function foo/\[0-9+\]+ found to be malloc" "pure-const" } } */
+/* { dg-final { scan-ipa-dump "Function bar/\[0-9+\]+ found to be malloc" "pure-const" } } */
index c32254489a57b69f0bd4335ef7cf36f81f9ed1af..5386695dcb0d2c90cdfd1c2c4ac56e61d0941b0a 100644 (file)
@@ -20,5 +20,5 @@ static void *foo(__SIZE_TYPE__ n, int m)
   return p;
 }
 
-/* { dg-final { scan-ipa-dump "Function foo found to be malloc" "pure-const" } } */
-/* { dg-final { scan-ipa-dump "Function bar found to be malloc" "pure-const" } } */
+/* { dg-final { scan-ipa-dump "Function foo/\[0-9+\]+ found to be malloc" "pure-const" } } */
+/* { dg-final { scan-ipa-dump "Function bar/\[0-9+\]+ found to be malloc" "pure-const" } } */
index 58c6739eb7e334335fdef1ce1837e1798c578107..ee4670c94a5edf1d9a0b0724b99478e9a2b90ff2 100644 (file)
@@ -2263,7 +2263,7 @@ copy_bb (copy_body_data *id, basic_block bb,
                  if (dump_file)
                    {
                      fprintf (dump_file, "Created new direct edge to %s\n",
-                              dest->name ());
+                              dest->dump_name ());
                    }
                }
 
index 22e904444f155556373c2335a2722c157123b9e6..f189f7562611ffced109702cb182968f303f3876 100644 (file)
@@ -8157,7 +8157,8 @@ ipa_pta_execute (void)
          && from != constraints.length ())
        {
          fprintf (dump_file,
-                  "Generating intial constraints for %s", node->name ());
+                  "Generating initial constraints for %s",
+                  node->dump_name ());
          if (DECL_ASSEMBLER_NAME_SET_P (node->decl))
            fprintf (dump_file, " (%s)",
                     IDENTIFIER_POINTER
@@ -8214,7 +8215,7 @@ ipa_pta_execute (void)
       if (dump_file)
        {
          fprintf (dump_file,
-                  "Generating constraints for %s", node->name ());
+                  "Generating constraints for %s", node->dump_name ());
          if (DECL_ASSEMBLER_NAME_SET_P (node->decl))
            fprintf (dump_file, " (%s)",
                     IDENTIFIER_POINTER
index cb9a82d61a84112e7c29db88f96cb94ee3417b0e..e5d632e0eb5bcf23687a8bcbe06471645d888f02 100644 (file)
@@ -639,7 +639,7 @@ symbol_table::remove_unreferenced_decls (void)
        {
          enqueue_node (node, &first);
          if (dump_file)
-           fprintf (dump_file, " %s", node->asm_name ());
+           fprintf (dump_file, " %s", node->dump_asm_name ());
        }
     }
   while (first != (varpool_node *)(void *)1)
@@ -687,7 +687,7 @@ symbol_table::remove_unreferenced_decls (void)
       if (!node->aux && !node->no_reorder)
        {
          if (dump_file)
-           fprintf (dump_file, " %s", node->asm_name ());
+           fprintf (dump_file, " %s", node->dump_asm_name ());
          if (referenced.contains(node))
            node->remove_initializer ();
          else