This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: fix for 64bit uncleanliness in cp/class.c
- To: lucier at math dot purdue dot edu, mark at codesourcery dot com
- Subject: Re: fix for 64bit uncleanliness in cp/class.c
- From: Brad Lucier <lucier at math dot purdue dot edu>
- Date: Fri, 21 Jan 2000 12:56:45 -0500 (EST)
- Cc: gcc-patches at gcc dot gnu dot org
> 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)),