public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-497] match.pd: Remove commented out line pragmas unless -vv is used.
@ 2023-05-05 12:47 Tamar Christina
  0 siblings, 0 replies; only message in thread
From: Tamar Christina @ 2023-05-05 12:47 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:e487fcc0f7466ea663a0fea52076337bebd42b8b

commit r14-497-ge487fcc0f7466ea663a0fea52076337bebd42b8b
Author: Tamar Christina <tamar.christina@arm.com>
Date:   Fri May 5 13:36:01 2023 +0100

    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:
---
 gcc/genmatch.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/genmatch.cc b/gcc/genmatch.cc
index 638606b2502..2533698bd9e 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-05 12:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-05 12:47 [gcc r14-497] match.pd: Remove commented out line pragmas unless -vv is used Tamar Christina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).