aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPan Li <pan2.li@intel.com>2024-05-25 23:16:50 +0800
committerPan Li <pan2.li@intel.com>2024-05-27 09:29:59 +0800
commit5d99cf74c9f748c93ea218eca9bd2f08edfb2a88 (patch)
tree64c3a03a6f481fcd9cdf80fd7c4da6c418088bdc /gcc
parent56d0d0dfa907eca80d90199b2a070c0d8d7e34d9 (diff)
downloadgcc-5d99cf74c9f748c93ea218eca9bd2f08edfb2a88.zip
gcc-5d99cf74c9f748c93ea218eca9bd2f08edfb2a88.tar.gz
gcc-5d99cf74c9f748c93ea218eca9bd2f08edfb2a88.tar.bz2
Gen-Match: Fix gen_kids_1 right hand braces mis-alignment
Notice some mis-alignment for gen_kids_1 right hand braces as below: if ((_q50 == _q20 && ! TREE_SIDE_EFFECTS (... { if ((_q51 == _q21 && ! TREE_SIDE_EFFECTS (... { { tree captures[2] ATTRIBUTE_UNUSED = {... { res_ops[0] = captures[0]; res_ops[1] = captures[1]; if (UNLIKELY (debug_dump)) ... return true; } } } } } // mis-aligned here. } The below test are passed for this patch: * The x86 bootstrap test. * The x86 fully regression test. gcc/ChangeLog: * genmatch.cc (dt_node::gen_kids_1): Fix indenet mis-aligned. Signed-off-by: Pan Li <pan2.li@intel.com>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/genmatch.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/genmatch.cc b/gcc/genmatch.cc
index c982c95..f1e0e7a 100644
--- a/gcc/genmatch.cc
+++ b/gcc/genmatch.cc
@@ -3428,7 +3428,7 @@ dt_node::gen_kids_1 (FILE *f, int indent, bool gimple, int depth,
child_opname, kid_opname, j);
}
preds[i]->gen_kids (f, indent + 4, gimple, depth);
- fprintf (f, "}\n");
+ fprintf_indent (f, indent, " }\n");
indent -= 2;
fprintf_indent (f, indent, "}\n");
}