Slim RTL dumps print the RTL code NOT as !, but that is misleading:
its semantics are like the C operator ~.  This fixes it.

Committing as obvious.


Segher


2017-08-07  Segher Boessenkool  <seg...@kernel.crashing.org>

        * print-rtl.c (print_exp): Print NOT as "~" instead of as "!".

---
 gcc/print-rtl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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:
-- 
1.9.3

Reply via email to