From: Segher Boessenkool Date: Mon, 7 Aug 2017 10:21:32 +0000 (+0200) Subject: print-rtl: NOT is ~, not ! X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d5e2c91a26b85184400e3881baaeda27ade84ef9;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8fbb8c4d8b5..1b6c5ff31a1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-08-07 Segher Boessenkool + + * print-rtl.c (print_exp): Print NOT as "~" instead of as "!". + 2017-08-07 Marek Polacek PR middle-end/81737 diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index dc8d9800de5..79ec463df45 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: