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/cp-tree.h: Remove FUNCTION_ARG_CHAIN.


Hi,

Attached is a patch to remove FUNCTION_ARG_CHAIN as it is unused.

The fewer places use TREE_CHAIN on a parameter type list, the easier
it is to convert TYPE_ARG_TYPES to a TREE_VEC.

Tested on x86_64-pc-linux-gnu.  OK to apply to the LTO branch?

Kazu Hirata

2006-06-14  Kazu Hirata  <kazu@codesourcery.com>

	* cp-tree.h (FUNCTION_ARG_CHAIN): Remove.

Index: cp/cp-tree.h
===================================================================
--- cp/cp-tree.h	(revision 114587)
+++ cp/cp-tree.h	(working copy)
@@ -921,9 +921,6 @@ enum languages { lang_c, lang_cplusplus,
   ((cp_type_quals (NODE) & (TYPE_QUAL_CONST | TYPE_QUAL_VOLATILE))	\
    == TYPE_QUAL_CONST)
 
-#define FUNCTION_ARG_CHAIN(NODE) \
-  TREE_CHAIN (TYPE_ARG_TYPES (TREE_TYPE (NODE)))
-
 /* Given a FUNCTION_DECL, returns the first TREE_LIST out of TYPE_ARG_TYPES
    which refers to a user-written parameter.  */
 #define FUNCTION_FIRST_USER_PARMTYPE(NODE) \


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