c++: Fix bootstrap
authorNathan Sidwell <nathan@acm.org>
Wed, 2 Dec 2020 15:28:30 +0000 (07:28 -0800)
committerNathan Sidwell <nathan@acm.org>
Wed, 2 Dec 2020 15:31:40 +0000 (07:31 -0800)
I made the prefix for dumping a binding-vector slightly too small.
Fixed thusly.

gcc/cp/
* ptree.c (cxx_print_xnode): Increase binding-vector prefix size.

gcc/cp/ptree.c

index 1ee107f23ccba91b8c386c1f3ea8ef3c7e2a8815..f8d22082ba7aa98878cd38ac6ccb6a061fc3220c 100644 (file)
@@ -259,15 +259,15 @@ cxx_print_xnode (FILE *file, tree node, int indent)
        for (unsigned ix = 0; ix != len; ix++)
          {
            binding_cluster *cluster = &BINDING_VECTOR_CLUSTER (node, ix);
-           char pfx[20];
+           char pfx[24];
            for (unsigned jx = 0; jx != BINDING_VECTOR_SLOTS_PER_CLUSTER; jx++)
              if (cluster->indices[jx].span)
                {
                  int len = sprintf (pfx, "module:%u",
                                     cluster->indices[jx].base);
                  if (cluster->indices[jx].span > 1)
-                   len
-                     += sprintf (&pfx[len], "(+%u)", cluster->indices[jx].span);
+                   len += sprintf (&pfx[len], "(+%u)",
+                                   cluster->indices[jx].span);
                  len += sprintf (&pfx[len], " cluster:%u/%u", ix, jx);
                  binding_slot &slot = cluster->slots[jx];
                  if (slot.is_lazy ())