aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-15 13:07:43 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-15 13:07:43 +0000
commitc970b33debc7e79b64af1d41a37c466979776695 (patch)
tree151fd9b45ad09f61055a86f02d879a0a4715304f /gcc
parent309bbaa3642f62d1175d083857342cba5979a900 (diff)
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235025 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/tree-pretty-print.c8
2 files changed, 11 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3173ae8e5fc..4a63e32d49a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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)
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c
index f8a6b43219d..c393d34b5ec 100644
--- a/gcc/tree-pretty-print.c
+++ b/gcc/tree-pretty-print.c
@@ -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);
}
}