aboutsummaryrefslogtreecommitdiff
path: root/gcc/print-rtl.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2016-11-09 20:55:03 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2016-11-09 20:55:03 +0000
commit677aa9b4b79ce0e26cadbdbc9effdbaa00487e6a (patch)
tree1e612ec728999a697c3b1c9733cf121ba3eb3327 /gcc/print-rtl.c
parent410fe60d14642e03ba5b1658bff522d92fa4ca9f (diff)
downloadgcc-677aa9b4b79ce0e26cadbdbc9effdbaa00487e6a.zip
gcc-677aa9b4b79ce0e26cadbdbc9effdbaa00487e6a.tar.gz
gcc-677aa9b4b79ce0e26cadbdbc9effdbaa00487e6a.tar.bz2
print-rtl-function.c: add (param) directive to dump
gcc/ChangeLog: * print-rtl-function.c: Include varasm.h. (print_any_param_name): New function. (print_param): New function. (print_rtx_function): Call print_param for each argument. * print-rtl.c (rtx_writer::finish_directive): New function. * print-rtl.h (rtx_writer::finish_directive): New decl. From-SVN: r242023
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r--gcc/print-rtl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c
index 3f15a21..e7368c7 100644
--- a/gcc/print-rtl.c
+++ b/gcc/print-rtl.c
@@ -804,6 +804,15 @@ rtx_writer::print_rtx (const_rtx in_rtx)
m_sawclose = 1;
}
+/* Emit a closing parenthesis and newline. */
+
+void
+rtx_writer::finish_directive ()
+{
+ fprintf (m_outfile, ")\n");
+ m_sawclose = 0;
+}
+
/* Print an rtx on the current line of FILE. Initially indent IND
characters. */