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 and nth_parm_type in dbxout_args.


Hi,

Tested on x86_64-pc-linux-gnu.  Committed to the LTO branch as
obvious.

Kazu Hirata

2006-08-10  Kazu Hirata  <kazu@codesourcery.com>

	* dbxout.c (dbxout_args): Use num_parm_types and
	nth_parm_type.

Index: dbxout.c
===================================================================
--- dbxout.c	(revision 116037)
+++ dbxout.c	(working copy)
@@ -3248,11 +3248,13 @@ dbxout_reg_parms (tree parms)
 static void
 dbxout_args (tree args)
 {
-  while (args)
+  int len = num_parm_types (args);
+  int i;
+
+  for (i = 0; i < len; i++)
     {
       stabstr_C (',');
-      dbxout_type (TREE_VALUE (args), 0);
-      args = TREE_CHAIN (args);
+      dbxout_type (nth_parm_type (args, i), 0);
     }
 }
 


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