Bootstap failure on powerpc-apple-darwin6.6 due to warnings in cgraphunit.c
Jan Hubicka
jh@suse.cz
Sat Jul 12 04:31:00 GMT 2003
> 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
>
More information about the Gcc
mailing list