It currently shows weirdly, fixed as follows.

Committed to trunk.

Richard.

2019-07-03  Richard Biener  <rguent...@suse.de>

        * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
        dumping.

Index: gcc/gimple-pretty-print.c
===================================================================
--- gcc/gimple-pretty-print.c   (revision 272958)
+++ gcc/gimple-pretty-print.c   (working copy)
@@ -604,10 +604,14 @@ dump_ternary_rhs (pretty_printer *buffer
          pp_string (buffer, ", ");
          dump_generic_node (buffer, gimple_assign_rhs3 (gs),
                             spc, flags, false);
-         pp_string (buffer, " (");
          if (INTEGRAL_TYPE_P (TREE_TYPE (gimple_assign_rhs2 (gs))))
-           pp_decimal_int (buffer, TYPE_PRECISION
-                                     (TREE_TYPE (gimple_assign_rhs2 (gs))));
+           {
+             pp_string (buffer, " (");
+             pp_decimal_int (buffer, TYPE_PRECISION
+                             (TREE_TYPE (gimple_assign_rhs2 (gs))));
+             pp_string (buffer, " bits)");
+           }
+         pp_greater (buffer);
        }
       break;
 

Reply via email to