This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[lto] cp/cp-tree.h: Remove FUNCTION_ARG_CHAIN.
- From: Kazu Hirata <kazu at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 14 Jun 2006 06:58:24 -0700
- Subject: [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) \