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: Patch for pedantic format warnings


  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


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