re PR c++/70675 (compare-debug failure building LLVM)
authorJakub Jelinek <jakub@redhat.com>
Fri, 15 Apr 2016 13:07:43 +0000 (15:07 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 15 Apr 2016 13:07:43 +0000 (15:07 +0200)
PR c++/70675
* tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
to dump_generic_node.
(NIY): Pass also flags to do_niy.

From-SVN: r235025

gcc/ChangeLog
gcc/tree-pretty-print.c

index 3173ae8e5fcb9e170ea4d3f2d2aaa164727ebcb4..4a63e32d49a842c3801d335343794121cca3a9f2 100644 (file)
@@ -1,3 +1,10 @@
+2016-04-15  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/70675
+       * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
+       to dump_generic_node.
+       (NIY): Pass also flags to do_niy.
+
 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
 
        * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
index f8a6b43219d4d4984e8f90c56260112839710053..c393d34b5ec35326dc9078a49e0a3cfff5e55f45 100644 (file)
@@ -40,19 +40,19 @@ static void pretty_print_string (pretty_printer *, const char*);
 static void newline_and_indent (pretty_printer *, int);
 static void maybe_init_pretty_print (FILE *);
 static void print_struct_decl (pretty_printer *, const_tree, int, int);
-static void do_niy (pretty_printer *, const_tree);
+static void do_niy (pretty_printer *, const_tree, int);
 
 #define INDENT(SPACE) do { \
   int i; for (i = 0; i<SPACE; i++) pp_space (pp); } while (0)
 
-#define NIY do_niy (pp, node)
+#define NIY do_niy (pp, node, flags)
 
 static pretty_printer *tree_pp;
 
 /* Try to print something for an unknown tree code.  */
 
 static void
-do_niy (pretty_printer *pp, const_tree node)
+do_niy (pretty_printer *pp, const_tree node, int flags)
 {
   int i, len;
 
@@ -65,7 +65,7 @@ do_niy (pretty_printer *pp, const_tree node)
       for (i = 0; i < len; ++i)
        {
          newline_and_indent (pp, 2);
-         dump_generic_node (pp, TREE_OPERAND (node, i), 2, 0, false);
+         dump_generic_node (pp, TREE_OPERAND (node, i), 2, flags, false);
        }
     }