aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2020-12-02 07:28:30 -0800
committerNathan Sidwell <nathan@acm.org>2020-12-02 07:31:40 -0800
commit744ca1bf1cc07627f85c2f73a2ced3fb551e1f60 (patch)
tree5327c458193257f726a8c627890334c0ef39ec58 /gcc
parentfeb93adf76eda52385a73eb57c5bef7c870a2564 (diff)
downloadgcc-744ca1bf1cc07627f85c2f73a2ced3fb551e1f60.zip
gcc-744ca1bf1cc07627f85c2f73a2ced3fb551e1f60.tar.gz
gcc-744ca1bf1cc07627f85c2f73a2ced3fb551e1f60.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ptree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c
index 1ee107f..f8d2208 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 ())