This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
C++ PATCH: Remove unused macro
- To: gcc-patches at gcc dot gnu dot org
- Subject: C++ PATCH: Remove unused macro
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Tue, 21 Mar 2000 16:58:37 -0800
- Organization: CodeSourcery, LLC
This patch just kills a couple of essentially unused macros. Every
little bit helps.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
2000-03-21 Mark Mitchell <mark@codesourcery.com>
* cp-tree.h (TI_SPEC_INFO): Remove.
(CLASSTYPE_TI_SPEC_INFO): Likewise.
* pt.c (process_partial_specialization): Likewise.
Index: cp-tree.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/cp-tree.h,v
retrieving revision 1.422
diff -c -p -r1.422 cp-tree.h
*** cp-tree.h 2000/03/21 16:12:24 1.422
--- cp-tree.h 2000/03/22 00:49:30
*************** struct lang_decl
*** 2139,2145 ****
#define TI_TEMPLATE(NODE) (TREE_PURPOSE (NODE))
#define TI_ARGS(NODE) (TREE_VALUE (NODE))
- #define TI_SPEC_INFO(NODE) (TREE_CHAIN (NODE))
#define TI_PENDING_TEMPLATE_FLAG(NODE) TREE_LANG_FLAG_1 (NODE)
/* We use TREE_VECs to hold template arguments. If there is only one
--- 2139,2144 ----
*************** struct lang_decl
*** 2230,2236 ****
#define DECL_TI_ARGS(NODE) TI_ARGS (DECL_TEMPLATE_INFO (NODE))
#define CLASSTYPE_TI_TEMPLATE(NODE) TI_TEMPLATE (CLASSTYPE_TEMPLATE_INFO (NODE))
#define CLASSTYPE_TI_ARGS(NODE) TI_ARGS (CLASSTYPE_TEMPLATE_INFO (NODE))
- #define CLASSTYPE_TI_SPEC_INFO(NODE) TI_SPEC_INFO (CLASSTYPE_TEMPLATE_INFO (NODE))
#define ENUM_TI_TEMPLATE(NODE) \
TI_TEMPLATE (ENUM_TEMPLATE_INFO (NODE))
#define ENUM_TI_ARGS(NODE) \
--- 2229,2234 ----
Index: pt.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/pt.c,v
retrieving revision 1.408
diff -c -p -r1.408 pt.c
*** pt.c 2000/03/21 18:10:44 1.408
--- pt.c 2000/03/22 00:49:36
*************** process_partial_specialization (decl)
*** 2183,2189 ****
/* We've already got this specialization. */
return decl;
! DECL_TEMPLATE_SPECIALIZATIONS (maintmpl) = CLASSTYPE_TI_SPEC_INFO (type)
= tree_cons (inner_args, inner_parms,
DECL_TEMPLATE_SPECIALIZATIONS (maintmpl));
TREE_TYPE (DECL_TEMPLATE_SPECIALIZATIONS (maintmpl)) = type;
--- 2183,2189 ----
/* We've already got this specialization. */
return decl;
! DECL_TEMPLATE_SPECIALIZATIONS (maintmpl)
= tree_cons (inner_args, inner_parms,
DECL_TEMPLATE_SPECIALIZATIONS (maintmpl));
TREE_TYPE (DECL_TEMPLATE_SPECIALIZATIONS (maintmpl)) = type;