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] |
Other format: | [Raw text] |
Hi, The problem here is that we were not handling POINTER_PLUS_EXPR inside check_format_arg, I had added a FIXME and this patch fixes the problem. Since only the second operand of POINTER_PLUS_EXPR can be an integer, I removed some unneeded code at the same time. Committed to the branch after a bootstrap/test on i686-linux-gnu with no regressions. Thanks, Andrew Pinski ChangeLog: * c-format.c (check_format_arg): Handle POINTER_PLUS_EXPR instead of PLUS_EXPR of pointer types.
Attachment:
handleformat.diff.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |