aboutsummaryrefslogtreecommitdiff
path: root/gcc/print-rtl.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2016-10-14 20:22:23 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2016-10-14 20:22:23 +0000
commit983496febcc17e53d5596cff4d2cb1f1c16ebe19 (patch)
treef477f08f40f1c4296660873d28335ce92f40ee1d /gcc/print-rtl.c
parent38e34671fa2bb8a686cd2e2c770937b8c9be8f1e (diff)
downloadgcc-983496febcc17e53d5596cff4d2cb1f1c16ebe19.zip
gcc-983496febcc17e53d5596cff4d2cb1f1c16ebe19.tar.gz
gcc-983496febcc17e53d5596cff4d2cb1f1c16ebe19.tar.bz2
Tweaks to print_rtx_function
gcc/ChangeLog: * print-rtl-function.c (print_edge): Omit "(flags)" when none are set. (print_rtx_function): Update example in comment for... * print-rtl.c (print_rtx_operand_code_r): In compact mode, print non-virtual pseudos with a '%' sigil followed by the regno, offset by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual pseudo is dumped as "%0". From-SVN: r241185
Diffstat (limited to 'gcc/print-rtl.c')
-rw-r--r--gcc/print-rtl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c
index f114cb4..46f3c4d 100644
--- a/gcc/print-rtl.c
+++ b/gcc/print-rtl.c
@@ -400,6 +400,14 @@ print_rtx_operand_code_r (const_rtx in_rtx)
#endif
if (flag_dump_unnumbered && is_insn)
fputc ('#', outfile);
+ else if (flag_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". */
+ gcc_assert (regno > LAST_VIRTUAL_REGISTER);
+ fprintf (outfile, " %%%d", regno - (LAST_VIRTUAL_REGISTER + 1));
+ }
else
fprintf (outfile, " %d", regno);