public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-5051] Define m_rtx_reuse_manager only if not GENERATOR_FILE. Date: Tue, 9 Nov 2021 13:45:56 +0000 (GMT) [thread overview] Message-ID: <20211109134556.DF98D3858030@sourceware.org> (raw) https://gcc.gnu.org/g:0dc0947d4b67af66a57f4824232bb8020b0403f7 commit r12-5051-g0dc0947d4b67af66a57f4824232bb8020b0403f7 Author: Martin Liska <mliska@suse.cz> Date: Tue Nov 9 14:42:26 2021 +0100 Define m_rtx_reuse_manager only if not GENERATOR_FILE. gcc/ChangeLog: * print-rtl.c (rtx_writer::rtx_writer): Make the compilation conditional based on * print-rtl.h (class rtx_writer): Likewise. Diff: --- gcc/print-rtl.c | 8 +++++--- gcc/print-rtl.h | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index 567d2877b8e..a1afff65aa8 100644 --- a/gcc/print-rtl.c +++ b/gcc/print-rtl.c @@ -84,10 +84,12 @@ int flag_dump_unnumbered_links = 0; /* Constructor for rtx_writer. */ rtx_writer::rtx_writer (FILE *outf, int ind, bool simple, bool compact, - rtx_reuse_manager *reuse_manager) + rtx_reuse_manager *reuse_manager ATTRIBUTE_UNUSED) : m_outfile (outf), m_sawclose (0), m_indent (ind), - m_in_call_function_usage (false), m_simple (simple), m_compact (compact), - m_rtx_reuse_manager (reuse_manager) + m_in_call_function_usage (false), m_simple (simple), m_compact (compact) +#ifndef GENERATOR_FILE + , m_rtx_reuse_manager (reuse_manager) +#endif { } diff --git a/gcc/print-rtl.h b/gcc/print-rtl.h index 66f8c3688de..d8d9e2c487c 100644 --- a/gcc/print-rtl.h +++ b/gcc/print-rtl.h @@ -68,8 +68,10 @@ class rtx_writer - insn names are prefixed with "c" (e.g. "cinsn", "cnote", etc). */ bool m_compact; +#ifndef GENERATOR_FILE /* An optional instance of rtx_reuse_manager. */ rtx_reuse_manager *m_rtx_reuse_manager; +#endif }; #ifdef BUFSIZ
reply other threads:[~2021-11-09 13:45 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20211109134556.DF98D3858030@sourceware.org \ --to=marxin@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).