aboutsummaryrefslogtreecommitdiff
path: root/gcc/print-rtl.h
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2016-11-07 15:19:17 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2016-11-07 15:19:17 +0000
commitb5fbe7164833774eabba67ecd47b3658d8e2c395 (patch)
tree2a53d93e01ff3266941b8cd229c9472180d2f20d /gcc/print-rtl.h
parent061ee39672f0086c2a9ab6e38f0747d0b9ad18a8 (diff)
downloadgcc-b5fbe7164833774eabba67ecd47b3658d8e2c395.zip
gcc-b5fbe7164833774eabba67ecd47b3658d8e2c395.tar.gz
gcc-b5fbe7164833774eabba67ecd47b3658d8e2c395.tar.bz2
rtx_writer: avoid printing trailing default values
gcc/ChangeLog: * print-rtl.c (rtx_writer::operand_has_default_value_p): New method. (rtx_writer::print_rtx): In compact mode, omit trailing operands that have the default values. * print-rtl.h (rtx_writer::operand_has_default_value_p): New method. * rtl-tests.c (selftest::test_dumping_insns): Remove empty label string from expected dump. (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES from expected dump. From-SVN: r241908
Diffstat (limited to 'gcc/print-rtl.h')
-rw-r--r--gcc/print-rtl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/print-rtl.h b/gcc/print-rtl.h
index 8496ffa..68db057 100644
--- a/gcc/print-rtl.h
+++ b/gcc/print-rtl.h
@@ -39,6 +39,7 @@ class rtx_writer
void print_rtx_operand_code_r (const_rtx in_rtx);
void print_rtx_operand_code_u (const_rtx in_rtx, int idx);
void print_rtx_operand (const_rtx in_rtx, int idx);
+ bool operand_has_default_value_p (const_rtx in_rtx, int idx);
private:
FILE *m_outfile;