diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 88a7a2c038a..4d0044a5ae4 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2000-01-23 Brad Lucier + + * class.c (dump_class_hierarchy): Print HOST_WIDE_INT properly. + 2000-01-23 Mark Mitchell * cp-tree.h (register_dtor_fn): New function. diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 3be8b1be342..c2d815f0292 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -6297,10 +6297,12 @@ dump_class_hierarchy (binfo, indent) { int i; - fprintf (stderr, "%*s0x%lx (%s) %d %s\n", indent, "", + fprintf (stderr, "%*s0x%lx (%s) ", indent, "", (unsigned long) binfo, - type_as_string (binfo, TS_PLAIN), - TREE_INT_CST_LOW (BINFO_OFFSET (binfo)), + type_as_string (binfo, TS_PLAIN)); + fprintf (stderr, HOST_WIDE_INT_PRINT_DEC, + TREE_INT_CST_LOW (BINFO_OFFSET (binfo))); + fprintf (stderr, " %s\n", BINFO_PRIMARY_MARKED_P (binfo) ? "primary" : ""); for (i = 0; i < BINFO_N_BASETYPES (binfo); ++i)