This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: fix for 64bit uncleanliness in cp/class.c


> From mitchell@codesourcery.com  Thu Jan 20 03:06:40 2000
> >>>>> "Brad" == Brad Lucier <lucier@math.purdue.edu> writes:
> 
>     Brad> make format agree with argument; cast pointer to unsigned
>     Brad> long and print with %lx
> 
> Thanks. [...] I checked in your patch.

There still seems to be a problem with today's mainline; perhaps I wasn't
clear that there were two distinct problems.

../../../gcc/cp/class.c: In function `dump_class_hierarchy':
../../../gcc/cp/class.c:6304: warning: int format, different type arg (arg 7)

	* class.c (dump_class_hierarchy): Use %ld to print a HOST_WIDE_INT

RCS file: RCS/class.c,v
retrieving revision 1.1
diff -c -r1.1 class.c
*** class.c     2000/01/21 17:28:59     1.1
--- class.c     2000/01/21 17:41:26
***************
*** 6297,6303 ****
  {
    int i;
  
!   fprintf (stderr, "%*s0x%lx (%s) %d %s\n", indent, "",
           (unsigned long) binfo,
           type_as_string (binfo, TS_PLAIN),
           TREE_INT_CST_LOW (BINFO_OFFSET (binfo)),
--- 6297,6303 ----
  {
    int i;
  
!   fprintf (stderr, "%*s0x%lx (%s) %ld %s\n", indent, "",
           (unsigned long) binfo,
           type_as_string (binfo, TS_PLAIN),
           TREE_INT_CST_LOW (BINFO_OFFSET (binfo)),

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]