public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5051] Define m_rtx_reuse_manager only if not GENERATOR_FILE.
@ 2021-11-09 13:45 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2021-11-09 13:45 UTC (permalink / raw)
To: gcc-cvs
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-11-09 13:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-09 13:45 [gcc r12-5051] Define m_rtx_reuse_manager only if not GENERATOR_FILE Martin Liska
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).