This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch for pedantic format warnings
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Subject: Re: Patch for pedantic format warnings
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sun, 23 Jul 2000 10:24:28 -0600
- cc: gcc-patches at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <Pine.SOL.4.21.0007192212390.20964-100000@orange.csi.cam.ac.uk>you
write:
> This patch fixes the pedantic warnings generated by my patch
>
> http://gcc.gnu.org/ml/gcc-patches/2000-07/msg00704.html
>
> and shown up by a bootstrap on i686-pc-linux-gnu.
>
> Pointers (other than char * or void *) are cast to PTR for formatting
> with %p or HOST_PTR_PRINTF. (Why do some places use HOST_PTR_PRINTF,
> and others %p explicitly?) In addition, a signed/unsigned fix is made
> in libiberty.
>
> This patch may be applied independently of the format checking patch.
>
> Bootstrapped with no regressions on i686-pc-linux-gnu.
>
> gcc/ChangeLog:
> 2000-07-18 Joseph S. Myers <jsm28@cam.ac.uk>
>
> * bitmap.c (debug_bitmap_file): Cast pointers to PTR for printing
> with %p.
> * ggc-page.c (debug_print_page_list, alloc_page, free_page,
> ggc_alloc): Likewise.
> * bb-reorder.c (dump_scope_forest_1): Likewise.
Thanks. Installed.
jeff