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]

[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))


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