From e487fcc0f7466ea663a0fea52076337bebd42b8b Mon Sep 17 00:00:00 2001 From: Tamar Christina Date: Fri, 5 May 2023 13:36:01 +0100 Subject: [PATCH] match.pd: Remove commented out line pragmas unless -vv is used. genmatch currently outputs commented out line directives that have no effect but the compiler still has to parse only to discard. They are however handy when debugging genmatch output. As such this moves them behind the -vv flag. gcc/ChangeLog: PR bootstrap/84402 * genmatch.cc (output_line_directive): Only emit commented directive when -vv. --- gcc/genmatch.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/genmatch.cc b/gcc/genmatch.cc index 638606b2502f..2533698bd9ed 100644 --- a/gcc/genmatch.cc +++ b/gcc/genmatch.cc @@ -209,7 +209,7 @@ output_line_directive (FILE *f, location_t location, else fprintf (f, "%s:%d", file, loc.line); } - else + else if (verbose >= 2) /* Other gen programs really output line directives here, at least for development it's right now more convenient to have line information from the generated file. Still keep the directives as comment for now -- 2.47.2