Add OMP_ITERATOR_BLOCK to dump_omp_iterators, only when TDF_DETAILS is set.
gcc/ChangeLog:
* tree-pretty-print.cc (dump_omp_iterators): Print OMP_ITERATOR_BLOCK.
---
gcc/tree-pretty-print.cc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gcc/tree-pretty-print.cc b/gcc/tree-pretty-print.cc
index 71d0c891769..0c026ef503f 100644
--- a/gcc/tree-pretty-print.cc
+++ b/gcc/tree-pretty-print.cc
@@ -448,6 +448,16 @@ dump_omp_iterators (pretty_printer *pp, tree iter, int
spc, dump_flags_t flags)
pp_colon (pp);
dump_generic_node (pp, OMP_ITERATOR_STEP (it), spc, flags, false);
}
+ if (flags & TDF_DETAILS && OMP_ITERATOR_BLOCK (iter))
+ {
+ pp_string (pp, ", block=");
+ pp_left_brace (pp);
+ newline_and_indent (pp, spc + 2);
+ dump_generic_node (pp, BLOCK_SUBBLOCKS (OMP_ITERATOR_BLOCK (iter)),
+ spc + 2, flags, true);
+ newline_and_indent (pp, spc);
+ pp_right_brace (pp);
+ }
if (OMP_ITERATOR_EXPANDED_P (iter))
{
pp_string (pp, ", loop_label=");
--
2.55.0