]> gcc.gnu.org Git - gcc.git/commitdiff
Correctly parenthesize pretty print structures.
authorSebastian Pop <sebastian.pop@amd.com>
Wed, 12 Aug 2009 14:20:22 +0000 (14:20 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Wed, 12 Aug 2009 14:20:22 +0000 (14:20 +0000)
2009-08-05  Sebastian Pop  <sebastian.pop@amd.com>

* graphite-poly.c (print_pbb): Add parentheses in the pretty print.
(print_scop): Same.

From-SVN: r150685

gcc/ChangeLog
gcc/ChangeLog.graphite
gcc/graphite-poly.c

index a06a556e81beb463900297d5464c592685c63869..e679ad37b3661b54d7db08180dfc8cf19039c665 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
+
+       * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
+       (print_scop): Same.
+
 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
 
        * Makefile.in (graphite.o): Depends on PREDICT_H.
index 3688216a3c479f082a7a5b07ebd8669f7e8dc218..19027eac41ab0a4fdb92018964ebd57b9b16b431 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-05  Sebastian Pop  <sebastian.pop@amd.com>
+
+       * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
+       (print_scop): Same.
+
 2009-08-05  Sebastian Pop  <sebastian.pop@amd.com>
 
        * Makefile.in (graphite.o): Depends on PREDICT_H.
index 2df04af601880c0b52a9760889bd332df68e3f9c..6d24cbd52f169227bf37c1824cac72ab6cebb2ca 100644 (file)
@@ -547,11 +547,13 @@ debug_pdrs (poly_bb_p pbb)
 void
 print_pbb (FILE *file, poly_bb_p pbb)
 {
+  fprintf (file, "pbb (\n");
   dump_gbb_conditions (file, PBB_BLACK_BOX (pbb));
   dump_gbb_cases (file, PBB_BLACK_BOX (pbb));
   print_pdrs (file, pbb);
   print_pbb_domain (file, pbb);
   print_scattering_function (file, pbb);
+  fprintf (file, ")\n");
 }
 
 /* Print to FILE the parameters of SCOP.  */
@@ -600,11 +602,14 @@ print_scop (FILE *file, scop_p scop)
   int i;
   poly_bb_p pbb;
 
+  fprintf (file, "scop (\n");
   print_scop_params (file, scop);
   print_scop_context (file, scop);
 
   for (i = 0; VEC_iterate (poly_bb_p, SCOP_BBS (scop), i, pbb); i++)
     print_pbb (file, pbb);
+
+  fprintf (file, ")\n");
 }
 
 /* Print to STDERR the domain of PBB.  */
This page took 0.102234 seconds and 5 git commands to generate.