https://gcc.gnu.org/g:9c6ee752512630e7418901a321f5de47382d81c2

commit r17-4630-g9c6ee752512630e7418901a321f5de47382d81c2
Author: Paul-Antoine Arras <[email protected]>
Date:   Thu Sep 24 11:46:49 2026 +0200

    openmp: Pretty-print OMP_ITERATOR_BLOCK
    
    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.

Diff:
---
 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 89fe93a1f6dc..f2718d03a4dc 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=");

Reply via email to