This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix for printf format checking
- To: Andreas Schwab <schwab at issan dot informatik dot uni-dortmund dot de>
- Subject: Re: Fix for printf format checking
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 02 Jun 1998 22:20:13 -0600
- cc: egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
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