public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix BIT_INSERT_EXPR dumping
@ 2019-07-03 10:58 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2019-07-03 10:58 UTC (permalink / raw)
  To: gcc-patches


It currently shows weirdly, fixed as follows.

Committed to trunk.

Richard.

2019-07-03  Richard Biener  <rguenther@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;
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-07-03 10:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-03 10:58 [PATCH] Fix BIT_INSERT_EXPR dumping Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).