diff options
author | David Malcolm <dmalcolm@redhat.com> | 2016-12-19 15:24:47 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2016-12-19 15:24:47 +0000 |
commit | 596762ee4b98c9c6bcd2b3f0bd67e2c5f5cae6ed (patch) | |
tree | f2cb174e38ee4d5bc051c252a7398173f5d31405 /gcc/print-rtl.c | |
parent | dc31c238bd382061196e8e9f4f68057feac4ee9b (diff) | |
download | gcc-596762ee4b98c9c6bcd2b3f0bd67e2c5f5cae6ed.zip gcc-596762ee4b98c9c6bcd2b3f0bd67e2c5f5cae6ed.tar.gz gcc-596762ee4b98c9c6bcd2b3f0bd67e2c5f5cae6ed.tar.bz2 |
print-rtl.c: use '<' and '>' rather than % for pseudos in compact mode
gcc/ChangeLog:
* print-rtl.c (rtx_writer::print_rtx_operand_code_r): For
non-virtual pseudos in compact mode, wrap the regno in '<' and '>'
rather than using a '%' prefix.
* rtl-tests.c (selftest::test_dumping_regs): Update for above change.
From-SVN: r243798
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r-- | gcc/print-rtl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index 3bbd395..ee4b74a 100644 --- a/gcc/print-rtl.c +++ b/gcc/print-rtl.c @@ -481,11 +481,11 @@ rtx_writer::print_rtx_operand_code_r (const_rtx in_rtx) fputc ('#', m_outfile); else if (m_compact) { - /* In compact mode, print pseudos with a '%' sigil following - by the regno, offset by (LAST_VIRTUAL_REGISTER + 1), so that the - first non-virtual pseudo is dumped as "%0". */ + /* In compact mode, print pseudos with '< and '>' wrapping the regno, + offseting it by (LAST_VIRTUAL_REGISTER + 1), so that the + first non-virtual pseudo is dumped as "<0>". */ gcc_assert (regno > LAST_VIRTUAL_REGISTER); - fprintf (m_outfile, " %%%d", regno - (LAST_VIRTUAL_REGISTER + 1)); + fprintf (m_outfile, " <%d>", regno - (LAST_VIRTUAL_REGISTER + 1)); } else fprintf (m_outfile, " %d", regno); |