aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2017-08-07 12:21:32 +0200
committerSegher Boessenkool <segher@gcc.gnu.org>2017-08-07 12:21:32 +0200
commitd5e2c91a26b85184400e3881baaeda27ade84ef9 (patch)
treeb5f49de96f7cc1dc02c4f72f39e879ba0b535e85 /gcc
parent1653a8654977e0708b4669ed6637772cd47ac796 (diff)
downloadgcc-d5e2c91a26b85184400e3881baaeda27ade84ef9.zip
gcc-d5e2c91a26b85184400e3881baaeda27ade84ef9.tar.gz
gcc-d5e2c91a26b85184400e3881baaeda27ade84ef9.tar.bz2
print-rtl: NOT is ~, not !
Slim RTL dumps print the RTL code NOT as !, but that is misleading: its semantics are like the C operator ~. This fixes it. * print-rtl.c (print_exp): Print NOT as "~" instead of as "!". From-SVN: r250913
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/print-rtl.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8fbb8c4..1b6c5ff 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2017-08-07 Segher Boessenkool <segher@kernel.crashing.org>
+
+ * print-rtl.c (print_exp): Print NOT as "~" instead of as "!".
+
2017-08-07 Marek Polacek <polacek@redhat.com>
PR middle-end/81737
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c
index dc8d980..79ec463 100644
--- a/gcc/print-rtl.c
+++ b/gcc/print-rtl.c
@@ -1283,7 +1283,7 @@ print_exp (pretty_printer *pp, const_rtx x, int verbose)
op[1] = XEXP (x, 1);
break;
case NOT:
- st[0] = "!";
+ st[0] = "~";
op[0] = XEXP (x, 0);
break;
case AND: