This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bootstap failure on powerpc-apple-darwin6.6 due to warnings in cgraphunit.c
- From: Jan Hubicka <jh at suse dot cz>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: gcc at gcc dot gnu dot org, Jan Hubicka <jh at suse dot cz>,Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Sat, 12 Jul 2003 06:13:14 +0200
- Subject: Re: Bootstap failure on powerpc-apple-darwin6.6 due to warnings in cgraphunit.c
- References: <6B9EF21A-B414-11D7-A533-000393A6D2F2@physics.uc.edu>
> There new warnings cause a boostrap failure on powerpc-apple-darwin6.6:
> +/Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/cgraphunit.c:
> In function `cgraph_inlined_into':
> +/Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/
> cgraphunit.c:479: warning: int format, long unsigned int arg (arg 3)
> +/Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/cgraphunit.c:
> In function `cgraph_inlined_callees':
> +/Volumes/UFS_Partition/pinskia/src/fsf/gcc-clean/src/gcc/
> cgraphunit.c:576: warning: int format, long unsigned int arg (arg 3)
>
> I do not know what is the correct fix (1 or 2):
> 1. Have the cast in INLINED_TIMES to be "unsigned long" and change the
> printf's to be "%lu"
> 2. change the case to be "int".
It does not matter much as INLINED_TIMES should not get too big. I
would preffer casting pointers consistently into size_t so one don't get
missmatch, so I've just fixed that on printf call side.
Honza
>
> Thanks,
> Andrew Pinski
>