diff mbox series

c++: Fix bootstrap

Message ID c0c1628d-d5a5-44a1-5d3f-c1c2bbc16ca6@acm.org
State New
Headers show
Series c++: Fix bootstrap | expand

Commit Message

Nathan Sidwell Dec. 2, 2020, 3:30 p.m. UTC
I'm not sure why this didn't pop up on the earlier bootstrap.  Anyway, 
fixed thusly.

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.
diff mbox series

Patch

diff --git i/gcc/cp/ptree.c w/gcc/cp/ptree.c
index 1ee107f23cc..f8d22082ba7 100644
--- i/gcc/cp/ptree.c
+++ w/gcc/cp/ptree.c
@@ -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 ())