diff mbox

[c++] Remove 0x with HOST_WIDE_INT_PRINT_HEX

Message ID 20150121164541.GA18649@intel.com
State New
Headers show

Commit Message

H.J. Lu Jan. 21, 2015, 4:45 p.m. UTC
Since HOST_WIDE_INT_PRINT_HEX includes "0x", we don't need to add another
"0x".  OK to install?


H.J.
---
	* class.c (dump_class_hierarchy_r): Remove 0x with
	HOST_WIDE_INT_PRINT_HEX.
	(dump_vtable): Likewise.
---
 gcc/cp/class.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 07bbc69..f42a897 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -8044,7 +8044,7 @@  dump_class_hierarchy_r (FILE *stream,
   int i;
 
   indented = maybe_indent_hierarchy (stream, indent, 0);
-  fprintf (stream, "%s (0x" HOST_WIDE_INT_PRINT_HEX ") ",
+  fprintf (stream, "%s (" HOST_WIDE_INT_PRINT_HEX ") ",
 	   type_as_string (BINFO_TYPE (binfo), TFF_PLAIN_IDENTIFIER),
 	   (HOST_WIDE_INT) (uintptr_t) binfo);
   if (binfo != igo)
@@ -8068,7 +8068,7 @@  dump_class_hierarchy_r (FILE *stream,
   if (BINFO_PRIMARY_P (binfo))
     {
       indented = maybe_indent_hierarchy (stream, indent + 3, indented);
-      fprintf (stream, " primary-for %s (0x" HOST_WIDE_INT_PRINT_HEX ")",
+      fprintf (stream, " primary-for %s (" HOST_WIDE_INT_PRINT_HEX ")",
 	       type_as_string (BINFO_TYPE (BINFO_INHERITANCE_CHAIN (binfo)),
 			       TFF_PLAIN_IDENTIFIER),
 	       (HOST_WIDE_INT) (uintptr_t) BINFO_INHERITANCE_CHAIN (binfo));
@@ -8203,7 +8203,7 @@  dump_vtable (tree t, tree binfo, tree vtable)
       if (ctor_vtbl_p)
 	{
 	  if (!BINFO_VIRTUAL_P (binfo))
-	    fprintf (stream, " (0x" HOST_WIDE_INT_PRINT_HEX " instance)",
+	    fprintf (stream, " (" HOST_WIDE_INT_PRINT_HEX " instance)",
 		     (HOST_WIDE_INT) (uintptr_t) binfo);
 	  fprintf (stream, " in %s", type_as_string (t, TFF_PLAIN_IDENTIFIER));
 	}