From: Nathan Sidwell Date: Wed, 2 Dec 2020 15:28:30 +0000 (-0800) Subject: c++: Fix bootstrap X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=744ca1bf1cc07627f85c2f73a2ced3fb551e1f60;p=gcc.git c++: Fix bootstrap 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 --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c index 1ee107f23cc..f8d22082ba7 100644 --- a/gcc/cp/ptree.c +++ b/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 ())