This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[lto] Use num_parm_types in handle_format_attribute.
- From: Kazu Hirata <kazu at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 11 Jul 2006 10:30:36 -0700
- Subject: [lto] Use num_parm_types in handle_format_attribute.
Hi,
Tested on x86_64-pc-linux-gnu. Committed to the LTO branch as
obvious.
Kazu Hirata
2006-07-11 Kazu Hirata <kazu@codesourcery.com>
* c-format.c (handle_format_attribute): Use num_parm_types.
Index: c-format.c
===================================================================
--- c-format.c (revision 115203)
+++ c-format.c (working copy)
@@ -2716,7 +2716,7 @@ handle_format_attribute (tree *node, tre
/* Verify that first_arg_num points to the last arg, the ... */
if (info.first_arg_num != 0
- && (1 + (unsigned HOST_WIDE_INT) list_length (argument)
+ && (1 + (unsigned HOST_WIDE_INT) num_parm_types (argument)
!= info.first_arg_num))
{
if (!(flags & (int) ATTR_FLAG_BUILT_IN))