From: Tamar Christina Date: Fri, 5 May 2023 12:36:01 +0000 (+0100) Subject: match.pd: Remove commented out line pragmas unless -vv is used. X-Git-Tag: basepoints/gcc-15~9642 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e487fcc0f7466ea663a0fea52076337bebd42b8b;p=thirdparty%2Fgcc.git 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. --- 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