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] cp/cxx-pretty-print.c: Use DECL_INITIAL instead of TREE_PURPOSE.


Hi,

Attached is a patch to use DECL_INITIAL instead of TREE_PURPOSE.

This is a leftover from the patch to convert TREE_PURPOSE containing
default arguments to DECL_INITIAL.

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

Kazu Hirata

2006-07-03  Kazu Hirata  <kazu@codesourcery.com>

	* cxx-pretty-print.c (pp_cxx_parameter_declaration_clause):
	Use DECL_INITIAL instead of TREE_PURPOSE.

Index: cp/cxx-pretty-print.c
===================================================================
--- cp/cxx-pretty-print.c	(revision 114740)
+++ cp/cxx-pretty-print.c	(working copy)
@@ -1238,7 +1238,7 @@ pp_cxx_parameter_declaration_clause (cxx
 	  pp_cxx_whitespace (pp);
 	  pp_equal (pp);
 	  pp_cxx_whitespace (pp);
-	  pp_cxx_assignment_expression (pp, TREE_PURPOSE (types));
+	  pp_cxx_assignment_expression (pp, DECL_INITIAL (args));
 	}
     }
   pp_cxx_right_paren (pp);


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