Fix for printf format checking

Jeffrey A Law law@cygnus.com
Tue Jun 2 22:00:00 GMT 1998


  In message < vyzzpfw9mzb.fsf@issan.informatik.uni-dortmund.de >you write:
  > It seems like someone has thrown out the check for the `hh' length
  > modifier in check_format_info while merging in other changes, or whatever.
  > I have also extended it to check for %n writing into a const type.
  > 
  > 
  > 1998-05-31  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
  > 
  > 	* c-common.c (check_format_info): Put back check for C9x `hh'
  > 	length modifier.  Warn about %n format writing into const.  Remove
  > 	obsolete comment.
  > 	(format_char_info): Fix comments.
Might have been lost in the gcc2 -> egcs merge.  This code was full of
conflicts.  I thought I got them all resolved correctly, but I might
have goof'd one.

The patch seems reasonable to me.  Please install it.

jeff



More information about the Gcc-patches mailing list