The function gets dump flags as 'flags' parameter, so shouldn't use
dump_flags.

Bootstrap and regtest running on x86_64-unknown-linux-gnu.

        * tree-cfg.cc (dump_function_to_file): Use flags, not dump_flags.
---
 gcc/tree-cfg.cc | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/gcc/tree-cfg.cc b/gcc/tree-cfg.cc
index e609352d409..dd17a54ceef 100644
--- a/gcc/tree-cfg.cc
+++ b/gcc/tree-cfg.cc
@@ -8353,7 +8353,7 @@ dump_function_to_file (tree fndecl, FILE *file, 
dump_flags_t flags)
            fprintf (file, ", ");
 
          tree name = get_attribute_name (chain);
-         print_generic_expr (file, name, dump_flags);
+         print_generic_expr (file, name, flags);
          if (TREE_VALUE (chain) != NULL_TREE)
            {
              fprintf (file, " (");
@@ -8364,13 +8364,13 @@ dump_function_to_file (tree fndecl, FILE *file, 
dump_flags_t flags)
                                "omp declare variant base"))
                {
                  tree a = TREE_VALUE (chain);
-                 print_generic_expr (file, TREE_PURPOSE (a), dump_flags);
+                 print_generic_expr (file, TREE_PURPOSE (a), flags);
                  fprintf (file, " match ");
                  print_omp_context_selector (file, TREE_VALUE (a),
-                                             dump_flags);
+                                             flags);
                }
              else
-               print_generic_expr (file, TREE_VALUE (chain), dump_flags);
+               print_generic_expr (file, TREE_VALUE (chain), flags);
              fprintf (file, ")");
            }
        }
@@ -8392,7 +8392,7 @@ dump_function_to_file (tree fndecl, FILE *file, 
dump_flags_t flags)
        }
 
       print_generic_expr (file, TREE_TYPE (TREE_TYPE (fndecl)),
-                         dump_flags | TDF_SLIM);
+                         flags | TDF_SLIM);
       fprintf (file, " __GIMPLE (%s",
               (fun->curr_properties & PROP_ssa) ? "ssa"
               : (fun->curr_properties & PROP_cfg) ? "cfg"
@@ -8405,7 +8405,7 @@ dump_function_to_file (tree fndecl, FILE *file, 
dump_flags_t flags)
            fprintf (file, ",%s(%" PRIu64 ")",
                     profile_quality_as_string (bb->count.quality ()),
                     bb->count.value ());
-         if (dump_flags & TDF_UID)
+         if (flags & TDF_UID)
            fprintf (file, ")\n%sD_%u (", function_name (fun),
                     DECL_UID (fndecl));
          else
@@ -8414,8 +8414,8 @@ dump_function_to_file (tree fndecl, FILE *file, 
dump_flags_t flags)
     }
   else
     {
-      print_generic_expr (file, TREE_TYPE (fntype), dump_flags);
-      if (dump_flags & TDF_UID)
+      print_generic_expr (file, TREE_TYPE (fntype), flags);
+      if (flags & TDF_UID)
        fprintf (file, " %sD.%u %s(", function_name (fun), DECL_UID (fndecl),
                 tmclone ? "[tm-clone] " : "");
       else
@@ -8426,9 +8426,9 @@ dump_function_to_file (tree fndecl, FILE *file, 
dump_flags_t flags)
   arg = DECL_ARGUMENTS (fndecl);
   while (arg)
     {
-      print_generic_expr (file, TREE_TYPE (arg), dump_flags);
+      print_generic_expr (file, TREE_TYPE (arg), flags);
       fprintf (file, " ");
-      print_generic_expr (file, arg, dump_flags);
+      print_generic_expr (file, arg, flags);
       if (DECL_CHAIN (arg))
        fprintf (file, ", ");
       arg = DECL_CHAIN (arg);
-- 
2.43.0

Reply via email to